The following forum message was posted by sdox1234 at 
http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4075870:

Hi all,
I'm trying hard to become a pydev-eclipse convert.  I can get all my basic 
python
programs to run fine, but I'm trying to get some CUDA gpu programming working
using pyCuda and am having path errors linking to nvcc that I'm not sure how
to fix.   I'm running in Ubuntu 10.10 on a 64-bit machine.  When trying to run
the pycuda example from: http://documen.tician.de/pycuda/   I get the following
error:
...
  File "/usr/local/lib/python2.6/dist-packages/pycuda-0.94.2-py2.6-linux-x86_64.
egg/pycuda/compiler.py", line 47, in compile_plain
    checksum.update(get_nvcc_version(nvcc))
  File "<string>", line 2, in get_nvcc_version
  File "/usr/lib/pymodules/python2.6/pytools/__init__.py", line 140, in memoize
    result = func(*args)
  File "/usr/local/lib/python2.6/dist-packages/pycuda-0.94.2-py2.6-linux-x86_64.
egg/pycuda/compiler.py", line 21, in get_nvcc_version
    % (nvcc, str(e)))
OSError: nvcc was not found (is it on the PATH?) [error invoking 'nvcc 
--version':
[Errno 2] No such file or directory]

typing nvcc --version at a terminal gives:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2010 NVIDIA Corporation
Built on Wed_Nov__3_16:16:57_PDT_2010
Cuda compilation tools, release 3.2, V0.2.1221

which nvcc  ... produces
/usr/local/cuda/bin/nvcc

I have included the paths: /usr/local/cuda/bin   and /usr/local/cuda/lib64 
to the Window->Preferences->Pydev->Interpreter-Python->PYTHONPATH but still
get the error.   Executing the same example at the terminal works fine, so I'm
missing something in how pyDev is looking for nvcc?

any help here would be appreciated.




 

------------------------------------------------------------------------------
Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)!
Finally, a world-class log management solution at an even better price-free!
Download using promo code Free_Logger_4_Dev2Dev. Offer expires 
February 28th, so secure your free ArcSight Logger TODAY! 
http://p.sf.net/sfu/arcsight-sfd2d
_______________________________________________
Pydev-users mailing list
Pydev-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pydev-users

Reply via email to