Discussion:
[theano-users] Pygpu Invalid Values / Options Error
John Coolidge
2018-11-03 04:03:14 UTC
Permalink
I've had trouble getting Theano to work on my GPU and tracked down the
error to pygpu. When I run PyGPU's python tests it fails with 4506
errors. All of the error messages have a common theme of some sort of
invalid or unrecognized option being set. For example I see a lot of
"GpuArrayException: nvrtcCompileProgram: NVRTC_ERROR_INVALID_OPTION" from
gpuarray.pyx, line 406 and "GpuArrayException: CUDA kernel compile failure
... NVRTC compile log::nvrtc: error: invalid value for --gpu-architecture
(-arch)" from gpuarray.pyx, line 446

I'm running Ubuntu 18.04 with an NVIDIA Geforce 2080 card, driver version
410.73. I installed pygpu with anaconda and listing the anaconda packages
for my current environment gives:
# Name Version Build Channel
blas 1.0 mkl
bzip2 1.0.6 h14c3975_5
ca-certificates 2018.03.07 0
certifi 2018.10.15 py27_0
cmake 3.12.2 h52cb24c_0
cudatoolkit 9.2 0
expat 2.2.6 he6710b0_0
intel-openmp 2019.0 118
libcurl 7.61.1 h20c2e04_0
libedit 3.1.20170329 h6b74fdf_2
libffi 3.2.1 hd88cf55_4
libgcc-ng 8.2.0 hdf63c60_1
libgfortran-ng 7.3.0 hdf63c60_0
libgpuarray 0.7.6 h14c3975_0
libstdcxx-ng 8.2.0 hdf63c60_1
mako 1.0.7 py27_0
markupsafe 1.0 py27h14c3975_1
mkl 2019.0 118
mkl_fft 1.0.6 py27h7dd41cf_0
mkl_random 1.0.1 py27h4414c95_1
ncurses 6.1 hf484d3e_0
nose 1.3.7 py27_2
numpy 1.15.3 py27h1d66e8a_0
numpy-base 1.15.3 py27h81de0dd_0
openssl 1.1.1 h7b6447c_0
pip 18.1 py27_0
pygpu 0.7.6 py27h035aef0_0
python 2.7.15 h9bab390_2
readline 7.0 h7b6447c_5
rhash 1.3.6 h1ba5d50_0
setuptools 40.5.0 py27_0
six 1.11.0 py27_1
sqlite 3.25.2 h7b6447c_0
tk 8.6.8 hbc83047_0
wheel 0.32.2 py27_0
xz 5.2.4 h14c3975_4
zlib 1.2.11 ha838bed_2

Anyone have any ideas what the problem could be?
--
---
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Arnaud Bergeron
2018-11-05 04:42:01 UTC
Permalink
This seems like you don’t have a version of CUDA that supports your GPU. The 2080 requires CUDA 10. What version is installed?
I've had trouble getting Theano to work on my GPU and tracked down the error to pygpu. When I run PyGPU's python tests it fails with 4506 errors. All of the error messages have a common theme of some sort of invalid or unrecognized option being set. For example I see a lot of "GpuArrayException: nvrtcCompileProgram: NVRTC_ERROR_INVALID_OPTION" from gpuarray.pyx, line 406 and "GpuArrayException: CUDA kernel compile failure ... NVRTC compile log::nvrtc: error: invalid value for --gpu-architecture (-arch)" from gpuarray.pyx, line 446
# Name Version Build Channel
blas 1.0 mkl
bzip2 1.0.6 h14c3975_5
ca-certificates 2018.03.07 0
certifi 2018.10.15 py27_0
cmake 3.12.2 h52cb24c_0
cudatoolkit 9.2 0
expat 2.2.6 he6710b0_0
intel-openmp 2019.0 118
libcurl 7.61.1 h20c2e04_0
libedit 3.1.20170329 h6b74fdf_2
libffi 3.2.1 hd88cf55_4
libgcc-ng 8.2.0 hdf63c60_1
libgfortran-ng 7.3.0 hdf63c60_0
libgpuarray 0.7.6 h14c3975_0
libstdcxx-ng 8.2.0 hdf63c60_1
mako 1.0.7 py27_0
markupsafe 1.0 py27h14c3975_1
mkl 2019.0 118
mkl_fft 1.0.6 py27h7dd41cf_0
mkl_random 1.0.1 py27h4414c95_1
ncurses 6.1 hf484d3e_0
nose 1.3.7 py27_2
numpy 1.15.3 py27h1d66e8a_0
numpy-base 1.15.3 py27h81de0dd_0
openssl 1.1.1 h7b6447c_0
pip 18.1 py27_0
pygpu 0.7.6 py27h035aef0_0
python 2.7.15 h9bab390_2
readline 7.0 h7b6447c_5
rhash 1.3.6 h1ba5d50_0
setuptools 40.5.0 py27_0
six 1.11.0 py27_1
sqlite 3.25.2 h7b6447c_0
tk 8.6.8 hbc83047_0
wheel 0.32.2 py27_0
xz 5.2.4 h14c3975_4
zlib 1.2.11 ha838bed_2
Anyone have any ideas what the problem could be?
--
---
You received this message because you are subscribed to the Google Groups "theano-users" group.
For more options, visit https://groups.google.com/d/optout <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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
John Coolidge
2018-11-05 07:46:36 UTC
Permalink
Thanks Arnaud -- that would actually make a lot of sense! I've tried CUDA
9.2 as 10.0 is not available through Anaconda, but I'll try a manual
install of CUDA 10.
Post by Arnaud Bergeron
This seems like you don’t have a version of CUDA that supports your GPU.
The 2080 requires CUDA 10. What version is installed?
I've had trouble getting Theano to work on my GPU and tracked down the
error to pygpu. When I run PyGPU's python tests it fails with 4506
errors. All of the error messages have a common theme of some sort of
invalid or unrecognized option being set. For example I see a lot of
"GpuArrayException: nvrtcCompileProgram: NVRTC_ERROR_INVALID_OPTION" from
gpuarray.pyx, line 406 and "GpuArrayException: CUDA kernel compile failure
... NVRTC compile log::nvrtc: error: invalid value for --gpu-architecture
(-arch)" from gpuarray.pyx, line 446
I'm running Ubuntu 18.04 with an NVIDIA Geforce 2080 card, driver version
410.73. I installed pygpu with anaconda and listing the anaconda packages
# Name Version Build Channel
blas 1.0 mkl
bzip2 1.0.6 h14c3975_5
ca-certificates 2018.03.07 0
certifi 2018.10.15 py27_0
cmake 3.12.2 h52cb24c_0
cudatoolkit 9.2 0
expat 2.2.6 he6710b0_0
intel-openmp 2019.0 118
libcurl 7.61.1 h20c2e04_0
libedit 3.1.20170329 h6b74fdf_2
libffi 3.2.1 hd88cf55_4
libgcc-ng 8.2.0 hdf63c60_1
libgfortran-ng 7.3.0 hdf63c60_0
libgpuarray 0.7.6 h14c3975_0
libstdcxx-ng 8.2.0 hdf63c60_1
mako 1.0.7 py27_0
markupsafe 1.0 py27h14c3975_1
mkl 2019.0 118
mkl_fft 1.0.6 py27h7dd41cf_0
mkl_random 1.0.1 py27h4414c95_1
ncurses 6.1 hf484d3e_0
nose 1.3.7 py27_2
numpy 1.15.3 py27h1d66e8a_0
numpy-base 1.15.3 py27h81de0dd_0
openssl 1.1.1 h7b6447c_0
pip 18.1 py27_0
pygpu 0.7.6 py27h035aef0_0
python 2.7.15 h9bab390_2
readline 7.0 h7b6447c_5
rhash 1.3.6 h1ba5d50_0
setuptools 40.5.0 py27_0
six 1.11.0 py27_1
sqlite 3.25.2 h7b6447c_0
tk 8.6.8 hbc83047_0
wheel 0.32.2 py27_0
xz 5.2.4 h14c3975_4
zlib 1.2.11 ha838bed_2
Anyone have any ideas what the problem could be?
--
---
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
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 theano-users+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...