https://github.com/jdoerfert commented:

It makes sense to define _OPENMP if we are doing device compilation if -fopenmp 
was passed. Users could check ifdef _OPENMP but -fopenmp implies it is defined, 
I think. So not defining it is somewhat user hostile. That said, the 
interaction here is clearly not well specified. We could poke the OpenMP 
standard on the question if we are unsure.

https://github.com/llvm/llvm-project/pull/176791
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to