[PATCH] D60620: [HIP] Support target id by --offload-arch
Yaxun Liu via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue May 26 21:14:18 PDT 2020
yaxunl updated this revision to Diff 266410.
yaxunl added a comment.
Changed target id format to be like `gfx908:xnack+:sramecc-`.
I tried to introduce --offload-target-id but found that is not good because: 1. it will cause redundant code since I have to handle these options separately in CUDA and HIP action builder; 2. it causes unnecessary complexity since I have to handle interaction between `--offload-arch` and `--offload-target-id`, especially the special case of `all`; 3. `--offload-target-id` is really the same thing as `--offload-arch`. Therefore I kept using `--offload-arch`. For CUDA this is NFC, since it is not checked as target id.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60620/new/
https://reviews.llvm.org/D60620
Files:
clang/include/clang/Basic/DiagnosticDriverKinds.td
clang/include/clang/Basic/OffloadArch.h
clang/include/clang/Driver/Options.td
clang/lib/Basic/CMakeLists.txt
clang/lib/Basic/OffloadArch.cpp
clang/lib/Basic/Targets/AMDGPU.cpp
clang/lib/Basic/Targets/AMDGPU.h
clang/lib/Driver/Driver.cpp
clang/lib/Driver/ToolChains/AMDGPU.cpp
clang/lib/Driver/ToolChains/AMDGPU.h
clang/lib/Driver/ToolChains/HIP.cpp
clang/test/Driver/amdgpu-macros.cl
clang/test/Driver/invalid-target-id.cl
clang/test/Driver/invalid-target-id.hip
clang/test/Driver/target-id-macros.cl
clang/test/Driver/target-id-macros.hip
clang/test/Driver/target-id.cl
clang/test/Driver/target-id.hip
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60620.266410.patch
Type: text/x-patch
Size: 34944 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200527/38702521/attachment-0001.bin>
More information about the cfe-commits
mailing list