On Thu, Sep 29, 2016, Jason Shi wrote: > Does this mean I have to reinstall theano and all its dependencies for the > 64-bit version of Python?
Yes. > > On Thu, Sep 29, 2016 at 6:13 PM, Pascal Lamblin <[email protected]> > wrote: > > > You seem to have a 32-bit version of Python, but I think recent versions > > of CUDA only support 64-bit executables for GPU. > > > > Can you try with a 64-bit python? > > > > On Thu, Sep 22, 2016, Jason Shi wrote: > > > Hi, > > > > > > This is my error message: > > > > > > > > > 1 #define _CUDA_NDARRAY_C > > > 2 > > > 3 #include <Python.h> > > > 4 #include <structmember.h> > > > 5 #include "theano_mod_helper.h" > > > 6 > > > 7 #include <numpy/arrayobject.h> > > > 8 #include <iostream> > > > 9 > > > 10 #include "cuda_ndarray.cuh" > > > 11 > > > 12 #ifndef CNMEM_DLLEXPORT > > > 13 #define CNMEM_DLLEXPORT > > > 14 #endif > > > 15 > > > ... > > > 5358 // vim: > > > filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:textwidth=79 > > : > > > 5359 > > > =============================== > > > > > > ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: ('nvcc > > > return status', 1, 'for cmd', 'nvcc -shared -O3 -Xlinker /DEBUG -D > > > HAVE_ROUND -m32 -Xcompiler > > > -DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b > > 2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD > > > -IC:\\Python27\\lib\\site-packages\\theano\\sandbox\\cuda > > > -IC:\\Python27\\lib\\site-packages\\numpy\\core\\include > > > -IC:\\Python27\\include -IC:\\Python27\\lib\\site-packages\\theano\\gof > > -o > > > C:\\Users\\Jason\\AppData\\Local\\Theano\\compiledir_ > > Windows-10-10.0.10586-Intel64_Family_6_Model_71_Stepping_1_ > > GenuineIntel-2.7.12-32\\cuda_ndarray\\cuda_ndarray.pyd > > > mod.cu -LC:\\Python27\\libs -LC:\\Python27 -lcublas -lpython27 > > -lcudart') > > > nvcc fatal : Cannot find compiler 'cl.exe' in PATH > > > > > > ['nvcc', '-shared', '-O3', '-Xlinker', '/DEBUG', '-D HAVE_ROUND', '-m32', > > > '-Xcompiler', > > > '-DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b > > 2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,/Zi,/MD', > > > '-IC:\\Python27\\lib\\site-packages\\theano\\sandbox\\cuda', > > > '-IC:\\Python27\\lib\\site-packages\\numpy\\core\\include', > > > '-IC:\\Python27\\include', > > > '-IC:\\Python27\\lib\\site-packages\\theano\\gof', '-o', > > > 'C:\\Users\\Jason\\AppData\\Local\\Theano\\compiledir_ > > Windows-10-10.0.10586-Intel64_Family_6_Model_71_Stepping_1_ > > GenuineIntel-2.7.12-32\\cuda_ndarray\\cuda_ndarray.pyd', > > > 'mod.cu', '-LC:\\Python27\\libs', '-LC:\\Python27', '-lcublas', > > > '-lpython27', '-lcudart'] > > > =============================== > > > 00001 #include <Python.h> > > > 00002 #include <iostream> > > > 00003 #include "theano_mod_helper.h" > > > > > > ... > > > 00781 {NULL, NULL, 0, NULL} > > > 00782 }; > > > 00783 PyMODINIT_FUNC init6ab609a074727e49932fb7f20efca334(void){ > > > 00784 import_array(); > > > 00785 (void) Py_InitModule("6ab609a074727e49932fb7f20efca334", > > MyMethods); > > > 00786 } > > > 00787 > > > In file included from > > > C:\Python27\lib\site-packages\numpy\core\include/numpy/ > > arrayobject.h:4:0, > > > from > > > C:\Users\Jason\AppData\Local\Theano\compiledir_Windows-10- > > 10.0.10586-Intel64_Family_6_Model_71_Stepping_1_GenuineIntel-2.7.12-32\ > > tmpxpvmhz\mod.cpp:5: > > > C:\Users\Jason\AppData\Local\Theano\compiledir_Windows-10- > > 10.0.10586-Intel64_Family_6_Model_71_Stepping_1_GenuineIntel-2.7.12-32\ > > tmpxpvmhz\mod.cpp: > > > In member function 'int > > > {anonymous}::__struct_compiled_op_6ab609a074727e49932fb7f20efca3 > > 34::run()': > > > C:\Python27\lib\site-packages\numpy\core\include/numpy/ > > ndarrayobject.h:135:77: > > > error: cannot convert 'npy_int64* {aka long long int*}' to 'npy_intp* > > {aka > > > int*}' in argument passing > > > PyArray_New(&PyArray_Type, nd, dims, typenum, NULL, NULL, 0, 0, > > > NULL) > > > > > > ^ > > > C:\Users\Jason\AppData\Local\Theano\compiledir_Windows-10- > > 10.0.10586-Intel64_Family_6_Model_71_Stepping_1_GenuineIntel-2.7.12-32\ > > tmpxpvmhz\mod.cpp:457:34: > > > note: in expansion of macro 'PyArray_SimpleNew' > > > V1 = (PyArrayObject*)PyArray_SimpleNew(4, odims, 12); > > > ^ > > > > > > Traceback (most recent call last): > > > File "C:/Users/Jason/PycharmProjects/EmotionDetection/test.py", line > > 35, > > > in <module> > > > train_fn = theano.function([input_var, target_var], loss, > > > updates=updates) > > > File "C:\Python27\lib\site-packages\theano\compile\function.py", line > > > 320, in function > > > output_keys=output_keys) > > > File "C:\Python27\lib\site-packages\theano\compile\pfunc.py", line > > 479, > > > in pfunc > > > output_keys=output_keys) > > > File "C:\Python27\lib\site-packages\theano\compile\ > > function_module.py", > > > line 1777, in orig_function > > > defaults) > > > File "C:\Python27\lib\site-packages\theano\compile\ > > function_module.py", > > > line 1641, in create > > > input_storage=input_storage_lists, storage_map=storage_map) > > > File "C:\Python27\lib\site-packages\theano\gof\link.py", line 690, in > > > make_thunk > > > storage_map=storage_map)[:3] > > > File "C:\Python27\lib\site-packages\theano\gof\vm.py", line 1003, in > > > make_all > > > no_recycling)) > > > File "C:\Python27\lib\site-packages\theano\gof\op.py", line 970, in > > > make_thunk > > > no_recycling) > > > File "C:\Python27\lib\site-packages\theano\gof\op.py", line 879, in > > > make_c_thunk > > > output_storage=node_output_storage) > > > File "C:\Python27\lib\site-packages\theano\gof\cc.py", line 1200, in > > > make_thunk > > > keep_lock=keep_lock) > > > File "C:\Python27\lib\site-packages\theano\gof\cc.py", line 1143, in > > > __compile__ > > > keep_lock=keep_lock) > > > File "C:\Python27\lib\site-packages\theano\gof\cc.py", line 1595, in > > > cthunk_factory > > > key=key, lnk=self, keep_lock=keep_lock) > > > File "C:\Python27\lib\site-packages\theano\gof\cmodule.py", line > > 1142, in > > > module_from_key > > > module = lnk.compile_cmodule(location) > > > File "C:\Python27\lib\site-packages\theano\gof\cc.py", line 1506, in > > > compile_cmodule > > > preargs=preargs) > > > File "C:\Python27\lib\site-packages\theano\gof\cmodule.py", line > > 2196, in > > > compile_str > > > (status, compile_stderr.replace('\n', '. '))) > > > Exception: ('The following error happened while compiling the node', > > > mrg_uniform{TensorType(float64, 4D),inplace}(<TensorType(int32, > > matrix)>, > > > MakeVector{dtype='int64'}.0), '\n', "Compilation failed (return > > status=1): > > > In file included from > > > C:\\Python27\\lib\\site-packages\\numpy\\core\\ > > include/numpy/arrayobject.h:4:0,\r. > > > from > > > C:\\Users\\Jason\\AppData\\Local\\Theano\\compiledir_ > > Windows-10-10.0.10586-Intel64_Family_6_Model_71_Stepping_1_ > > GenuineIntel-2.7.12-32\\tmpxpvmhz\\mod.cpp:5:\r. > > > C:\\Users\\Jason\\AppData\\Local\\Theano\\compiledir_ > > Windows-10-10.0.10586-Intel64_Family_6_Model_71_Stepping_1_ > > GenuineIntel-2.7.12-32\\tmpxpvmhz\\mod.cpp: > > > In member function 'int > > > {anonymous}::__struct_compiled_op_6ab609a074727e49932fb7f20efca3 > > 34::run()':\r. > > > C:\\Python27\\lib\\site-packages\\numpy\\core\\ > > include/numpy/ndarrayobject.h:135:77: > > > error: cannot convert 'npy_int64* {aka long long int*}' to 'npy_intp* > > {aka > > > int*}' in argument passing\r. PyArray_New(&PyArray_Type, nd, > > dims, > > > typenum, NULL, NULL, 0, 0, NULL)\r. > > > ^\r. > > > C:\\Users\\Jason\\AppData\\Local\\Theano\\compiledir_ > > Windows-10-10.0.10586-Intel64_Family_6_Model_71_Stepping_1_ > > GenuineIntel-2.7.12-32\\tmpxpvmhz\\mod.cpp:457:34: > > > note: in expansion of macro 'PyArray_SimpleNew'\r. V1 = > > > (PyArrayObject*)PyArray_SimpleNew(4, odims, 12);\r. > > > ^\r. ", '[*1 -> mrg_uniform{TensorType(float64, > > > 4D),inplace}(<TensorType(int32, matrix)>, <TensorType(int64, vector)>), > > > *1::1]') > > > > > > > > > > > > > > > On Thursday, September 22, 2016 at 2:38:40 PM UTC-4, Pascal Lamblin > > wrote: > > > > > > > > Hi, > > > > > > > > Please report the full error. > > > > > > > > You can use nosetests to only run one test to avoid having to wait for > > > > the end of execution to have the complete output. > > > > > > > > On Wed, Sep 21, 2016, Jason Shi wrote: > > > > > I just installed theano and I ran theano.test() to check to see if it > > > > was > > > > > installed correctly. However, I keep on getting this error when > > running > > > > > each test: > > > > > > > > > > Problem occurred during compilation with the command line below: > > > > > C:\MinGW\bin\g++.exe -shared -g -O3 -fno-math-errno -Wno-unused-label > > > > > -Wno-unused-variable -Wno-write-strings -march=broadwell -mmmx > > > > -mno-3dnow > > > > > -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes > > > > -mno-sha > > > > > -mpclmul -mpopcnt -mabm -mno-lwp -mfma -mno-fma4 -mno-xop -mbmi > > -mbmi2 > > > > > -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle > > > > -mrdrnd > > > > > -mf16c -mfsgsbase -mrdseed -mprfchw -madx -mfxsr -mxsave -mxsaveopt > > > > > -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf > > -mno-prefetchwt1 > > > > > -mno-clflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw > > > > > -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-clwb -mno-pcommit > > > > > -mno-mwaitx --param l1-cache-size=32 --param l1-cache-line-size=64 > > > > --param > > > > > l2-cache-size=6144 -mtune=generic -D > > > > > NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m32 > > > > > -IC:\Python27\lib\site-packages\numpy\core\include > > -IC:\Python27\include > > > > > -IC:\Python27\lib\site-packages\theano\gof -o > > > > > > > > > C:\Users\Jason\AppData\Local\Theano\compiledir_Windows-10- > > 10.0.10586-Intel64_Family_6_Model_71_Stepping_1_ > > GenuineIntel-2.7.12-32\tmprlk_mn\e0ada93156031295b59a47b2ac67e51d.pyd > > > > > > > > > > > > > C:\Users\Jason\AppData\Local\Theano\compiledir_Windows-10- > > 10.0.10586-Intel64_Family_6_Model_71_Stepping_1_ > > GenuineIntel-2.7.12-32\tmprlk_mn\mod.cpp > > > > > > > > > -LC:\Python27\libs -LC:\Python27 -lpython27 > > > > > E...S...00001 #include <Python.h> > > > > > > > > > > How do I fix this? > > > > > > > > > > -- > > > > > > > > > > --- > > > > > 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] <javascript:>. > > > > > For more options, visit https://groups.google.com/d/optout. > > > > > > > > > > > > -- > > > > Pascal > > > > > > > > > > -- > > > > > > --- > > > 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. > > > > > > -- > > Pascal > > > > -- > > > > --- > > You received this message because you are subscribed to a topic in the > > Google Groups "theano-users" group. > > To unsubscribe from this topic, visit https://groups.google.com/d/ > > topic/theano-users/v_RblCIOsA8/unsubscribe. > > To unsubscribe from this group and all its topics, send an email to > > [email protected]. > > For more options, visit https://groups.google.com/d/optout. > > > > > > -- > Sincerely, > Jason Shi > > -- > > --- > 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. -- Pascal -- --- 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.
