[PATCH] D139045: [HIP] support --offload-arch=native

2022-12-13 Thread Yaxun Liu via Phabricator via cfe-commits
This revision was landed with ongoing or failed builds. This revision was automatically updated to reflect the committed changes. yaxunl marked 2 inline comments as done. Closed by commit rGe8fd998e6194: [HIP] support --offload-arch=native (authored by yaxunl). Herald added a project: clang. Chan

[PATCH] D139045: [HIP] support --offload-arch=native

2022-12-12 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl marked 2 inline comments as done. yaxunl added inline comments. Comment at: clang/lib/Driver/Driver.cpp:3058 // Collect all offload arch parameters, removing duplicates. + const StringRef NativeArchStr = "native"; std::set GpuArchs; tra

[PATCH] D139045: [HIP] support --offload-arch=native

2022-12-12 Thread Artem Belevich via Phabricator via cfe-commits
tra accepted this revision. tra added inline comments. This revision is now accepted and ready to land. Comment at: clang/lib/Driver/Driver.cpp:3058 // Collect all offload arch parameters, removing duplicates. + const StringRef NativeArchStr = "native"; std::se

[PATCH] D139045: [HIP] support --offload-arch=native

2022-12-12 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 482240. yaxunl added a comment. fix error handling CHANGES SINCE LAST ACTION https://reviews.llvm.org/D139045/new/ https://reviews.llvm.org/D139045 Files: clang/lib/Driver/Driver.cpp clang/lib/Driver/ToolChains/AMDGPU.h Index: clang/lib/Driver/ToolC

[PATCH] D139045: [HIP] support --offload-arch=native

2022-12-12 Thread Yaxun Liu via Phabricator via cfe-commits
yaxunl updated this revision to Diff 482234. yaxunl retitled this revision from "[HIP] use detected GPU in --offload-arch" to "[HIP] support --offload-arch=native". yaxunl edited the summary of this revision. yaxunl added a comment. use detected GPU when --offload-arch=native is specified based o