[libc-commits] [libc] [libc] Re-Enable GPU tests and fix math exception handling (PR #83172)

via libc-commits libc-commits at lists.llvm.org
Tue Feb 27 11:39:41 PST 2024


================
@@ -32,6 +33,8 @@
 #define math_errhandling 0
 #elif defined(__NO_MATH_ERRNO__)
 #define math_errhandling (MATH_ERREXCEPT)
+#elif defined(LIBC_TARGET_ARCH_IS_GPU)
----------------
lntue wrote:

Can you just use `#if defined(__NVPTX__) || defined(__AMDGPU__)` directly and remove the dependency on `libc.src.__support.macros.properties.architectures`?  This folder is supposed to be a leaf in the dep tree.

https://github.com/llvm/llvm-project/pull/83172


More information about the libc-commits mailing list