================
@@ -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");
----------------
arsenm wrote:
Weird to define as 0? How does that make sense?
https://github.com/llvm/llvm-project/pull/176791
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits