-
Notifications
You must be signed in to change notification settings - Fork 12
libgpuarray on Win10
valtron edited this page Feb 14, 2017
·
1 revision
This guide assumes:
- Dev environment as described here
distutils.cfg
set up to use mingw-
cmake
(installable with pacman)
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
-
Go back to the libgpuarray source directory (in a new bash window, so that it has the updated
$PATH
) -
Edit
setup.py
, and removeif sys.platform == 'win32' and not os.getenv('CONDA_BUILD')
and the 9 lines after it -
Run:
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.