[PATCH] D45387: [CUDA] Revert defining __CUDA_ARCH__ for amdgcn targets
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 6 12:49:52 PDT 2018
yaxunl created this revision.
yaxunl added a reviewer: tra.
Herald added subscribers: nhaehnle, jholewinski.
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
https://reviews.llvm.org/D45387
Files:
lib/Basic/Targets.cpp
lib/Basic/Targets.h
lib/Basic/Targets/AMDGPU.cpp
lib/Basic/Targets/AMDGPU.h
lib/Basic/Targets/NVPTX.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45387.141403.patch
Type: text/x-patch
Size: 6524 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180406/eb2ce009/attachment-0001.bin>
More information about the cfe-commits
mailing list