[clang] [OpenMP] Allow GPUs to be targeted directly via `-fopenmp`. (PR #122149)

Joseph Huber via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 8 10:49:55 PST 2025


jhuber6 wrote:

> Maybe just turn on OpenMPIsTargetDevice if `gpu target + -fopenmp` is specified?

Doesn't work, it causes all definitions to be stripped as they are not declared on the device, which is not what we want.

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


More information about the cfe-commits mailing list