I had the same issue in Windows 10. The solution I found was to add the
path to kernel32.lib to the environment variable LIB. In my case, the path
to the file is "C:\Program Files (x86)\Windows
Kits\8.1\Lib\winv6.3\um\x64". Though I am guessing, it should be fairly
similar in the case of Win7.
Best regards.
Juan
On Thursday, July 16, 2015 at 5:11:42 AM UTC-3, Yuetian Liu wrote:
>
> Dear Theano users,
>
> After I installing the CUDA6.5, Python(x,y)2.7.6.1, VS2012 and
> Theano in Win7 system, and then I input the "import theano" in Python IDLE.
>
> But there are many errors as follows:
>
> mod.cu
>
> LINK : fatal error LNK1104: cannot open file 'kernel32.lib'
>
>
> ['nvcc', '-shared', '-O3', '-LC:\\Python27\\libs', '--compiler-bindir',
> 'D:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\bin',
> '-Xlinker', '/DEBUG', '-D HAVE_ROUND', '-m32', '-Xcompiler',
> '-DCUDA_NDARRAY_CUH=c9bf508a7d4a85caaad53710f8c30be5,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD',
>
> '-IC:\\Python27\\lib\\site-packages\\theano-0.7.0-py2.7.egg\\theano\\sandbox\\cuda',
>
> '-IC:\\Python27\\lib\\site-packages\\numpy\\core\\include',
> '-IC:\\Python27\\include',
> '-IC:\\Python27\\lib\\site-packages\\theano-0.7.0-py2.7.egg\\theano\\gof',
> '-o',
> 'C:\\Users\\Administrator\\AppData\\Local\\Theano\\compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-2.7.6-32\\cuda_ndarray\\cuda_ndarray.pyd',
>
> 'mod.cu', '-LC:\\Python27\\libs', '-LC:\\Python27', '-lpython27',
> '-lcublas', '-lcudart']
> ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: ('nvcc
> return status', 2, 'for cmd', 'nvcc -shared -O3 -LC:\\Python27\\libs
> --compiler-bindir D:\\Program Files (x86)\\Microsoft Visual Studio
> 11.0\\VC\\bin -Xlinker /DEBUG -D HAVE_ROUND -m32 -Xcompiler
> -DCUDA_NDARRAY_CUH=c9bf508a7d4a85caaad53710f8c30be5,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD
>
> -IC:\\Python27\\lib\\site-packages\\theano-0.7.0-py2.7.egg\\theano\\sandbox\\cuda
>
> -IC:\\Python27\\lib\\site-packages\\numpy\\core\\include
> -IC:\\Python27\\include
> -IC:\\Python27\\lib\\site-packages\\theano-0.7.0-py2.7.egg\\theano\\gof -o
> C:\\Users\\Administrator\\AppData\\Local\\Theano\\compiledir_Windows-7-6.1.7601-SP1-Intel64_Family_6_Model_60_Stepping_3_GenuineIntel-2.7.6-32\\cuda_ndarray\\cuda_ndarray.pyd
>
> mod.cu -LC:\\Python27\\libs -LC:\\Python27 -lpython27 -lcublas -lcudart')
> WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not
> available (error: cuda unavilable)
>
> How can I fix it? Please help me to fix it.
>
> Thank you very much!
>
> Best,
> Yuetian
>
--
---
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.