Skip to content

Commit 9019573

Browse files
committed
fix: resolve CUDA 12.6 compatibility issue with clang-18
- Use --cuda-path=/usr/local/cuda instead of manual include paths - This allows clang to properly handle CUDA headers and avoid conflicts - Fixes '__noinline__' macro conflicts between CUDA and C++13 standard library - Simplifies build configuration and improves cross-platform compatibility
1 parent a51e5b1 commit 9019573

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • attach/nv_attach_impl/trampoline

attach/nv_attach_impl/trampoline/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ all: ../trampoline_ptx.h test
1414
@echo "Generated $@"
1515

1616
default_trampoline-cuda-nvptx64-nvidia-cuda-$(PTX_TARGET_ARCH).s: default_trampoline.cu
17-
$(CLANG) -S $< -Wall --cuda-gpu-arch=$(PTX_TARGET_ARCH) -O2 -stdlib=libstdc++ -I/usr/include/c++/13 -I/usr/include/x86_64-linux-gnu/c++/13 -I/usr/include/c++/12 -I/usr/include/x86_64-linux-gnu/c++/12 $(CUDA_LIBS)
17+
$(CLANG) -S $< -Wall --cuda-gpu-arch=$(PTX_TARGET_ARCH) -O2 --cuda-path=/usr/local/cuda $(CUDA_LIBS)
1818

1919
# compile it to exec for test
2020
test: default_trampoline.cu

0 commit comments

Comments
 (0)