Hi, how did you solve your problem?

El sábado, 24 de octubre de 2015, 14:53:13 (UTC+2), 李奕 escribió:
>
> My environment is win10 + python3.4+ theano 0.7+cuda7.5. when I import 
> theano from teriminal , I get the error like:
> ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: 'utf-8' 
> codec can't decode......
>
> I set log level as debug, get the folloing info : 
> INFO (theano.gof.cmodule): Call to 'g++ -march=native' failed,not setting 
> -march flag
> DEBUG (theano.gof.cmodule): Compiling for 64 bit architecture
> DEBUG (theano.gof.cmodule): Writing module C++ code to 
> C:\Users\liyi1\AppData\Local\Theano\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.3-64\cutils_ext\mod.cpp
> DEBUG (theano.gof.cmodule): Generating shared lib 
> C:\Users\liyi1\AppData\Local\Theano\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.3-64\cutils_ext\cutils_ext.pyd
> DEBUG (theano.gof.cmodule): Running cmd: C:\Program 
> Files\mingw-w64\x86_64-5.2.0-posix-seh-rt_v4-rev0\mingw64\bin\g++.exe 
> -shared -g -D NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -DMS_WIN64 
> -ID:\Anaconda3\lib\site-packages\numpy\core\include -ID:\Anaconda3\include 
> -o 
> C:\Users\liyi1\AppData\Local\Theano\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.3-64\cutils_ext\cutils_ext.pyd
>  
> C:\Users\liyi1\AppData\Local\Theano\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.3-64\cutils_ext\mod.cpp
>  
> -LD:\Anaconda3\libs -LD:\Anaconda3 -lpython34
> DEBUG (theano.gof.cmodule): WORKDIR 
> C:\Users\liyi1\AppData\Local\Theano\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.3-64
> DEBUG (theano.gof.cmodule): module_name cutils_ext.cutils_ext
> DEBUG (theano.tensor.opt): enabling optimization fusion elemwise in 
> fast_run
> DEBUG (theano.sandbox.cuda.nvcc_compiler): Writing module C++ code to 
> C:\Users\liyi1\AppData\Local\Theano\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.3-64\cuda_ndarray\
> mod.cu
> DEBUG (theano.sandbox.cuda.nvcc_compiler): Generating shared lib 
> C:\Users\liyi1\AppData\Local\Theano\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.3-64\cuda_ndarray\cuda_ndarray.pyd
> DEBUG (theano.sandbox.cuda.nvcc_compiler): Running cmd nvcc -shared -O3 
> -use_fast_math -Xlinker /DEBUG -D HAVE_ROUND -m64 -Xcompiler 
> -DCUDA_NDARRAY_CUH=m11b90075e2397c684f9dc0f7276eab8f,-D 
> NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD 
> -ID:\Anaconda3\lib\site-packages\theano\sandbox\cuda 
> -ID:\Anaconda3\lib\site-packages\numpy\core\include -ID:\Anaconda3\include 
> -o 
> C:\Users\liyi1\AppData\Local\Theano\compiledir_Windows-8-6.2.9200-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-3.4.3-64\cuda_ndarray\cuda_ndarray.pyd
>  
> mod.cu -LD:\Anaconda3\libs -LD:\Anaconda3 -lpython34 -lcublas -lcudart 
> --ptxas-options=-vERROR (theano.sandbox.cuda): Failed to compile 
> cuda_ndarray.cu: 'utf-8' codec can't decode byte 0xd5 in position 5319: 
> invalid continuation byte
>
> WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not 
> available (error: cuda unavilable)
>
> my theanorc config is ( and vs2010 's bin, cuda root path and so on has 
> been put into windows environment) : 
> #!sh
> [global]
> device = gpu
> [nvcc]
> compiler_bindir=D:\vs2010\VC\bin
> flags = -LD:\Anaconda3\libs
> fastmath = True
> I debug the nvcc_compile.py and theano.sandbox.cuda.*init*.py a long 
> time, but don't know what's wrong, please help me. Thanks much!
>

-- 

--- 
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 theano-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to