================
@@ -26,107 +26,40 @@
// We need limits because __clang_cuda_cmath.h below uses `std::numeric_limit`.
#include <limits>
-
+#ifdef __NVPTX__
#pragma omp begin declare variant match(
\
- device = {arch(nvptx, nvptx64)}, implementation = {extension(match_any,
allow_templates)})
+ device = {arch(nvptx, nvptx64)},
\
+ implementation = {extension(match_any, allow_templates)})
#define __CUDA__
#define __OPENMP_NVPTX__
-#include <__clang_cuda_cmath.h>
+#include <__clang_spirv_cmath.h>
----------------
fineg74 wrote:
Fixed
https://github.com/llvm/llvm-project/pull/195386
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits