Andreas, Thanks for help.
Now I get: kk@oktan:~/pycuda-old/test$ python test_driver.py Traceback (most recent call last): File "test_driver.py", line 4, in <module> from pycuda.tools import mark_cuda_test File "/usr/lib/python2.6/dist-packages/pycuda/tools.py", line 30, in <module> import pycuda.driver as cuda File "/usr/lib/python2.6/dist-packages/pycuda/driver.py", line 2, in <module> from pycuda._driver import * ImportError: No module named _driver I copied manually pyCuda to python folder in my system but it looks like it does not help. I think python cannot find pycuda files. How can I fix it? People like me, knowing CUDA but having limited experience with CUDA would certainly love a guide like "pyCuda for python newbies" :) Where actually pyCuda should be placed in the system? Thanks again, KK On Fri, 2012-03-02 at 07:26 -0600, Andreas Kloeckner wrote: > On Fri, 02 Mar 2012 14:13:05 +0100, Kaczmarski Krzysztof > <k.kaczmarski...@gmail.com> wrote: > > On Thu, 2012-03-01 at 16:58 +0100, marmaduke wrote: > > > > > > On Thu, Mar 1, 2012, at 09:51, Andreas Kloeckner wrote: > > > > Hi Krzysztof, > > > > > > > > On Mon, 27 Feb 2012 23:29:30 +0100, Kaczmarski Krzysztof > > > > <k.kaczmarski...@gmail.com> wrote: > > > > > > > > > > I did everything according to the instructions, however the 'make > > > > > step' > > > > > keeps complaining about CUDA_ROOT and nvcc... > > > > > > > > > > > > > Thanks for the report--I've fixed the traceback in git. But your real > > > > error is still hidden in your output: > > > > > > > > *** CUDA_ROOT not set, and nvcc not in path. Giving up. > > > > > > > > > > This can happen also if root doesn't have nvcc in root's PATH. Try sudo > > > su'ing, exporting PATH with nvcc and building while root. > > > > > > > Ok. Indeed root could not run nvcc although root's PATH > > includes /usr/local/cuda/bin. > > Anyway, I tried to install pycuda for a normal user: > > > > kk@oktan:~/pycuda$ make -j 4 > > ctags -R src || true > > /usr/bin/python setup.py build > > running build > > running build_py > > running build_ext > > > > It seams to be ok. But then: > > > > kk@oktan:~/pycuda$ cd test/ > > kk@oktan:~/pycuda/test$ ls > > test_cumath.py test_driver.py test_gpuarray.py > > kk@oktan:~/pycuda/test$ ./test_driver.py > > from: can't read /var/mail/__future__ > > > > And hangs. > > What is the problem? > > That's your shell executing the Python script, and misunderstanding > it. (hence the /var/mail stuff, I think.) > > Use "python test_driver.py". > > Andreas _______________________________________________ PyCUDA mailing list PyCUDA@tiker.net http://lists.tiker.net/listinfo/pycuda