diff options
Diffstat (limited to 'libc/config/gpu')
-rw-r--r-- | libc/config/gpu/amdgpu/entrypoints.txt | 5 | ||||
-rw-r--r-- | libc/config/gpu/app.h | 3 | ||||
-rw-r--r-- | libc/config/gpu/nvptx/entrypoints.txt | 5 |
3 files changed, 11 insertions, 2 deletions
diff --git a/libc/config/gpu/amdgpu/entrypoints.txt b/libc/config/gpu/amdgpu/entrypoints.txt index 463727b..e39819d 100644 --- a/libc/config/gpu/amdgpu/entrypoints.txt +++ b/libc/config/gpu/amdgpu/entrypoints.txt @@ -612,6 +612,11 @@ if(LIBC_TYPES_HAS_FLOAT16) ) endif() +list(APPEND TARGET_LIBM_ENTRYPOINTS + # bfloat16 entrypoints + libc.src.math.fabsbf16 +) + set(TARGET_LLVMLIBC_ENTRYPOINTS ${TARGET_LIBC_ENTRYPOINTS} ${TARGET_LIBM_ENTRYPOINTS} diff --git a/libc/config/gpu/app.h b/libc/config/gpu/app.h index 148c51b..17ef3ae 100644 --- a/libc/config/gpu/app.h +++ b/libc/config/gpu/app.h @@ -9,11 +9,10 @@ #ifndef LLVM_LIBC_CONFIG_GPU_APP_H #define LLVM_LIBC_CONFIG_GPU_APP_H +#include "hdr/stdint_proxy.h" #include "src/__support/macros/config.h" #include "src/__support/macros/properties/architectures.h" -#include <stdint.h> - namespace LIBC_NAMESPACE_DECL { // TODO: Move other global values here and export them to the host. diff --git a/libc/config/gpu/nvptx/entrypoints.txt b/libc/config/gpu/nvptx/entrypoints.txt index 13b77172..26e3b15 100644 --- a/libc/config/gpu/nvptx/entrypoints.txt +++ b/libc/config/gpu/nvptx/entrypoints.txt @@ -614,6 +614,11 @@ if(LIBC_TYPES_HAS_FLOAT16) ) endif() +list(APPEND TARGET_LIBM_ENTRYPOINTS + # bfloat16 entrypoints + libc.src.math.fabsbf16 +) + set(TARGET_LLVMLIBC_ENTRYPOINTS ${TARGET_LIBC_ENTRYPOINTS} ${TARGET_LIBM_ENTRYPOINTS} |