Discussion:
installation pycuda2017.1.1 cuda9 debian9
(too old to reply)
christoph
2017-12-15 22:21:55 UTC
Permalink
Hello,
I am new to pycuda and would love to to install pycuda, but I fail to use
it because of the following message.


ExecError: error invoking 'nvcc --version': [Errno 13] Permission denied


and when I try to run the test script i get the following error although
pytest is installed.

Traceback (most recent call last):
File "test_driver.py", line 964, in <module>
from py.test.cmdline import main
ImportError: No module named 'py.test.cmdline'; 'py.test' is not a package

I appreciate any help on this,
kris
Andreas Kloeckner
2017-12-15 23:09:53 UTC
Permalink
Hi Christoph,
Post by christoph
I am new to pycuda and would love to to install pycuda, but I fail to use
it because of the following message.
ExecError: error invoking 'nvcc --version': [Errno 13] Permission denied
This points to an issue with your CUDA installation. See if you can
compile and run a CUDA C example like the following:

https://www.quantstart.com/articles/Vector-Addition-Hello-World-Example-with-CUDA-on-Mac-OSX

using CUDA C. If you can, then PyCUDA should work for you. If you can't,
then something is wrong with your installation that is independent of PyCUDA.
Post by christoph
and when I try to run the test script i get the following error although
pytest is installed.
File "test_driver.py", line 964, in <module>
from py.test.cmdline import main
ImportError: No module named 'py.test.cmdline'; 'py.test' is not a package
This is known and will need to get fixed eventually. In the meantime,
use

python -m pytest test_driver.py

instead.

Andreas
christoph
2017-12-16 13:03:49 UTC
Permalink
Hello, thank you very much for your hint. It seems not to be related
with my cuda 9 installation as the cuda samples compile well.

but anyway i have the impression that the hos compiler gcc6 makes a lot
of trouble so I purged my cuda installation installed the debian
cuda-toolkit packages(cuda 8)

and compiled a version of gcc4.9 as cuda 8 is incompatible to gcc6. now
it seems to work!

will test it further.

cheers kris
Post by Andreas Kloeckner
Hi Christoph,
Post by christoph
I am new to pycuda and would love to to install pycuda, but I fail to use
it because of the following message.
ExecError: error invoking 'nvcc --version': [Errno 13] Permission denied
This points to an issue with your CUDA installation. See if you can
https://www.quantstart.com/articles/Vector-Addition-Hello-World-Example-with-CUDA-on-Mac-OSX
using CUDA C. If you can, then PyCUDA should work for you. If you can't,
then something is wrong with your installation that is independent of PyCUDA.
Post by christoph
and when I try to run the test script i get the following error although
pytest is installed.
File "test_driver.py", line 964, in <module>
from py.test.cmdline import main
ImportError: No module named 'py.test.cmdline'; 'py.test' is not a package
This is known and will need to get fixed eventually. In the meantime,
use
python -m pytest test_driver.py
instead.
Andreas
Loading...