yaxunl added a comment.

HIP toolchain does not pass -fopenmp-targets=amdgcn-amd-amdhsa to clang -cc1 in 
host compilation. It does not pass -fopenmp-is-device to clang -cc1 in device 
compilation. Without these options clang will not generate OpenMP offloading 
code for amdgpu in device and host compilation. The host code should still 
function correctly.

I tend to emit warning instead of error. I am concerned that emitting error may 
cause regressions in existing HIP applications whereas warnings can be disabled.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D145591/new/

https://reviews.llvm.org/D145591

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to