[clang] [Driver] Test ignored target-specific options for AMDGPU/NVPTX (PR #79222)

Arthur Eubanks via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 23 16:06:56 PST 2024


================
@@ -0,0 +1,7 @@
+/// Some target-specific options are ignored for GPU, so %clang exits with code 0.
+// DEFINE: %{gpu_opts} = --cuda-gpu-arch=sm_60 --cuda-path=%S/Inputs/CUDA/usr/local/cuda --no-cuda-version-check
----------------
aeubanks wrote:

these defines seem overkill and harder to read compared to just duplicating the command line twice

https://github.com/llvm/llvm-project/pull/79222


More information about the cfe-commits mailing list