28 de ago. de 2009

Instalar o PyCUDA no Ubuntu 9.04


Fonte: http://wiki.tiker.net/PyCuda/Installation/Linux/Ubuntu

1) Instalando o NumPy

$ sudo apt-get install python-numpy -y

2) Baixando, decompactando e instalando PyCUDA

Instalando as bibliotecas necessárias…
$ sudo apt-get install build-essential python-dev python-setuptools libboost-python1.37-dev -y
Baixando (http://pypi.python.org/pypi/pycuda/0.93rc3) e descompactando PyCUDA
$ tar xzvf pycuda-0.93rc3.tar.gz
Configurando, construindo e instalando
$ cd pycuda-0.93rc3
$./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 --boost-thread-libname=boost_thread-mt
$ make -j 4
$ sudo python setup.py install

Nenhum comentário: