[clang] [Clang] Add `__CLANG_GPU_DISABLE_MATH_WRAPPERS` macro for offloading math (PR #98234)
Joseph Huber via cfe-commits
cfe-commits at lists.llvm.org
Wed Aug 14 09:40:09 PDT 2024
================
@@ -12,6 +12,10 @@
#error "This file is for CUDA compilation only."
#endif
+// The __CLANG_GPU_DISABLE_MATH_WRAPPERS macro provides a way to let standard
+// libcalls reach the link step instead of being eagerly replaced.
+#ifndef __CLANG_GPU_DISABLE_MATH_WRAPPERS
----------------
jhuber6 wrote:
Yes, it's unfortunately really difficult to wrangle just this header out of our wrappers however, so it's easier to just override it once. I can make a test for it.
https://github.com/llvm/llvm-project/pull/98234
More information about the cfe-commits
mailing list