installing pycuda error, /usr/bin/ld: cannot find -lcuda

classic Classic list List threaded Threaded
15 messages Options
Reply | Threaded
Open this post in threaded view
|

installing pycuda error, /usr/bin/ld: cannot find -lcuda

maxrider11
This post was updated on .
pycuda 2011.2.2, ubuntu 12.04, gcc 4.6. python 2.7.
edited: (earlier errors were solved)

 i am getting this error on running   ..pycuda-2011.2.2$ make -j 4 :

/usr/bin/ld: cannot find -lcuda

/usr/bin/ld: skipping incompatible /usr/local/cuda/lib/libcurand.so when searching for -lcurand

Any help is appreciated, thanks
Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

Tomasz Rybak-2
I am working on Debian. Although Ubuntu is Debian-based, there are
differences in NVIDIA drivers, so not everything will apply cleanly,
but I hope I will be able to point you in right direction.

Dnia 2012-04-19, czw o godzinie 08:37 -0700, maxrider11 pisze:
> pycuda 2011.2.2, ubuntu 11.10, gcc 4.4. python 2.7. I am tired because every
> next step in it bring some error, and I am trying it for 2-3 days.

Which CUDA version have you installed and into which directory?

Can you give us PyCUDA build configuration, or how are you calling
configure.py?
E.g. I am calling it following way on Debian:
./configure.py --boost-python-libname=boost_python-py27 \
 --boost-thread-libname=boost_thread \
 --cuda-root=/usr --cuda-enable-gl

In your case --cuda-root will probably be different (Debian
has packages with CUDA, Ubuntu does not).

>
>  i am getting this error on running "..pycuda-2011.2.2$ make -j 4"
> /usr/bin/ld: cannot find -lboost_python-mt
>

Why are you trying to use boost_python-mt? Try boost_python-py27.
In Debian and Ubuntu one can have more than one Python version
installed, so you need to point PyCUDA to the proper library file
using --boost-python-libname in ./configure.py


> /usr/bin/ld: cannot find -lcuda

It cannot find cuda. Give ./configure.py directory in which you have
CUDA installed through --cuda-root

>
> /usr/bin/ld: skipping incompatible /usr/local/cuda/lib/libcurand.so when
> searching for -lcurand

This is strange. You might need to check compiler versions - but let's
leave it until you solve previous problems.

>
>  I tried this but its not helping:
> $ sudo ln -s /usr/lib/libboost_python-mt-py26 /usr/lib/libboost_python-mt

Library files also need to have .so extension. Instead of symlinking
library give its proper name to ./configure.py using
--boost-python-libname

>
>  Additional information:
> I don't see ld directory in /usr/bin. This file "libboost_python-mt-py26" is
> present in usr/lib. Also, I installed pycuda even after the error above,
> then I got error in ">>> import pycuda.driver as cuda" :
>  from pycuda._driver import *
> ImportError: No module named _driver

This is result of previous problem. PyCUDA was not able to build
binary wrapper, so Python code is lost. This will be fixed when
you solve previous problems.

I hope it helps.
Write to list if you need more help.

Regards.

--
Tomasz Rybak  GPG/PGP key ID: 2AD5 9860
Fingerprint A481 824E 7DD3 9C0E C40A  488E C654 FB33 2AD5 9860
http://member.acm.org/~tomaszrybak


_______________________________________________
PyCUDA mailing list
[hidden email]
http://lists.tiker.net/listinfo/pycuda

signature.asc (853 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

maxrider11
This post was updated on .
Hi,
Sorry, I am late on followup. I am beginner and wandered too much, and fiddled a lot. I tried your advice, still same problem. This is what i did:
cuda installed in /usr/local/cuda, it's version is 4.0.

calling configure.py like this:
$ ./configure.py --cuda-root=/usr/local/cuda --cudadrv-lib-dir=/usr/lib --boost-inc-dir=/usr/include --boost-lib-dir=/usr/lib --boost-python-libname=boost_python-mt-py27 --boost-thread-libname=boost_thread-mt


 I see these files in /usr/lib: libboost_python-py27.so and libboost_python-mt-py27.so. So, which one to use ?
and shall i add ".so" extension with their name when i call  ./configure.py ?

$ echo CUDA_ROOT   prints usr/local/cuda, then also it says "/usr/bin/ld: -lcuda not found". I don't see 'ld' directory in /usr/bin.

I appreciate your help !
Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

Andreas Kloeckner
On Wed, 9 May 2012 20:39:39 -0700 (PDT), maxrider11 <[hidden email]> wrote:

> Hi,
> Sorry, I am late on followup. I am beginner and wandered too much, and
> fiddled a lot. I tried your advice, still same problem. This is what i did:
> *cuda installed *in /usr/local/cuda, it's version is 4.0.
>
> *calling configure.py *like this:
> $ ./configure.py --cuda-root=/usr/local/cuda --cudadrv-lib-dir=/usr/lib
> --boost-inc-dir=/usr/include --boost-lib-dir=/usr/lib
> --boost-python-libname=boost_python-mt-py27
> --boost-thread-libname=boost_thread-mt
>
>  I see these files in /usr/lib: libboost_python-py27.so and
> libboost_python-mt-py.so. so which to use ?
Not sure what -py.so is. Use -py27.

> and shall i add ".so" extension with their name when i call  ./configure.py
> ?

No.

>
> $ echo CUDA_ROOT   prints usr/local/cuda/, then also it says "/usr/bin/ld:
> -lcuda not found". I don't see 'ld' directory in /usr/bin.
>
> I appreciate your help !

'ld' is the linker.

Can you please post the output of the failing command?

Andreas


_______________________________________________
PyCUDA mailing list
[hidden email]
http://lists.tiker.net/listinfo/pycuda

attachment0 (195 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

maxrider11
This post was updated on .
py.so was py27.so which i edited later.  

output of failing command: (I would like non-bold chunk of output to remain hidden unless clicked, like you did in your reply)

.......@ubuntu:~/pycuda-2011.2.2$ make -j 4
ctags -R src || true
/usr/bin/python setup.py build
running build
running build_py
running build_ext
building '_driver' extension
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1 -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include -I/usr/local/cuda/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c src/cpp/cuda.cpp -o build/temp.linux-x86_64-2.7/src/cpp/cuda.o
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1 -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include -I/usr/local/cuda/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c src/cpp/bitlog.cpp -o build/temp.linux-x86_64-2.7/src/cpp/bitlog.o
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1 -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include -I/usr/local/cuda/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c src/wrapper/wrap_cudadrv.cpp -o build/temp.linux-x86_64-2.7/src/wrapper/wrap_cudadrv.o
src/wrapper/wrap_cudadrv.cpp: In function âvoid init_module__driver()â:
src/wrapper/wrap_cudadrv.cpp:508:5: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
src/wrapper/wrap_cudadrv.cpp:512:5: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
src/wrapper/wrap_cudadrv.cpp:513:5: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
src/wrapper/wrap_cudadrv.cpp:514:5: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
src/wrapper/wrap_cudadrv.cpp:515:5: warning: deprecated conversion from string constant to âchar*â [-Wwrite-strings]
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1 -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include -I/usr/local/cuda/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c src/wrapper/mempool.cpp -o build/temp.linux-x86_64-2.7/src/wrapper/mempool.o
gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1 -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include -I/usr/local/cuda/include -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/python2.7 -c src/wrapper/wrap_curand.cpp -o build/temp.linux-x86_64-2.7/src/wrapper/wrap_curand.o
g++ -pthread -shared -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro build/temp.linux-x86_64-2.7/src/cpp/cuda.o build/temp.linux-x86_64-2.7/src/cpp/bitlog.o build/temp.linux-x86_64-2.7/src/wrapper/wrap_cudadrv.o build/temp.linux-x86_64-2.7/src/wrapper/mempool.o build/temp.linux-x86_64-2.7/src/wrapper/wrap_curand.o -L/usr/local/cuda/lib -L/usr/local/cuda/lib64 -lboost_python-py27 -lboost_thread-mt -lcuda -lcurand -o build/lib.linux-x86_64-2.7/pycuda/_driver.so
/usr/bin/ld: cannot find -lcuda
/usr/bin/ld: skipping incompatible /usr/local/cuda/lib/libcurand.so when searching for -lcurand
collect2: ld returned 1 exit status
error: command 'g++' failed with exit status 1
make: *** [all] Error 1
Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

Andreas Kloeckner
Looks like you've installed a 32-bit CUDA on a 64-bit machine.

Andreas

On Thu, 10 May 2012 15:32:54 -0700 (PDT), maxrider11 <[hidden email]> wrote:

> py.so was py27.so which i edited later.  
>
> output of failing command:
>
> *.......@ubuntu:~/pycuda-2011.2.2$ make -j 4*
> ctags -R src || true
> /usr/bin/python setup.py build
> running build
> running build_py
> running build_ext
> building '_driver' extension
> gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1
> -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include
> -I/usr/local/cuda/include
> -I/usr/lib/python2.7/dist-packages/numpy/core/include
> -I/usr/include/python2.7 -c src/cpp/cuda.cpp -o
> build/temp.linux-x86_64-2.7/src/cpp/cuda.o
> gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1
> -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include
> -I/usr/local/cuda/include
> -I/usr/lib/python2.7/dist-packages/numpy/core/include
> -I/usr/include/python2.7 -c src/cpp/bitlog.cpp -o
> build/temp.linux-x86_64-2.7/src/cpp/bitlog.o
> gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1
> -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include
> -I/usr/local/cuda/include
> -I/usr/lib/python2.7/dist-packages/numpy/core/include
> -I/usr/include/python2.7 -c src/wrapper/wrap_cudadrv.cpp -o
> build/temp.linux-x86_64-2.7/src/wrapper/wrap_cudadrv.o
> src/wrapper/wrap_cudadrv.cpp: In function âvoid init_module__driver()â:
> src/wrapper/wrap_cudadrv.cpp:508:5: warning: deprecated conversion from
> string constant to âchar*â [-Wwrite-strings]
> src/wrapper/wrap_cudadrv.cpp:512:5: warning: deprecated conversion from
> string constant to âchar*â [-Wwrite-strings]
> src/wrapper/wrap_cudadrv.cpp:513:5: warning: deprecated conversion from
> string constant to âchar*â [-Wwrite-strings]
> src/wrapper/wrap_cudadrv.cpp:514:5: warning: deprecated conversion from
> string constant to âchar*â [-Wwrite-strings]
> src/wrapper/wrap_cudadrv.cpp:515:5: warning: deprecated conversion from
> string constant to âchar*â [-Wwrite-strings]
> gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1
> -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include
> -I/usr/local/cuda/include
> -I/usr/lib/python2.7/dist-packages/numpy/core/include
> -I/usr/include/python2.7 -c src/wrapper/mempool.cpp -o
> build/temp.linux-x86_64-2.7/src/wrapper/mempool.o
> gcc -pthread -fno-strict-aliasing -fwrapv -Wall -g -fPIC -DPYGPU_PYCUDA=1
> -DPYGPU_PACKAGE=pycuda -DHAVE_CURAND=1 -Isrc/cpp -I/usr/include
> -I/usr/local/cuda/include
> -I/usr/lib/python2.7/dist-packages/numpy/core/include
> -I/usr/include/python2.7 -c src/wrapper/wrap_curand.cpp -o
> build/temp.linux-x86_64-2.7/src/wrapper/wrap_curand.o
> g++ -pthread -shared -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions
> -Wl,-z,relro build/temp.linux-x86_64-2.7/src/cpp/cuda.o
> build/temp.linux-x86_64-2.7/src/cpp/bitlog.o
> build/temp.linux-x86_64-2.7/src/wrapper/wrap_cudadrv.o
> build/temp.linux-x86_64-2.7/src/wrapper/mempool.o
> build/temp.linux-x86_64-2.7/src/wrapper/wrap_curand.o -L/usr/local/cuda/lib
> -L/usr/local/cuda/lib64 -lboost_python-py27 -lboost_thread-mt -lcuda
> -lcurand -o build/lib.linux-x86_64-2.7/pycuda/_driver.so
> */usr/bin/ld: cannot find -lcuda
> /usr/bin/ld: skipping incompatible /usr/local/cuda/lib/libcurand.so when
> searching for -lcurand
> collect2: ld returned 1 exit status
> error: command 'g++' failed with exit status 1
> make: *** [all] Error 1
>
> --
> View this message in context: http://pycuda.2962900.n2.nabble.com/installing-pycuda-2011-2-2-error-cannot-find-lboost-python-mt-tp7481143p7548564.html
> Sent from the PyCuda mailing list archive at Nabble.com.
>
> _______________________________________________
> PyCUDA mailing list
> [hidden email]
> http://lists.tiker.net/listinfo/pycuda

_______________________________________________
PyCUDA mailing list
[hidden email]
http://lists.tiker.net/listinfo/pycuda

attachment0 (195 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

maxrider11
Thank you for quick reply. someone else installed cuda. How to see that installed cuda is 32 bit ? If you are 100% sure about 32 bit, then I will install 64 bit cuda.
Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

Andreas Kloeckner
On Thu, 10 May 2012 16:27:33 -0700 (PDT), maxrider11 <[hidden email]> wrote:
> Thank you for quick reply. someone else installed cuda. How to see that
> installed cuda is 32 bit ? If you are 100% sure about 32 bit, then I will
> install 64 bit cuda.

Well, the linker said /usr/local/lib/libcuda.so is incompatible. Try
this:

$ file /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1: ELF 64-bit LSB shared object,
x86-64, version 1 (SYSV), dynamically linked, stripped

This allows you to tell if it's a 32-bit library.

Andreas

_______________________________________________
PyCUDA mailing list
[hidden email]
http://lists.tiker.net/listinfo/pycuda

attachment0 (195 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

maxrider11
.....@ubuntu:~$ file /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
/usr/lib/x86_64-linux-gnu/libOpenCL.so.1: ERROR: cannot open `/usr/lib/x86_64-linux-gnu/libOpenCL.so.1' (No such file or directory)

Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

Andreas Kloeckner
On Thu, 10 May 2012 17:44:32 -0700 (PDT), maxrider11 <[hidden email]> wrote:
> .....@ubuntu:~$ file /usr/lib/x86_64-linux-gnu/libOpenCL.so.1
> /usr/lib/x86_64-linux-gnu/libOpenCL.so.1: ERROR: cannot open
> `/usr/lib/x86_64-linux-gnu/libOpenCL.so.1' (No such file or directory)

Well, I meant: run 'file' on your libcuda.so.

:)

Andreas

_______________________________________________
PyCUDA mailing list
[hidden email]
http://lists.tiker.net/listinfo/pycuda

attachment0 (195 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

maxrider11
This post was updated on .
ohh.

........@ubuntu:/usr/local/lib$ file /usr/local/lib/libcuda.so
/usr/local/lib/libcuda.so: ERROR: cannot open `/usr/local/lib/libcuda.so' (No such file or directory)

Then I tried this since 'libcurand.so' was mentioned in error:
......@ubuntu:/usr/local/cuda/lib$ file /usr/local/cuda/lib/libcurand.so
/usr/local/cuda/lib/libcurand.so: symbolic link to `libcurand.so.4'

......@ubuntu:/usr/local/cuda/lib$ file libcurand.so.4
libcurand.so.4: symbolic link to `libcurand.so.4.1.28'

......@ubuntu:/usr/local/cuda/lib$ file libcurand.so.4.1.28
libcurand.so.4.1.28: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=0xca8aacf0fff3da60e113fb2ede0e05a8ca3bd576, stripped

does it help ?


_______________________________________________
PyCUDA mailing list
[hidden email]
http://lists.tiker.net/listinfo/pycuda

Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

Andreas Kloeckner
On Thu, 10 May 2012 19:59:19 -0700 (PDT), maxrider11 <[hidden email]> wrote:
> ohh.

Well, is there any libcuda.so* on your computer?

Andreas

_______________________________________________
PyCUDA mailing list
[hidden email]
http://lists.tiker.net/listinfo/pycuda

attachment0 (195 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

maxrider11
This post was updated on .
I have it but at different location:

......@ubuntu:/usr$ locate libcuda.so
/usr/lib/nvidia-current/libcuda.so
/usr/lib/nvidia-current/libcuda.so.1
/usr/lib/nvidia-current/libcuda.so.295.40
/usr/lib/nvidia-current-updates/libcuda.so
/usr/lib/nvidia-current-updates/libcuda.so.1
/usr/lib/nvidia-current-updates/libcuda.so.295.40
/usr/lib32/nvidia-current/libcuda.so
/usr/lib32/nvidia-current/libcuda.so.1
/usr/lib32/nvidia-current/libcuda.so.295.40
/usr/lib32/nvidia-current-updates/libcuda.so
/usr/lib32/nvidia-current-updates/libcuda.so.1
/usr/lib32/nvidia-current-updates/libcuda.so.295.40

I tried this, maybe you can figure something from it:
......@ubuntu:/usr/lib/nvidia-current$ file libcuda.so
libcuda.so: symbolic link to `libcuda.so.295.40'
......@ubuntu:/usr/lib/nvidia-current$ file libcuda.so.295.40
libcuda.so.295.40: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, stripped
......@ubuntu:/usr/lib/nvidia-current$

and this:
......@ubuntu:/usr/lib32/nvidia-current$ file libcuda.so
libcuda.so: symbolic link to `libcuda.so.295.40'
......@ubuntu:/usr/lib32/nvidia-current$ file libcuda.so.295.40
libcuda.so.295.40: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, stripped


edit: if it helps:
......@ubuntu:/usr/local/cuda/bin$ file nvcc
nvcc: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), stripped.



Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

maxrider11
This post was updated on .
In reply to this post by Andreas Kloeckner
I have searched a lot, tried a lot myself and other's advice as well. All error gone, but 1 error 'cannot find -lcuda' still there. I am posting all what i did so maybe someone can point out unnoticed.
CUDA was already installed. Its version is 4.0. python version 2.7.3. Ubuntu 12.04(now). Earlier gcc was 4.4, now 4.6. Errors are still same, so i think gcc 4.6 is working well for cuda4.0.
These are all the steps I took from the start till now :

1. Installed necessary libraries (took this from Andreas blog):
$ sudo apt-get install build-essential python-dev python-setuptools libboost-python-dev libboost-thread-dev -y

2. set CUDA_ROOT (some forum)
:~ $ export CUDA_ROOT=/usr/local/cuda
:~ $ sudo sh -c 'echo $CUDA_ROOT'
:~ $ sudo -E sh -c 'echo $CUDA_ROOT'

3. added this at the end of .bashrc file (some forum):
export LD_LIBRARY_PATH=/usr/local/cuda/lib
export PATH=$PATH:/usr/local/cuda/bin

3. ran configure.py like this (Andreas blog):
 $ ./configure.py --cuda-root=/usr/local/cuda --cudadrv-lib-dir=/usr/lib --boost-inc-dir=/usr/include --boost-lib-dir=/usr/lib --boost-python-libname=boost_python-py27 --boost-thread-libname=boost_thread-mt
 
4.$ make -j 4
> 2 errors : whcih i posted in posts above ...........

5. one experienced guy suggested me this:
in ....@ubuntu:/home/mmm/NVIDIA_GPU_Computing_SDK/C/common/common.mk :
after about line 189, OPENGLLIB := -lGL -lGLU -lX11 -lXi -lXmu, add:
OPENGLLIB += -L/usr/lib/nvidia-current -L/usr/lib32/nvidia-current

 •
after about line 271, swap ${RENDERCHECKGLLIB} with ${OPENGLLIB} such that it looks like:
LIB += $(RENDERCHECKGLLIB) ${OPENGLLIB} $(PARAMGLLIB) ${LIB} -ldl -rdynamic

 •a few (5) lines further, do the same, but remove -lcuda too.
 •a few (7) lines further, do the same as you did in line 271.

I did , but still same error.
There is not 1 search result on google for -lcuda error. Something small is missing, I can't spot it. After pouring lots of time, I don't want to abandon it.

Andreas, I appreciate your help. Tomasz's too.
Feel free to ask any question.  
Reply | Threaded
Open this post in threaded view
|

Re: installing pycuda 2011.2.2: error -> cannot find -lboost_python-mt

maxrider11
This post was updated on .
It is quite weird, that i searched on google '/usr/bin/ld: cannot find -lcuda' , but it gave me only links to the thread on forums i made, and nothing else. While this thread for particular problem which people with new nvidia drivers are having was not shown:here.

After looking for lots of info regrarding pycuda installtion but no solution, I thought let's look in cuda. So, the first forum which anyone will choose is NVIDIA. I looked there and got a thread which address same problem. I have posted the link above.

pycuda finally installed.

Thanks to all who helped. Thanks Andreas for blog on pycuda instaltion, it was helpful.