================
@@ -1460,6 +1460,11 @@ static void InitializePredefinedMacros(const TargetInfo
&TI,
}
}
+ // CUDA / HIP offloading only supports OpenMP's CPU support, but both
+ // compilations must define these macros to compile.
+ if (LangOpts.OpenMPMacros)
+ Builder.defineMacro("_OPENMP", "0");
----------------
jdoerfert wrote:
0 does make sense since the "real" values are dates in increasing order.
https://github.com/llvm/llvm-project/pull/176791
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits