Hi all!
I'm currently try to introduce pyopencl and pycuda in sage.
I'm currently testing on sage-4.5.3
And it wokrs quite well. But I have some trouble with pycuda.
I get this error when I test the hello-gpu:
---------------------------------------------------------------------------
OSError Traceback (most recent call last)
/home/maldun/Dokumente/<ipython console> in <module>()
/home/maldun/sage/sage-4.5.3/local/lib/python2.6/site-packages/sage/misc/preparser.pyc
in load(filename, globals, attach)
1501 execfile(filename, globals)
1502 elif filename.endswith('.sage'):
-> 1503 exec(preparse_file(open(filename).read()), globals)
1504 elif filename.endswith('.spyx') or filename.endswith('.pyx'):
1505 import interpreter
/home/maldun/Dokumente/<string> in <module>()
/home/maldun/sage/sage-4.5.3/local/lib/python2.6/site-packages/pycuda-0.94.1-py2.6-linux-x86_64.egg/pycuda/compiler.pyc
in __init__(self, source, nvcc, options, keep, no_extern_c, arch, code,
cache_dir, include_dirs)
236
237 cubin = compile(source, nvcc, options, keep, no_extern_c,
--> 238 arch, code, cache_dir, include_dirs)
239
240 from pycuda.driver import module_from_buffer
/home/maldun/sage/sage-4.5.3/local/lib/python2.6/site-packages/pycuda-0.94.1-py2.6-linux-x86_64.egg/pycuda/compiler.pyc
in compile(source, nvcc, options, keep, no_extern_c, arch, code, cache_dir,
include_dirs)
226 options.append("-I"+i)
227
--> 228 return compile_plain(source, options, keep, nvcc, cache_dir)
229
230
/home/maldun/sage/sage-4.5.3/local/lib/python2.6/site-packages/pycuda-0.94.1-py2.6-linux-x86_64.egg/pycuda/compiler.pyc
in compile_plain(source, options, keep, nvcc, cache_dir)
45 for option in options:
46 checksum.update(option)
---> 47 checksum.update(get_nvcc_version(nvcc))
48
49 cache_file = checksum.hexdigest()
/home/maldun/Dokumente/<string> in <lambda>(nvcc)
/home/maldun/sage/sage-4.5.3/local/lib/python2.6/site-packages/pytools-10-py2.6.egg/pytools/__init__.pyc
in memoize(func, *args)
138 # _memoize_dic doesn't exist yet.
139
--> 140 result = func(*args)
141 func._memoize_dic = {args: result}
142 return result
/home/maldun/sage/sage-4.5.3/local/lib/python2.6/site-packages/pycuda-0.94.1-py2.6-linux-x86_64.egg/pycuda/compiler.pyc
in get_nvcc_version(nvcc)
19 except OSError, e:
20 raise OSError("%s was not found (is it on the PATH?) [%s]"
---> 21 % (nvcc, str(e)))
22
23
OSError: nvcc was not found (is it on the PATH?) [error invoking 'nvcc
--version': [Errno 2] No such file or directory]
sage:
It seems that somehow I have troubles with nvcc...
greez,
maldun
--
GMX DSL SOMMER-SPECIAL: Surf & Phone Flat 16.000 für nur 19,99 Euro/mtl.!*
http://portal.gmx.net/de/go/dsl
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda