KubiK888
KubiK888

Reputation: 4723

Errors installing CUDA back-end (or cudarray) in Python in Windows 10

I am trying to follow the instructions to install CUDA (https://github.com/andersbll/cudarray).

I am able to install the cudarray python package WITHOUT CUDA back-end following the instruction. The installation seems to be successful. When "pip freeze" I can see "cudarray==0.1.dev0" on the list.

Though what I really want to set up is WITH CUDA back-end and am having troubles.

Question #1: The instruction suggests that the INSTALL_PREFIX should be "/usr/local" and CUDA_PREFIX should be "/usr/local/cuda". My python is installed via Data/Anaconda, and the path to my site package is "C:\Users\XYZ\AppData\Local\Dato\Dato Launcher\Lib\site-packages". Does it mean my INSTALL_PREFIX should be set to "C:/Users/XYZ/AppData/Local" and my CUDA_PREFIX should be "C:/Users/XYZ/AppData/Local/cuda"?

Question #2: From the installation instruction, it says I have to type "make" then "make install". But I don't know where and when to execute these commands. What I tried was cmd (into terminal) > cd (to the setup.py path under the cudarray-master folder) > make. Then I got "'make' is not recognized as an internal or external command, operable program or batch file."

===========================================================================

Edits/updates: Since my question I have installed GnuWin32, then I add its bin path as an environment variable.

After I cd to the location and type make, I got this error:

C:\Users\XYZ\Desktop\DeepArtist_Python\cudarray-master>make
g++ -O3 -fPIC -Wall -Wfatal-errors -D_FORCE_INLINES -I./include -I/usr/local/cuda/include -c -o src/nnet/conv_bc01_matmul.o src/nnet/conv_bc01_matmul.cpp
process_begin: CreateProcess(NULL, g++ -O3 -fPIC -Wall -Wfatal-errors -D_FORCE_INLINES -I./include -I/usr/local/cuda/include -c -o src/nnet/conv_bc01_matmul.o src/nnet/conv_bc01_matmul.cpp, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [src/nnet/conv_bc01_matmul.o] Error 2

Upvotes: 0

Views: 830

Answers (1)

M Hart
M Hart

Reputation: 146

This doesn't directly answer your question; however, it should provide insight into your issue or you can directly follow the outlined steps to get PyCUDA installed: I have recently (within the past 4 months) successfully completed a PyCUDA install on my Win 10 machine. The steps I followed including links to the requisite python and PyCUDA libraries can be found here:

Win 10 PyCUDA install instructions

Upvotes: 1

Related Questions