This is an error related to conversion of floating point number
approximation. Use latest version of theano and keras [if using] there is a
fix provided
On Tuesday, February 28, 2017 at 11:55:06 AM UTC+5:30, 李奕 wrote:
>
> Hello,
>
> when I run import theano, the error is:
> ['nvcc', '-shared', '-O3', '-use_fast_math', '--compiler-bindir',
> '/usr/local/cuda/bin/nvcc', '-m64', '-Xcompiler',
> '-DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,-fPIC,-fvisibility=hidden',
>
> '-Xlinker',
> '-rpath,/home/mlx/.theano/compiledir_Linux-4.2--generic-x86_64-with-debian-jessie-sid-x86_64-2.7.13-64/cuda_ndarray',
>
> '-I/home/mlx/anaconda3/envs/py2/lib/python2.7/site-packages/theano/sandbox/cuda',
>
> '-I/home/mlx/anaconda3/envs/py2/lib/python2.7/site-packages/numpy/core/include',
>
> '-I/home/mlx/anaconda3/envs/py2/include/python2.7',
> '-I/home/mlx/anaconda3/envs/py2/lib/python2.7/site-packages/theano/gof',
> '-L/home/mlx/anaconda3/envs/py2/lib', '-o',
> '/home/mlx/.theano/compiledir_Linux-4.2--generic-x86_64-with-debian-jessie-sid-x86_64-2.7.13-64/cuda_ndarray/cuda_ndarray.so',
>
> 'mod.cu', '-lcublas', '-lpython2.7', '-lcudart']
> ERROR (theano.sandbox.cuda): Failed to compile cuda_ndarray.cu: ('nvcc
> return status', 1, 'for cmd', 'nvcc -shared -O3 -use_fast_math
> --compiler-bindir /usr/local/cuda/bin/nvcc -m64 -Xcompiler
> -DCUDA_NDARRAY_CUH=c72d035fdf91890f3b36710688069b2e,-DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION,-fPIC,-fvisibility=hidden
>
> -Xlinker
> -rpath,/home/mlx/.theano/compiledir_Linux-4.2--generic-x86_64-with-debian-jessie-sid-x86_64-2.7.13-64/cuda_ndarray
>
> -I/home/mlx/anaconda3/envs/py2/lib/python2.7/site-packages/theano/sandbox/cuda
>
> -I/home/mlx/anaconda3/envs/py2/lib/python2.7/site-packages/numpy/core/include
> -I/home/mlx/anaconda3/envs/py2/include/python2.7
> -I/home/mlx/anaconda3/envs/py2/lib/python2.7/site-packages/theano/gof
> -L/home/mlx/anaconda3/envs/py2/lib -o
> /home/mlx/.theano/compiledir_Linux-4.2--generic-x86_64-with-debian-jessie-sid-x86_64-2.7.13-64/cuda_ndarray/cuda_ndarray.so
>
> mod.cu -lcublas -lpython2.7 -lcudart')
> WARNING (theano.sandbox.cuda): The cuda backend is deprecated and will be
> removed in the next release (v0.10). Please switch to the gpuarray
> backend. You can get more information about how to switch at this URL:
>
> https://github.com/Theano/Theano/wiki/Converting-to-the-new-gpu-back-end%28gpuarray%29
>
> WARNING (theano.sandbox.cuda): CUDA is installed, but device gpu is not
> available (error: cuda unavailable)
>
>
> So what's the going on here? Thanks very 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 [email protected].
For more options, visit https://groups.google.com/d/optout.