tiny-cuda-nn icon indicating copy to clipboard operation
tiny-cuda-nn copied to clipboard

Error while installing

Open ry85 opened this issue 2 years ago • 4 comments

Hi, I am getting the following error "cannot find -lcuda", when installing via a local clone of the tcnn repo,

git clone https://github.com/NVlabs/tiny-cuda-nn.git cd bindings/torch python setup.py install

I had lcuda installed, but unfortunately it is not getting found. I find this thread https://stackoverflow.com/a/34256630 which suggests modifying the compile file to explicitly provide the path of the lcuda library (-L/us/lib/x86_64-linux-gnu , this directory contains all cuda libraries including lcuda).

Can you please help as to which compile file I have to modify. Sorry, I am completely new to this.

ry85 avatar Oct 10 '22 17:10 ry85

@ry85 have you solved this problem? i met the same problem as well

aejion avatar Oct 27 '22 06:10 aejion

I face the same error.

I had to install GCC 9.3.0 inside my conda env since the system GCC ver. is 5.4.0 and cannot compile tcnn. The libcuda.so file is in /usr/local/cuda-11.3/lib64/stubs/ and my LD_LIBRARY_PATH=/usr/local/cuda-11.3/lib64. But my conda GCC is not able to locate this file.

I am not sure how to modify the CMakelists.txt file to add an explicit path to the file. Any help would be appreciated. I am running on a cluster so do not have sudo permissions as well. Thanks!

RohanChacko avatar Oct 28 '22 18:10 RohanChacko

I solve this problem by putting the dir with libcuda.so in LIBRARY_PATH (instead of LD_LIBRARY_PATH).

jzhangbs avatar Nov 15 '22 03:11 jzhangbs

I solve this problem by putting the dir with libcuda.so in LIBRARY_PATH (instead of LD_LIBRARY_PATH).

Could you please provide more detail steps? Thanks for your help!!!

Talegqz avatar Jul 27 '23 07:07 Talegqz