wsy4665 / cudamat

Automatically exported from code.google.com/p/cudamat
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

libcudamat.so: cannot open shared object file: No such file or directory (during tests - Ubuntu) #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Downloaded cudamat
2. Installed CUDA, nose and numpy previously. 
3. Run Make within /cudamat.
4. Executed 'python test_cudamat.py' (or 'python test_learn.py', same error)

What is the expected output? What do you see instead?
   OSError: libcudamat.so: cannot open shared object file: No such file or directory
   Program aborts at that point. 

What version of the product are you using? On what operating system?
   Latest cudamat available version at Nov30 2012.
   Ubuntu 12.04

Please provide any additional information below.
   Tried changing relative path in cudamat.py, before makefile. No success.
   Do I need perhaps to put cudamat folder somewhere specifically? (on testing, I put it under 'home' folder).

Original issue reported on code.google.com by Xavier.A...@gmail.com on 30 Nov 2012 at 5:14

GoogleCodeExporter commented 9 years ago
Solved. Problem not related with CUDAMat, but with CUDA installation. I hadn't 
properly set up the paths required by CUDA. Once they are rightly added into 
.bashrc, problem solved. 

Original comment by Xavier.A...@gmail.com on 30 Nov 2012 at 7:47

GoogleCodeExporter commented 9 years ago
Hi, Xavier:
   I met the same problem with you. But I can run CUDA test programs correctly. But I don't know what I should add into the bashrc file. Can you explain that in details? Thanks for your help.

Original comment by Boshen.Z...@gmail.com on 12 Dec 2012 at 12:56

GoogleCodeExporter commented 9 years ago
Hi, Boshen,
Adding below the lines I added to the  ~/.bashrc file. There must be more 
elegant ways of solving this, but at least this one works fine for me. I keep 
the CUDA (and gnumpy) related path lines too, in case someone else struggles 
with a similar issue in the future.

PATH=$PATH:/usr/local/cuda-5.0/bin
PATH=$PATH:/home/xavier/src/python/site-packages/cudamat
export PATH
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-5.0/lib64:/lib
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/xavier/src/python/site-packages/cudamat
export LD_LIBRARY_PATH

PYTHONPATH=$PYTHONPATH:/home/xavier/src/python/site-packages/cudamat
PYTHONPATH=$PYTHONPATH:/home/xavier/src/python/site-packages/gnumpy
export PYTHONPATH

Original comment by Xavier.A...@gmail.com on 12 Dec 2012 at 4:12

GoogleCodeExporter commented 9 years ago
Hi, Xavier:
    That works. Thank you so much!!

Original comment by Boshen.Z...@gmail.com on 18 Dec 2012 at 7:04

GoogleCodeExporter commented 9 years ago
Thanks Xavier!
Works for me also!

Original comment by gevrapat...@gmail.com on 9 Dec 2013 at 4:23