Otherwise, if someone specifies a valid AMD arch, we may end up triggering an
assertion on unexpected arch later on.
Current tests didn't catch it because the failure does not get triggered with -###.
Paths
| Differential D105295
[CUDA] Only allow NVIDIA offload-arch during CUDA compilation. ClosedPublic Authored by tra on Jul 1 2021, 10:00 AM.
Details Summary Otherwise, if someone specifies a valid AMD arch, we may end up triggering an Current tests didn't catch it because the failure does not get triggered with -###.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Jul 6 2021, 10:42 AM This revision was landed with ongoing or failed builds.Jul 13 2021, 11:09 AM Closed by commit rG01d3a3dcabaf: [CUDA] Only allow NVIDIA offload-arch during CUDA compilation. (authored by tra). · Explain Why This revision was automatically updated to reflect the committed changes. Comment Actions Ugh. I broke the cuda-bad-arch.cu test.
Comment Actions
Should be fixed in 25629bb45f0a4b8c8e99dbde4f4a7e3d980b9fd7
Revision Contents
Diff 358354 clang/lib/Driver/Driver.cpp
clang/test/Driver/cuda-bad-arch.cu |
HIP tests should've used -x hip. I'll fix the test shortly.