And you _still_ have the following in your error message?
That is surprising, I don't see where it would get "C:/Program" from.
Post by Qinpeng WangHi Pascal,
I have got rid of that line a while ago following your advice, here is
[global]
floatX = float32
device = cuda
[dnn]
enabled = True
Thanks!
You _also_ need to remove the incorrect "blas.ldflags" line from .theanorc.
Post by Qinpeng WangHi, Arnaud,
Thanks for your reply! I reinstalled CUDA, copied cudnn files in the
cuda directory, and removed the two parameters. However, I got
the same
Post by Qinpeng Wang|ERROR (theano.gpuarray): Could not initialize pygpu, support
disabled
Post by Qinpeng WangTraceback (most recent call last): File "C:\Program
Files\Anaconda3\envs\te\lib\site-packages\theano\gpuarray\__init__.py",
Post by Qinpeng Wangline 227, in <module> use(config.device) File "C:\Program
Files\Anaconda3\envs\te\lib\site-packages\theano\gpuarray\__init__.py",
Post by Qinpeng Wangline 214, in use init_dev(device, preallocate=preallocate) File
"C:\Program
Files\Anaconda3\envs\te\lib\site-packages\theano\gpuarray\__init__.py",
Post by Qinpeng Wangline 121, in init_dev dnn.dnn_available.msg) RuntimeError: You
enabled
Post by Qinpeng WangcuDNN, but we aren't able to use it: cannot compile with cuDNN.
We got
Post by Qinpeng Wangthis error: b'C:/Program
cannot find C:/Program: No such file or directory C:/Program
cannot find
No such file or directory collect2.exe: error: ld returned 1 exit
status'|
Post by Qinpeng WangAny other suggestion you have?
Thanks!
On Tuesday, April 10, 2018 at 12:45:59 PM UTC-5, Arnaud Bergeron
Hi Pascal,
I have CUDA installed a while ago when I was still using the
old
Post by Qinpeng Wang GPU backend at C:\Program Files\NVIDIA GPU Computing
Toolkit, then
Post by Qinpeng Wang I copied the CUDA folder to C root.
This most likely broke DLL registrations. Please don't do that.
If you reinstall cuda in its original location, put the cudnn
files
Post by Qinpeng Wang in the cuda directory and remove these two parameters in your
|include_path=C:/CUDA/v7.5/include
library_path=C:/CUDA/v7.5/lib/x64|
Post by Qinpeng Wang It should work again.
---
I you really want to try with the current setup, you can try
to set this
Post by Qinpeng Wang |base_path=C:/CUDA/v7.5 |
Instead of the two above, but I'm pretty sure that will still
break
Post by Qinpeng Wang on the cuda DLLs.
Then I installed cuDNN by copying unzipped files into
corresponding folders inside CUDA folder. I'm using CUDA 7.5
and
Post by Qinpeng Wang cuDNN 6.0 (Windows7). See my theanoc file in my original
post to
Post by Qinpeng Wang make sure I have pointed theano to the right location.
Yes this error is not related to Idflags.
Thanks!
On Tuesday, April 3, 2018 at 9:59:38 AM UTC-5, Pascal
This is a completely different error message.
This one has to do with cuDNN, not BLAS or MKL.
Where have you installed cuDNN?
Does _that_ error still happen when you do not ldflags?
> Hi Pascal,
>
> Thanks for your reply!
> I have "mkl-service" package installed via conda (I have
versions of
> installed libraries in my original post), but somehow
theano
Post by Qinpeng Wang is unable
> to locate the BLAS library automatically, hence the
warning
Post by Qinpeng Wang message.
> Since the "gcc-v" output seems reasonable, could you
please
Post by Qinpeng Wang help me
> figure out how to get rid of the error message in my
original post? I
> attach it here again for your convenience.
>
> |python -c "import theano"|
>
>
> |ERROR (theano.gpuarray): Could not initialize pygpu,
support disabled
> Traceback (most recent call last): File "C:\Program
>
Files\Anaconda3\envs\te\lib\site-packages\theano\gpuarray\__init__.py",
Post by Qinpeng Wang > line 227, in <module> use(config.device) File "C:\Program
>
Files\Anaconda3\envs\te\lib\site-packages\theano\gpuarray\__init__.py",
Post by Qinpeng Wang > line 214, in use init_dev(device,
preallocate=preallocate) File
Files\Anaconda3\envs\te\lib\site-packages\theano\gpuarray\__init__.py",
Post by Qinpeng Wang > line 121, in init_dev dnn.dnn_available.msg)
You enabled
> cuDNN, but we aren't able to use it: cannot compile with
cuDNN. We got
> this error: b'C:/Program
>
> cannot find C:/Program: No such file or directory
C:/Program
Post by Qinpeng Wang >
> cannot find
>
> No such file or directory collect2.exe: error: ld
returned 1
Post by Qinpeng Wang exit status' |
>
>
> Thanks!
>
>
> On Tuesday, April 3, 2018 at 9:28:37 AM UTC-5, Pascal
>
> > Hi Pascal,
> >
> > Thanks for your reply!! Indeed I wasn't really
sure
Post by Qinpeng Wang how to set the
> > ldflags parameter, but if I don't have this
line, I
Post by Qinpeng Wang get this warning
> >
> > WARNING (theano.tensor.blas): Using NumPy C-API
based
Post by Qinpeng Wang > implementation for
> > BLAS functions.
>
> This is just a warning, the worse issue would be a
slight slow down in
> some CPU operations.
>
> > After inspecting theano/tensor/blas_headers.py
> >
>
<https://github.com/Theano/Theano/blob/82a3ec977b7c8630d92871e70d62e5a2c52cea62/theano/tensor/blas_headers.py
<https://github.com/Theano/Theano/blob/82a3ec977b7c8630d92871e70d62e5a2c52cea62/theano/tensor/blas_headers.py>
<https://github.com/Theano/Theano/blob/82a3ec977b7c8630d92871e70d62e5a2c52cea62/theano/tensor/blas_headers.py
<https://github.com/Theano/Theano/blob/82a3ec977b7c8630d92871e70d62e5a2c52cea62/theano/tensor/blas_headers.py>>
<https://github.com/Theano/Theano/blob/82a3ec977b7c8630d92871e70d62e5a2c52cea62/theano/tensor/blas_headers.py
<https://github.com/Theano/Theano/blob/82a3ec977b7c8630d92871e70d62e5a2c52cea62/theano/tensor/blas_headers.py>
<https://github.com/Theano/Theano/blob/82a3ec977b7c8630d92871e70d62e5a2c52cea62/theano/tensor/blas_headers.py
<https://github.com/Theano/Theano/blob/82a3ec977b7c8630d92871e70d62e5a2c52cea62/theano/tensor/blas_headers.py>>>>,
Post by Qinpeng Wang >
> >
> > |if not config.blas.ldflags: logger.warning('Using
NumPy C-API based
> > implementation for BLAS functions.')|
> >
> > So I realize I may have to have ldflags in the
theaorc file to
> get rid
> > of this warning message. *How to set
ldflags correctly?*
Post by Qinpeng Wang >
> These flags are for specifying where an optimized
BLAS
Post by Qinpeng Wang library is, when
> it is not found automatically.
> If you do not have an optimized BLAS library
installed,
Post by Qinpeng Wang then it should
> stay empty.
>
> Did you install the "mkl-service" package in conda?
> This is usually the easiest way to install an
optimized
Post by Qinpeng Wang BLAS that will
> be automatically found.
>
> > I was asking around what the correct output of
"gcc
Post by Qinpeng Wang -v" would
> look like,
>
> This seems reasonable.
>
> >
> > |Using built-in specs. COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=C:/Program\
> >
>
Files/Anaconda3/envs/te/Library/mingw-w64/bin/../lib/gcc/x86_64-w64-mingw32/5.3.0/lto-wrapper.exe
Post by Qinpeng Wang >
../gcc-5.3.0/configure
> > --prefix=/mingw64
--with-local-prefix=/mingw64/local
Post by Qinpeng Wang > > --build=x86_64-w64-mingw32
--host=x86_64-w64-mingw32
Post by Qinpeng Wang > > --target=x86_64-w64-mingw32
> >
--with-native-system-header-dir=/mingw64/x86_64-w64-mingw32/include
Post by Qinpeng Wang > > --libexecdir=/mingw64/lib
> > --with-gxx-include-dir=/mingw64/include/c++/5.3.0
--enable-bootstrap
> > --with-arch=x86-64 --with-tune=generic
> >
--enable-languages=c,lto,c++,objc,obj-c++,fortran,ada
Post by Qinpeng Wang > --enable-shared
> > --enable-static --enable-libatomic
--enable-threads=posix
Post by Qinpeng Wang > > --enable-graphite --enable-fully-dynamic-string
> > --enable-libstdcxx-time=yes
--disable-libstdcxx-pch
Post by Qinpeng Wang > > --disable-libstdcxx-debug
--enable-version-specific-runtime-libs
> > --disable-isl-version-check --enable-lto
--enable-libgomp
Post by Qinpeng Wang > > --disable-multilib --enable-checking=release
--disable-rpath
> > --disable-win32-registry --disable-nls
--disable-werror
Post by Qinpeng Wang > > --disable-symvers --with-libiconv
--with-system-zlib
Post by Qinpeng Wang > --with-gmp=/mingw64
> > --with-mpfr=/mingw64 --with-mpc=/mingw64
--with-isl=/mingw64
> > --with-pkgversion='Rev5, Built by MSYS2 project'
> >
--with-bugurl=https://sourceforge.net/projects/msys2
<https://sourceforge.net/projects/msys2>
Post by Qinpeng Wang <https://sourceforge.net/projects/msys2
<https://sourceforge.net/projects/msys2>>
Post by Qinpeng Wang > <https://sourceforge.net/projects/msys2
<https://sourceforge.net/projects/msys2>
Post by Qinpeng Wang <https://sourceforge.net/projects/msys2
<https://sourceforge.net/projects/msys2>>> --with-gnu-as
Post by Qinpeng Wang > > --with-gnu-ld Thread model: posix gcc version
5.3.0
Post by Qinpeng Wang (Rev5, Built by
> > MSYS2 project)|
> >
> >
> > Lastly, I have restarted the computer, the error
message stayed
> the same.
> >
> > Thank you so much!
> >
> > On Friday, March 30, 2018 at 9:38:11 PM UTC-5,
Pascal
Post by Qinpeng Wang > >
> > Your "ldflags" option in the "[blas]"
section is
Post by Qinpeng Wang not correct,
> it should
> > at least start with -I or -l, and there
should be
Post by Qinpeng Wang quotation
> marks
> > around
> > the path since there is a space in "Program
Files".
Post by Qinpeng Wang > >
> > What happens if you do not include this
line in
Post by Qinpeng Wang the .theanorc?
> >
> > Are you able to run `gcc -v` from inside the
conda env, and
> what is the
> > output?
> >
> > Also, it may seem stupid, but have you
restarted your
Post by Qinpeng Wang > computer, or at
> > least the terminal, since you installed
m2w64-toolchain?
> >
> > > Hi, all,
> > >
> > >
> > > I'm trying to setup theano 1.0.1 with
CUDA 7.5
Post by Qinpeng Wang and cuDNN 6.0
> > (Windows7).
> > > I created a new virtual environment with
conda
Post by Qinpeng Wang and installed
> > required
> > >
> > > |conda install numpy scipy mkl-service
libpython
Post by Qinpeng Wang > m2w64-toolchain
> > conda
> > > install theano pygpu |
> > >
> > > Here are versions of major relavant
> > >
> > > |theano 1.0.1 python 3.5.5 numpy 1.14.2
scipy
Post by Qinpeng Wang 1.0.0
> > m2w64-toolchain 5.3.0
> > > mkl-service 1.1.2 pygpu 0.7.5 libgpuarray
0.7.5 libpython
> 2.1 mkl
> > 2018.0.2 |
> > >
> > > The way I installed cuDNN is to copy files
into corresponding
> > folders
> > > inside CUDA folder. Originally I installed
CUDA at C:\Program
> > > Files\NVIDIA GPU Computing Toolkit, then I
copied the CUDA
> folder
> > to C root.
> > >
> > > |python -c "import theano"|
> > >
> > >
> > > |ERROR (theano.gpuarray): Could not
initialize
Post by Qinpeng Wang pygpu, support
> > disabled
> > > Traceback (most recent call last): File
"C:\Program
> > >
> >
>
Files\Anaconda3\envs\te\lib\site-packages\theano\gpuarray\__init__.py",
Post by Qinpeng Wang > > > line 227, in <module> use(config.device)
File
Post by Qinpeng Wang "C:\Program
> > >
> >
>
Files\Anaconda3\envs\te\lib\site-packages\theano\gpuarray\__init__.py",
Post by Qinpeng Wang > > > line 214, in use init_dev(device,
preallocate=preallocate)
> File
> > > "C:\Program
> > >
> >
>
Files\Anaconda3\envs\te\lib\site-packages\theano\gpuarray\__init__.py",
Post by Qinpeng Wang > > > line 121, in init_dev
dnn.dnn_available.msg)
Post by Qinpeng Wang > You
> > enabled
> > > cuDNN, but we aren't able to use it: cannot
compile with
> cuDNN.
> > We got
> > > this error: b'C:/Program
> > >
> >
>
>
> >
> > > cannot find C:/Program: No such file or
directory C:/Program
> > >
> >
>
>
> >
> > > cannot find
> > >
> >
>
>
> >
ld returned
> 1 exit
> > status' |
> > >
> > >
> > > |[global] floatX = float32 device = cuda
[dnn]
Post by Qinpeng Wang enabled = True
> > > include_path=C:/CUDA/v7.5/include
> library_path=C:/CUDA/v7.5/lib/x64
> > > [blas] ldflags = C:/Program
> Files/Anaconda3/envs/t/Library/bin
> > mkl_rt |
> > >
> > > Can somebody help please?
> > >
> > >
> > > Thanks!
> > >
> > > --
> > >
> > > ---
> > > 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
> > >
> <javascript:> <javascript:>>.
> > > For more options,
visithttps://groups.google.com/d/optout
<http://groups.google.com/d/optout>
Post by Qinpeng Wang <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>>
Post by Qinpeng Wang > <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>
Post by Qinpeng Wang <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>>>
Post by Qinpeng Wang > > <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>
Post by Qinpeng Wang <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>>
Post by Qinpeng Wang > <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>
Post by Qinpeng Wang <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>>>>.
Post by Qinpeng Wang > >
> > --
> > Pascal Lamblin
> >
> > --
> >
> > ---
> > You received this message because you are
subscribed
Post by Qinpeng Wang to the Google
> > Groups "theano-users" group.
> > To unsubscribe from this group and stop receiving
emails from it,
> send
> > an email
> >
<javascript:><javascript:>>.
Post by Qinpeng Wang > > For more options,
visithttps://groups.google.com/d/optout
<http://groups.google.com/d/optout>
Post by Qinpeng Wang <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>>
Post by Qinpeng Wang > <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>
Post by Qinpeng Wang <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>>>.
Post by Qinpeng Wang >
> --
> Pascal Lamblin
>
> --
>
> ---
> You received this message because you are subscribed
to the
Post by Qinpeng Wang Google
> Groups "theano-users" group.
> To unsubscribe from this group and stop receiving emails
from it, send
<http://googlegroups.com/>
<javascript:>>.
Post by Qinpeng Wang > For more options,
visithttps://groups.google.com/d/optout
<http://groups.google.com/d/optout>
Post by Qinpeng Wang <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>>.
Post by Qinpeng Wang --
Pascal Lamblin
--
---
You received this message because you are subscribed to the
Google
Post by Qinpeng Wang Groups "theano-users" group.
To unsubscribe from this group and stop receiving emails
from it,
Post by Qinpeng Wang For more options, visithttps://groups.google.com/d/optout
<http://groups.google.com/d/optout>
Post by Qinpeng Wang <https://groups.google.com/d/optout
<https://groups.google.com/d/optout>>.
Post by Qinpeng Wang--
---
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
Post by Qinpeng WangFor more options, visit https://groups.google.com/d/optout
<https://groups.google.com/d/optout>.
--
Pascal Lamblin
--
---
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
For more options, visit https://groups.google.com/d/optout.