> Thanks J-Pascal. > > I tried your method and it finally ran test_driver.py but with problems. > Take a look: > > Thank you sooo much for all the help you've done so far. I really > appreciate it. I wish I was familiar with this kind of programming > environment like you. > > Jan > > da-vi...@da-vinci-desktop:~/pycuda-0.91.1/test$ python test_driver.py > E.EE.EEEEE > ====================================================================== > ERROR: test_2d_texture (__main__.TestCuda) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_driver.py", line 112, in test_2d_texture > """) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 515, in __init__ > cubin = _do_compile(source, options, keep, nvcc, cache_dir) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 427, in _do_compile > checksum.update(_get_nvcc_version(nvcc)) > File "<string>", line 1, in <lambda> > File > "/usr/lib/python2.5/site-packages/pytools-7-py2.5.egg/pytools/__init__.py", > line 123, in memoize > result = func(*args) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 412, in _get_nvcc_version > return Popen([nvcc, "--version"], stdout=PIPE).communicate()[0] > File "/usr/lib/python2.5/subprocess.py", line 594, in __init__ > errread, errwrite) > File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory > > ====================================================================== > ERROR: test_gpuarray (__main__.TestCuda) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_driver.py", line 84, in test_gpuarray > diff = (a_g-3*b_g+(-a_g)).get() - (a-3*b+(-a)) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/gpuarray.py", > line 259, in __rmul__ > return self._axpbz(scalar, 0, result) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/gpuarray.py", > line 131, in _axpbz > func = _kernel.get_axpbz_kernel() > File "<string>", line 1, in <lambda> > File > "/usr/lib/python2.5/site-packages/pytools-7-py2.5.egg/pytools/__init__.py", > line 123, in memoize > result = func(*args) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/_kernel.py", > line 77, in get_axpbz_kernel > "axpb") > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/_kernel.py", > line 55, in get_scalar_kernel > options=NVCC_OPTIONS, keep=keep) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 515, in __init__ > cubin = _do_compile(source, options, keep, nvcc, cache_dir) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 427, in _do_compile > checksum.update(_get_nvcc_version(nvcc)) > File "<string>", line 1, in <lambda> > File > "/usr/lib/python2.5/site-packages/pytools-7-py2.5.egg/pytools/__init__.py", > line 123, in memoize > result = func(*args) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 412, in _get_nvcc_version > return Popen([nvcc, "--version"], stdout=PIPE).communicate()[0] > File "/usr/lib/python2.5/subprocess.py", line 594, in __init__ > errread, errwrite) > File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory > > ====================================================================== > ERROR: test_large_smem (__main__.TestCuda) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_driver.py", line 210, in test_large_smem > """ % n) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 515, in __init__ > cubin = _do_compile(source, options, keep, nvcc, cache_dir) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 427, in _do_compile > checksum.update(_get_nvcc_version(nvcc)) > File "<string>", line 1, in <lambda> > File > "/usr/lib/python2.5/site-packages/pytools-7-py2.5.egg/pytools/__init__.py", > line 123, in memoize > result = func(*args) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 412, in _get_nvcc_version > return Popen([nvcc, "--version"], stdout=PIPE).communicate()[0] > File "/usr/lib/python2.5/subprocess.py", line 594, in __init__ > errread, errwrite) > File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory > > ====================================================================== > ERROR: test_mempool (__main__.TestCuda) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_driver.py", line 239, in test_mempool > queue.append(pool.allocate(1<<e)) > MemoryError > > ====================================================================== > ERROR: test_multichannel_2d_texture (__main__.TestCuda) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_driver.py", line 178, in test_multichannel_2d_texture > """) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 515, in __init__ > cubin = _do_compile(source, options, keep, nvcc, cache_dir) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 427, in _do_compile > checksum.update(_get_nvcc_version(nvcc)) > File "<string>", line 1, in <lambda> > File > "/usr/lib/python2.5/site-packages/pytools-7-py2.5.egg/pytools/__init__.py", > line 123, in memoize > result = func(*args) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 412, in _get_nvcc_version > return Popen([nvcc, "--version"], stdout=PIPE).communicate()[0] > File "/usr/lib/python2.5/subprocess.py", line 594, in __init__ > errread, errwrite) > File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory > > ====================================================================== > ERROR: test_multiple_2d_textures (__main__.TestCuda) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_driver.py", line 143, in test_multiple_2d_textures > """) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 515, in __init__ > cubin = _do_compile(source, options, keep, nvcc, cache_dir) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 427, in _do_compile > checksum.update(_get_nvcc_version(nvcc)) > File "<string>", line 1, in <lambda> > File > "/usr/lib/python2.5/site-packages/pytools-7-py2.5.egg/pytools/__init__.py", > line 123, in memoize > result = func(*args) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 412, in _get_nvcc_version > return Popen([nvcc, "--version"], stdout=PIPE).communicate()[0] > File "/usr/lib/python2.5/subprocess.py", line 594, in __init__ > errread, errwrite) > File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory > > ====================================================================== > ERROR: test_simple_kernel (__main__.TestCuda) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_driver.py", line 31, in test_simple_kernel > """) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 515, in __init__ > cubin = _do_compile(source, options, keep, nvcc, cache_dir) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 427, in _do_compile > checksum.update(_get_nvcc_version(nvcc)) > File "<string>", line 1, in <lambda> > File > "/usr/lib/python2.5/site-packages/pytools-7-py2.5.egg/pytools/__init__.py", > line 123, in memoize > result = func(*args) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 412, in _get_nvcc_version > return Popen([nvcc, "--version"], stdout=PIPE).communicate()[0] > File "/usr/lib/python2.5/subprocess.py", line 594, in __init__ > errread, errwrite) > File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory > > ====================================================================== > ERROR: test_streamed_kernel (__main__.TestCuda) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "test_driver.py", line 56, in test_streamed_kernel > """) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 515, in __init__ > cubin = _do_compile(source, options, keep, nvcc, cache_dir) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 427, in _do_compile > checksum.update(_get_nvcc_version(nvcc)) > File "<string>", line 1, in <lambda> > File > "/usr/lib/python2.5/site-packages/pytools-7-py2.5.egg/pytools/__init__.py", > line 123, in memoize > result = func(*args) > File > "/usr/lib/python2.5/site-packages/pycuda-0.91.1-py2.5-linux-i686.egg/pycuda/driver.py", > line 412, in _get_nvcc_version > return Popen([nvcc, "--version"], stdout=PIPE).communicate()[0] > File "/usr/lib/python2.5/subprocess.py", line 594, in __init__ > errread, errwrite) > File "/usr/lib/python2.5/subprocess.py", line 1147, in _execute_child > raise child_exception > OSError: [Errno 2] No such file or directory > > ---------------------------------------------------------------------- > Ran 10 tests in 0.130s >
> On Sun, Feb 8, 2009 at 1:27 PM, J-Pascal Mercier < > [email protected]> wrote: > >> On Sun, 8 Feb 2009 13:11:16 -0500 >> jan acosta <[email protected]> wrote: >> >> > Ubuntu. >> >> first, you dont need to install boost yourself since there is a >> boost-python package in Ubuntu. just install the development >> package(it ends with -dev). >> >> $ sudo aptitude install libboost-python-dev >> >> go to your pycuda source directory. remove "build" directory and >> change your config to : >> >> BOOST_INC_DIR = [] >> BOOST_LIB_DIR = [] >> BOOST_PYTHON_LIBNAME = ['libboost_python-mt'] >> CUDA_ROOT = '/usr/local/cuda' >> CUDADRV_LIB_DIR = [] >> CUDADRV_LIBNAME = ['cuda'] >> CXXFLAGS = [] >> LDFLAGS = [] >> >> then rebuild and reinstall. >> >> ciao >> >> J-Pascal >> >> >> >
_______________________________________________ PyCuda mailing list [email protected] http://tiker.net/mailman/listinfo/pycuda_tiker.net
