[clang] [Clang] Add `__CLANG_GPU_DISABLE_MATH_WRAPPERS` macro for offloading math (PR #98234)
Yaxun Liu via cfe-commits
cfe-commits at lists.llvm.org
Wed Jul 10 06:56:19 PDT 2024
================
@@ -345,4 +349,5 @@ __DEVICE__ float ynf(int __a, float __b) { return __nv_ynf(__a, __b); }
#pragma pop_macro("__DEVICE_VOID__")
#pragma pop_macro("__FAST_OR_SLOW")
+#endif // __CLANG_GPU_DISABLE_MATH_WRAPPERS
----------------
yxsamliu wrote:
some non-libm functions e.g. `__fadd_rd`, are included in the if/endif. Do you plan to add them to libm?
https://github.com/llvm/llvm-project/pull/98234
More information about the cfe-commits
mailing list