Monday, May 13, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 3144  / 3 Years ago, sat, june 19, 2021, 12:16:07

I had Cuda 5.5 with pycuda working great, but then I needed to upgrade to CUDA 6.0.



Now when I try to run a sample PyCuda program I get this :



ImportError: libcurand.so.6.0: cannot open shared object file: No such file or directory


I found the path to that file, am I supposed to link this library somehow ? and if so, How ? and where to ?


More From » 14.04

 Answers
0

This is happening because the path of lib is not present in LD_LIBRARY_PATH variable.



To add this path to LD_LIBRARY_PATH variable, open your ~/.bashrc file using



gedit ~/.bashrc



and add the following line. Relace the <path_to_your_lib> with the path to the file.



export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:<path_to_your_lib>

[#23147] Saturday, June 19, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
alliulet

Total Points: 46
Total Questions: 109
Total Answers: 97

Location: Svalbard and Jan Mayen
Member since Sat, Oct 10, 2020
4 Years ago
;