[PATCH] D141078: [CUDA][HIP] Support '--offload-arch=native' for the new driver
Joseph Huber via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 5 10:45:09 PST 2023
jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, tianshilei1992, tra, yaxunl.
Herald added subscribers: kosarev, mattd, asavonic, kerbowa, jvesely.
Herald added a project: All.
jhuber6 requested review of this revision.
Herald added subscribers: cfe-commits, sstefan1, MaskRay.
Herald added a project: clang.
This patch applies the same handling for the `--offload-arch=native'
string to the new driver. The support for OpenMP will require some extra
logic to infer the triples from the derived architecture strings.
Depends on D141051 <https://reviews.llvm.org/D141051>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141078
Files:
clang/lib/Driver/Driver.cpp
clang/test/Driver/amdgpu-hip-system-arch.c
clang/test/Driver/nvptx-cuda-system-arch.c
clang/test/Driver/openmp-offload-infer.c
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141078.486629.patch
Type: text/x-patch
Size: 6679 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230105/cb33f7c2/attachment.bin>
More information about the cfe-commits
mailing list