[flang-commits] [clang] [flang] [Flang-new][OpenMP] Add offload related flags for AMDGPU (PR #96742)
Dominik Adamski via flang-commits
flang-commits at lists.llvm.org
Thu Jun 27 02:49:25 PDT 2024
DominikAdamski wrote:
> > fcuda-is-device flag is not used by Flang currently. In the future it will be needed for Flang equivalent functions: AMDGPUTargetCodeGenInfo::getGlobalVarAddressSpace AMDGPUTargetInfo::getTargetDefines .
>
> I don't follow - why would anything related to CUDA be relevant here?
Clang for AMDGPU supports OpenMP and [HIP](https://clang.llvm.org/docs/HIPSupport.html) and it reuses the same code. For example `-fcuda-is-device` flag needs to be checked for [legacy HIP host code](https://github.com/llvm/llvm-project/blob/2033b1cf16f040e1369d8efba8439dcd3e36ed31/clang/lib/Basic/Targets/AMDGPU.cpp#L278). I would like to reuse the same part of the AMD GPU toolchain for Flang.
https://github.com/llvm/llvm-project/pull/96742
More information about the flang-commits
mailing list