NVIDIA / cuda-samples

Samples for CUDA Developers which demonstrates features in CUDA Toolkit
Other
6.49k stars 1.84k forks source link

Samples/0_Introduction/matrixMul_nvrtc runtime error: cannot open source file #303

Open risinyoung opened 1 month ago

risinyoung commented 1 month ago

Samples/0_Introduction/matrixMul_nvrtc can be compiled, but error shows

./cooperative_groups/details/info.h(167): catastrophic error: cannot open source file

I add some include path in makefile then it can run successfully.

build: matrixMul_nvrtc
        $(EXEC) cp "$(CUDA_PATH)/include/cooperative_groups.h" .
        $(EXEC) cp -r "$(CUDA_PATH)/include/cooperative_groups" .

add some lines to

build: matrixMul_nvrtc
        $(EXEC) cp "$(CUDA_PATH)/include/cooperative_groups.h" .
        $(EXEC) cp -r "$(CUDA_PATH)/include/cooperative_groups" .
        $(EXEC) cp -r "$(CUDA_PATH)/include/nv" .
        $(EXEC) cp -r "$(CUDA_PATH)/include/cuda" .