* When executing: ```sudo python setup.py install``` If you got the following error: ```*** CUDA_ROOT not set, and nvcc not in path. * $ sudo ln -s /usr/lib/libboost_python-mt-py26.so /usr/lib/libboost_python-mt.so * On ubuntu releases using the 'cuda3.1' package ( ubuntu 10.04 Lucid Lynx), you will need to add the following link:
* $ ln -sf /usr/lib/nvidia-current/libcuda.so /usr/lib/libcuda.so ubuntu 10.04 Lucid Lynx), you will need to add the following link: * On ubuntu releases using the 'nvidia-current' package (e.g. * $ sudo ln -s /usr/lib/libboost_python-mt-py26 /usr/lib/libboost_python-mt
For example, on Ubuntu 9.10, you might need to make a link libboost_python-mt to libboost_python-mt-py26 (alternatively you can just use ```-boost-python-libname=boost_python-mt-py26```: * If you get errors about not being able to find -lboost_python-mt or -lboost_thread-mt, but you know they are in /usr/lib or wherever, make sure the symlinks to those files exist. * Modify ```-cuda-root=/usr/local/cuda``` if cuda is not installed in ```/usr/local/cuda```. * If you are not installing P圜UDA 0.93 or above, remove the ```-boost-thread-libname=boost_thread-mt``` configure.py -python-exe=/usr/bin/python3 -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-p圓2 -boost-thread-libname=boost_thread-mt -no-use-shipped-boost
INSTALL CUDA LINUX INSTALL
The -mt suffix after boost_python had been removed because the installed Boost libraries are multi-threading safe.Ĭonfigure, make and install P圜UDA using Python3.2 (on Ubuntu 12.04): (Note that boost_python-mt becomes boost_python-mt-p圓2) configure.py -python-exe=/usr/bin/python3 -cuda-root=/usr/local/cuda -cudadrv-lib-dir=/usr/lib/x86_64-linux-gnu -boost-inc-dir=/usr/include -boost-lib-dir=/usr/lib -boost-python-libname=boost_python-p圓4 -boost-thread-libname=boost_thread -no-use-shipped-boost so e.g libboost_python.so but they should not be specified in the name) configure.py -cuda-root=/usr/local/cuda -cudadrv-lib-dir=/usr/lib/x86_64-linux-gnu -boost-inc-dir=/usr/include -boost-lib-dir=/usr/lib -boost-python-libname=boost_python -boost-thread-libname=boost_thread -no-use-shipped-boost (if still not works try to locate boost library files and change accordingly, libraries start with lib and end with. On Ubuntu 14.04 64bit version the command should be (boost lib folder and files changed) 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 $ sudo apt-get install build-essential python-dev python-setuptools libboost-python-dev libboost-thread-dev -y Step 4: Download, unpack and install P圜UDA Or you may install from source if you're aiming for peak (CPU) performance. You may use Ubuntu's built-in numpy package by typing
You may use Ubuntu's built-in Boost C++ library packages by typingīoost.Python has supported both Python 2.x and 3.x since 2009. Bonus: There are pre-built binary packages on that page. (P圜uda/Installation/Linux/Debian) generally is very similar to Ubuntu, so those instructions might work, too. You may also look at the (P圜uda/Installation/Linux) if you'd like to install manually. Ubuntu 8.10 works just like this, except for a changed boost version number. These instructions were written for Ubuntu 9.04 and also work for Ubuntu 10.04, 10.10 and 11.04.