tiny-cuda-nn
tiny-cuda-nn copied to clipboard
/usr/bin/ld: cannot find -lcuda: No such file or directory
Hi, I'm running in kaggle:
!export PATH="/usr/local/cuda-11.8/bin:$PATH"
!export LD_LIBRARY_PATH="/usr/local/cuda-11.8/lib64:$LD_LIBRARY_PATH"
!export LIBRARY_PATH="/usr/local/cuda-11.8/lib64:$LD_LIBRARY_PATH"
!export LDFLAGS=-L/usr/local/cuda-11.8/lib64/stub
!cmake . -B build -DCMAKE_BUILD_TYPE=RelWithDebInfo
!cmake --build build --config RelWithDebInfo -j
but always returns error
...
[ 90%] Building CUDA object samples/CMakeFiles/mlp_learning_an_image.dir/mlp_learning_an_image.cu.o
/usr/bin/cmake: /opt/conda/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
[ 95%] Linking CXX executable ../mlp_learning_an_image
/usr/bin/cmake: /opt/conda/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
/usr/bin/ld: cannot find -lcuda: No such file or directory
collect2: error: ld returned 1 exit status
gmake[2]: *** [samples/CMakeFiles/mlp_learning_an_image.dir/build.make:115: mlp_learning_an_image] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:189: samples/CMakeFiles/mlp_learning_an_image.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
/usr/bin/cmake: /opt/conda/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
[100%] Linking CXX executable ../../bench_image_ours
/usr/bin/cmake: /opt/conda/lib/libcurl.so.4: no version information available (required by /usr/bin/cmake)
/usr/bin/ld: cannot find -lcuda: No such file or directory
collect2: error: ld returned 1 exit status
gmake[2]: *** [benchmarks/image/CMakeFiles/bench_image_ours.dir/build.make:115: bench_image_ours] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:216: benchmarks/image/CMakeFiles/bench_image_ours.dir/all] Error 2
gmake: *** [Makefile:91: all] Error 2
CUDA version :
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:33:58_PDT_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
Any clue how to resolve this ?
TIA
Same BUG for me. Have you solved it? @x4080
https://github.com/NVlabs/tiny-cuda-nn/issues/183#issuecomment-1342828785 I solve it by use the way in this link.
@xiazhi1, could you please paste the solution ? I'm confused which one is work ? thanks