[clang] [clang][CUDA] Search include/cccl of CUDA 13 installations (PR #235910)
Caroline Rodewig via cfe-commits
cfe-commits at lists.llvm.org
Thu Oct 29 12:10:21 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"
----------------
carodewig wrote:
I think it's guaranteed to be `/` because the path is explicitly constructed via `+ "/include"` here, versus `cccl` being appended with `llvm::sys::path::append`:
https://github.com/llvm/llvm-project/blob/da4334419e6be66b3b16620d3ff17c13f9e6a373/clang/lib/Driver/ToolChains/Cuda.cpp#L218
https://github.com/llvm/llvm-project/pull/235910
More information about the cfe-commits
mailing list