[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 11:20:36 PST 2023
jhuber6 added inline comments.
================
Comment at: clang/lib/Driver/Driver.cpp:4275
+ TC->getDriver().Diag(diag::err_drv_undetermined_gpu_arch)
+ << (TC->getTriple().isNVPTX() ? "NVPTX" : "AMDGPU")
+ << llvm::toString(GPUsOrErr.takeError()) << "--offload-arch";
----------------
arsenm wrote:
> arsenm wrote:
> > should explicitly handle the different triple cases, rather than assume ! NVPTX is AMDGPU
> why not just take the canonical triple arch name
Yeah I should probably just use the triple. I was trying to keep the old tests the same but I should just change them.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D141078/new/
https://reviews.llvm.org/D141078
More information about the cfe-commits
mailing list