Bruce Labitt <[email protected]> writes: > I am trying to install PyCuda from git. I have Ubuntu 14.04, and CUDA6.5 > installed. (Driver is 340.19 from Nvidia, CUDA from Nvidia) CUDA examples > seem to work, at least the ones supported my my hardware. (3.0) Partially > stuck on setting up siteconf.py correctly. Perhaps someone could help me > getting the right configuration. > > 1. Have libboost 1.54 installed from the repo. How do I find which version > of gcc was used to compile libboost?
To be clear, you don't need boost installed to compile PyCUDA, unless
you like to use the extra-difficult build. Just set "USE_SHIPPED_BOOST =
True" and relax.
> 2. What does CUDADRV_LIB_DIR mean? the directory where *what* file is
> located? $ locate cannot find any file named cudadrv
libcuda.so
> 3. For CUDART_LIB_DIR, can I use ${CUDA_ROOT}/lib, or do I need to use the
> full path ${CUDA_ROOT}/lib/targets/x86_64-linux/lib ?
Yes.
> 4. CXXFLAGS recommended? LDFLAGS?
Nope. Don't set those in siteconf.py to retain the defaults unless you
have a good reason.
> 5.Software updater is saying time for an updated kernel. If I update the
> kernel, and its sources, do I need to reinstall the nvidia driver? Cuda6.5
> required a new video driver to work.
Yes.
> 6. When I did sudo make install, the installation complained it could not
> find nvcc. This was because root did not have the correct PATH and
> LD_LIBRARY_PATH. What is the best way to fix this? For myself, I just
> edited my .bashrc file. Is this ok to do for root?
Editing bashrc is fine. PyCUDA generally assumes that nvcc is somewhere
on the path, so you'll have to do that for the user that you'll run as,
too. Alternative: edit /etc/bashrc, or just say
export PATH=$PATH:.../cuda/bin
every time before you want to run PyCUDA code.
HTH,
Andreas
pgpDjVwfIhnJc.pgp
Description: PGP signature
_______________________________________________ PyCUDA mailing list [email protected] http://lists.tiker.net/listinfo/pycuda
