You are using the old Theano back-end. Use the new back-end. It is much
easier to make work on windows with GPU:

https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29

Fred

On Sun, Apr 9, 2017 at 7:06 AM <[email protected]> wrote:

> Hi,everyone. I have some problems when I install theano(GPU)
> My computer's graphics card is GTX1080, and my OS is Win10.
> BTW, I also installed VS2013 already.
> I installed cuda8.0. But there are no CUDA Samples directory in C:\Program
> Files\NVIDIA Corporation\Installer2\
> In cmd window, I can get nvcc -V information
>
>
> <https://lh3.googleusercontent.com/-FlOJeo66ckc/WOoRlVDSEEI/AAAAAAAAAA0/B2ZU9x7Vb8cn94YNdIBQIZshmbRrY3f_QCLcB/s1600/%25E6%258D%2595%25E8%258E%25B7nvcc.PNG>
> I have installed theano(CPU).
> My theano configuration file .theanorc.txt is
>
> [global]
> openmp=False
> device=gpu
> floatX=float32
> allow_input_downcast=True
>
> [blas]
> ldflags=
>
> [gcc]
> cxxflags=-IE:\Anaconda\MinGW
>
> [nvcc]
> flags = -LE:\Anaconda\libs
> compiler_bindir = E:\VS2013\VC\bin
> fastmath = True
> flags=-arch=sm_30
>
> when I run theano.test(), there are many lines of code..
>
>
> <https://lh3.googleusercontent.com/-X9MICZS9uJ4/WOoUAJGA-4I/AAAAAAAAABA/ihZ4iVSMom4QjSR-X-kEwCj5tlaRi_v6wCLcB/s1600/%25E6%258D%2595%25E8%258E%25B75.PNG>
> *ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu
> <http://cuda_ndarray.cu>: ('nvcc return status', 1, 'for cmd',* 'nvcc
> -shared -O3 -Xlinker /DEBUG -D HAVE_ROUND -m64 -Xcompiler
> -DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD
> -I"E:\\Anaconda\\lib\\site-packages\\theano\\sandbox\\cuda"
> -I"E:\\Anaconda\\lib\\site-packages\\numpy\\core\\include"
> -I"E:\\Anaconda\\include" -I"E:\\Anaconda\\lib\\site-packages\\theano\\gof"
> -L"E:\\Anaconda\\libs" -L"E:\\Anaconda" -o
> C:\\Users\\zhouyidan\\AppData\\Local\\Theano\\compiledir_Windows-10-10.0.10586-Intel64_Family_6_Model_94_Stepping_3_GenuineIntel-2.7.12-64\\cuda_ndarray\\cuda_ndarray.pyd
> mod.cu -lcublas -lpython27 -lcudart')
> E:\Anaconda\lib\site-packages\theano\misc\pycuda_init.py:35: UserWarning:
> PyCUDA import failed in theano.misc.pycuda_init
>   warnings.warn("PyCUDA import failed in theano.misc.pycuda_init")
> E:\Anaconda\lib\site-packages\theano\sandbox\gpuarray\__init__.py:10:
> UserWarning: theano.sandbox.gpuarray has been moved to theano.gpuarray.
> Please update your code and pickles. If the warning persists, clear
> theano's cache ('$theano/bin/theano-cache clear').
>   warnings.warn(message)
>
> *nvcc fatal   : Cannot find compiler 'cl.exe' in PATH*
> but in E:\VS2013\VC\bin , there is 'cl.exe'.
>
> What can I do to solve this problem?
> Thank you for any help.
>
> --
>
> ---
> You received this message because you are subscribed to the Google Groups
> "theano-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"theano-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to