amdgcn targets only support HIP, which does not define __CUDA_ARCH__.
__HIP_DEVICE_COMPILE__ depends on HIP language mode, therefore it needs to be added
in a different patch.
refer to discussions in https://reviews.llvm.org/D45277
Paths
| Differential D45387
[CUDA] Revert defining __CUDA_ARCH__ for amdgcn targets ClosedPublic Authored by yaxunl on Apr 6 2018, 12:49 PM.
Details Summary amdgcn targets only support HIP, which does not define __CUDA_ARCH__. __HIP_DEVICE_COMPILE__ depends on HIP language mode, therefore it needs to be added refer to discussions in https://reviews.llvm.org/D45277
Diff Detail Event TimelineComment Actions You may want to mention in the commit log that this is a partial unroll of r329232 / D45277. This revision is now accepted and ready to land.Apr 6 2018, 1:02 PM Comment Actions
Will do. Thanks. Closed by commit rL329584: [CUDA] Revert defining __CUDA_ARCH__ for amdgcn targets (authored by yaxunl). · Explain WhyApr 9 2018, 8:47 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 141403 lib/Basic/Targets.h
lib/Basic/Targets.cpp
lib/Basic/Targets/AMDGPU.h
lib/Basic/Targets/AMDGPU.cpp
lib/Basic/Targets/NVPTX.cpp
|