Pygpu test don't test cudnn. Theano is not able to find cudnn, this is the
problem. How did you install it? Check the doc to make sore to install it
correctly.

Fred

Le lun. 20 févr. 2017 20:27, Ragav Venkatesan <[email protected]> a écrit :

> I installed 0.9rc with the new libgpu array and pygpu0.6(?) I am receiving
> the following error:
>
> ERROR (theano.gpuarray): Could not initialize pygpu, support disabled
> Traceback (most recent call last):
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gpuarray/__init__.py",
> line 164, in <module>
>     use(config.device)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gpuarray/__init__.py",
> line 151, in use
>     init_dev(device)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gpuarray/__init__.py",
> line 66, in init_dev
>     avail = dnn.dnn_available(name)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gpuarray/dnn.py",
> line 174, in dnn_available
>     if not dnn_present():
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gpuarray/dnn.py",
> line 165, in dnn_present
>     dnn_present.msg)
> RuntimeError: You enabled cuDNN, but we aren't able to use it: cannot
> compile with cuDNN. We got this error:
> /tmp/try_flags_K2lnzy.c:4:19: fatal error: cudnn.h: No such file or
> directory
> compilation terminated.
>
> I have pygpu installed, cudnn installed and pygpu tests ran properly as
> well.
>
> On Monday, February 20, 2017 at 11:17:13 AM UTC-7, Ragav Venkatesan wrote:
>
> 0.9rc is coming out on conda and pip today !! That's awesome. That fixes a
> lot of problems with my toolbox pip install.
>
> On Monday, February 20, 2017 at 7:32:40 AM UTC-7, nouiz wrote:
>
> This flag should not change where the computation happen. So if it don't
> work on GPU, this is a different problem. I'll put are merged for the
> 0.9rc. So it should be done today. We should get new conda package, wait
> for them. They should work well and have all dependencies.
>
> Fred
>
> Le dim. 19 févr. 2017 18:46, Ragav Venkatesan <[email protected]> a
> écrit :
>
> *In fact, it does not even run on my GPU, only on my CPU.*
>
>
> On Sunday, February 19, 2017 at 4:45:42 PM UTC-7, Ragav Venkatesan wrote:
>
> This temporary workaround does work but it is terribly slow.
>
> On Thursday, February 16, 2017 at 6:24:48 AM UTC-7, nouiz wrote:
>
> Strange. Can you do this to make sure one dependency is installed?
>
> conda install mkl-service
>
> If that don't fix it, try this PR:
> https://github.com/Theano/Theano/pull/5544
>
> A temporary work around is to use this THeano flag: blas.ldflags=
>
> Fred
>
> On Thu, Feb 16, 2017 at 2:11 AM Ragav Venkatesan <[email protected]>
> wrote:
>
> I had a perfectly fine version of theano - libgpuarray working with a
> toolbox that I am writing. I haven't updated my thenao in a while, so I
> updated my theano to bleeding edge, which required an update to my
> libgpuarray install also which I did.
>
> After updating, I am getting the following error (with a bunch of code
> printed) on a piece of code that was working perfectly fine before install.
> I could always roll my updates back, but any advice would help.
>
> Problem occurred during compilation with the command line below:
> /usr/bin/g++ -shared -g -O3 -fno-math-errno -Wno-unused-label
> -Wno-unused-variable -Wno-write-strings -march=haswell -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 -mno-rdseed -mno-prfchw -mno-adx -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=15360 -mtune=haswell
> -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION -m64 -fPIC
> -I/home/ragav/anaconda2/lib/python2.7/site-packages/numpy/core/include
> -I/home/ragav/anaconda2/include/python2.7
> -I/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gof
> -L/home/ragav/anaconda2/lib -fvisibility=hidden -o
> /home/ragav/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.12-64/tmpEodHXQ/a1fc55f7f6d975d0aedab336fe762088.so
> /home/ragav/.theano/compiledir_Linux-4.4--generic-x86_64-with-debian-stretch-sid-x86_64-2.7.12-64/tmpEodHXQ/mod.cpp
> -lmkl -lpython2.7
> /usr/bin/ld: cannot find -lmkl
> collect2: error: ld returned 1 exit status
>
> Traceback (most recent call last):
>   File "pantry/tutorials/lenet.py", line 311, in <module>
>     lenet5 ( dataset, verbose = 2 )
>   File "pantry/tutorials/lenet.py", line 133, in lenet5
>     verbose = verbose
>   File "build/bdist.linux-x86_64/egg/yann/network.py", line 2011, in cook
>   File "build/bdist.linux-x86_64/egg/yann/network.py", line 1430, in
> _initialize_test
>   File "build/bdist.linux-x86_64/egg/yann/network.py", line 1386, in
> _initialize_test_classifier
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/compile/function.py",
> line 326, in function
>     output_keys=output_keys)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/compile/pfunc.py",
> line 486, in pfunc
>     output_keys=output_keys)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/compile/function_module.py",
> line 1795, in orig_function
>     defaults)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/compile/function_module.py",
> line 1661, in create
>     input_storage=input_storage_lists, storage_map=storage_map)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gof/link.py",
> line 699, in make_thunk
>     storage_map=storage_map)[:3]
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gof/vm.py", line
> 1063, in make_all
>     impl=impl))
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gof/op.py", line
> 924, in make_thunk
>     no_recycling)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gof/op.py", line
> 828, in make_c_thunk
>     output_storage=node_output_storage)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line
> 1190, in make_thunk
>     keep_lock=keep_lock)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line
> 1131, in __compile__
>     keep_lock=keep_lock)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line
> 1586, in cthunk_factory
>     key=key, lnk=self, keep_lock=keep_lock)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gof/cmodule.py",
> line 1155, in module_from_key
>     module = lnk.compile_cmodule(location)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gof/cc.py", line
> 1489, in compile_cmodule
>     preargs=preargs)
>   File
> "/home/ragav/anaconda2/lib/python2.7/site-packages/theano/gof/cmodule.py",
> line 2309, in compile_str
>     (status, compile_stderr.replace('\n', '. ')))
> Exception: ('The following error happened while compiling the node',
> CorrMM{valid, (1, 1), (1, 1)}(InplaceDimShuffle{0,3,1,2}.0, Subtensor{::,
> ::, ::int64, ::int64}.0), '\n', 'Compilation failed (return status=1):
> /usr/bin/ld: cannot find -lmkl. collect2: error: ld returned 1 exit status.
> ', '[CorrMM{valid, (1, 1), (1, 1)}(<TensorType(float32, 4D)>,
> <TensorType(float32, 4D)>)]')
>
> --
>
> ---
> 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.
>
> --
>
> ---
> 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