This guide assumes:
distutils.cfg
cmake
To install libgpuarry and pygpu:
Run:
LGA_DIR=$DEV/libgpuarray git clone https://github.com/Theano/libgpuarray.git cd libgpuarray mkdir build && cd build cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=$LGA_DIR -G "Unix Makefiles" make && make install
libgpuarray should now be in $LGA_DIR. Add $LGA_DIR/bin to your $PATH
$LGA_DIR
$LGA_DIR/bin
$PATH
Go back to the libgpuarray source directory (in a new bash window, so that it has the updated $PATH)
Edit setup.py, and remove if sys.platform == 'win32' and not os.getenv('CONDA_BUILD') and the 9 lines after it
setup.py
if sys.platform == 'win32' and not os.getenv('CONDA_BUILD')
python setup.py build_ext -L $LGA_DIR/lib -I $LGA_DIR/include python setup.py install
Test your install with DEVICE=cuda python -c "import pygpu;pygpu.test()". In my case, 40/6894 failed.
DEVICE=cuda python -c "import pygpu;pygpu.test()"
There was an error while loading. Please reload this page.