[clang] [clang][CUDA] Search include/cccl of CUDA 13 installations (PR #235910)
Ambrose Leeb via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 29 12:14:22 PDT 2026
================
@@ -0,0 +1,27 @@
+// From CUDA 13.0 on, the CUDA C++ Core Libraries are in include/cccl of the
+// CUDA installation. Check that it is a system include directory, right after
+// include/, for both the device and the host compilation.
+
+// RUN: %clang -### --target=x86_64-unknown-linux-gnu --cuda-gpu-arch=sm_75 \
+// RUN: --cuda-path=%S/Inputs/CUDA_130/usr/local/cuda %s 2>&1 \
+// RUN: | FileCheck %s --check-prefix=CCCL
+
+// CCCL: "-cc1" "-triple" "nvptx64-nvidia-cuda"
+// CCCL-SAME: "-internal-isystem" "[[CUDA:[^"]*Inputs/CUDA_130/usr/local/cuda]]/include" "-internal-isystem" "[[CUDA]]/include{{[/\\]+}}cccl"
----------------
Sirraide wrote:
Ah yes, of course we’re already inconsitent w/ this... that might be fine then
https://github.com/llvm/llvm-project/pull/235910
More information about the cfe-commits
mailing list