Dear all,
I am new to python and pycuda and I have tried to install pycuda to
test the effciency of different python solutions (anaconda, pypy,
cython,
pythran, ...).
I have followed the instructions to install pycuda, everything seems
to
work fine under Ubuntu 14.04 with CUDA 6.5 but when I try to use pycuda
I
get the following error.
Do you have any suggestion to help me use pycuda with no error ?
Best regards,
Jean-Michel
------------------------
$ python ex_pycuda.py
Traceback (most recent call last):
File "ex_pycuda.py", line 1, in <module>
import pycuda.autoinit
File "/home/richer/tmp/python/pycuda.py", line 1, in <module>
ImportError: No module named autoinit
------------------------
I am using :
Python 2.7.6
libboost 1.54
gcc/g++ 4.8.2
CUDA 6.5
./configure.py --python-exe=/usr/bin/python
--boost-inc-dir=/usr/include/boost
--boost-lib-dir=/usr/lib/x86_64-linux-gnu/
--cuda-root=/usr/local/cuda-6.5/
--cudadrv-lib-dir=/usr/local/cuda-6.5/lib64
--boost-python-libname=boost_python-py27
--boost-thread-libname=boost_thread
The result of "make install" gave me :
-------------------
make install
ctags -R src || true
/usr/bin/python setup.py install
running install
running bdist_egg
running egg_info
writing requirements to pycuda.egg-info/requires.txt
writing pycuda.egg-info/PKG-INFO
writing top-level names to pycuda.egg-info/top_level.txt
writing dependency_links to pycuda.egg-info/dependency_links.txt
reading manifest file 'pycuda.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
warning: no files found matching '*.cpp' under directory
'bpl-subset/bpl_subset/boost'
warning: no files found matching '*.html' under directory
'bpl-subset/bpl_subset/boost'
warning: no files found matching '*.inl' under directory
'bpl-subset/bpl_subset/boost'
warning: no files found matching '*.txt' under directory
'bpl-subset/bpl_subset/boost'
warning: no files found matching '*.h' under directory
'bpl-subset/bpl_subset/libs'
warning: no files found matching '*.ipp' under directory
'bpl-subset/bpl_subset/libs'
warning: no files found matching '*.pl' under directory
'bpl-subset/bpl_subset/libs'
writing manifest file 'pycuda.egg-info/SOURCES.txt'
installing library code to build/bdist.linux-x86_64/egg
running install_lib
running build_py
running build_ext
creating build/bdist.linux-x86_64
creating build/bdist.linux-x86_64/egg
creating build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/compiler.py ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/reduction.py ->
build/bdist.linux-x86_64/egg/pycuda
creating build/bdist.linux-x86_64/egg/pycuda/gl
copying build/lib.linux-x86_64-2.7/pycuda/gl/__init__.py ->
build/bdist.linux-x86_64/egg/pycuda/gl
copying build/lib.linux-x86_64-2.7/pycuda/gl/autoinit.py ->
build/bdist.linux-x86_64/egg/pycuda/gl
copying build/lib.linux-x86_64-2.7/pycuda/driver.py ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/_cluda.py ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/elementwise.py ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/scan.py ->
build/bdist.linux-x86_64/egg/pycuda
creating build/bdist.linux-x86_64/egg/pycuda/cuda
copying build/lib.linux-x86_64-2.7/pycuda/cuda/pycuda-helpers.hpp ->
build/bdist.linux-x86_64/egg/pycuda/cuda
copying build/lib.linux-x86_64-2.7/pycuda/cuda/pycuda-complex.hpp ->
build/bdist.linux-x86_64/egg/pycuda/cuda
copying build/lib.linux-x86_64-2.7/pycuda/cuda/pycuda-complex-impl.hpp
-> build/bdist.linux-x86_64/egg/pycuda/cuda
copying build/lib.linux-x86_64-2.7/pycuda/__init__.py ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/curandom.py ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/gpuarray.py ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/_mymako.py ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/_pvt_struct.so ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/_driver.so ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/debug.py ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/autoinit.py ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/characterize.py ->
build/bdist.linux-x86_64/egg/pycuda
creating build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/cg.py ->
build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/pkt_build.py ->
build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/packeted.py ->
build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/__init__.py ->
build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/operator.py ->
build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/inner.py ->
build/bdist.linux-x86_64/egg/pycuda/sparse
copying build/lib.linux-x86_64-2.7/pycuda/sparse/coordinate.py ->
build/bdist.linux-x86_64/egg/pycuda/sparse
creating build/bdist.linux-x86_64/egg/pycuda/compyte
copying build/lib.linux-x86_64-2.7/pycuda/compyte/array.py ->
build/bdist.linux-x86_64/egg/pycuda/compyte
copying build/lib.linux-x86_64-2.7/pycuda/compyte/__init__.py ->
build/bdist.linux-x86_64/egg/pycuda/compyte
copying build/lib.linux-x86_64-2.7/pycuda/compyte/dtypes.py ->
build/bdist.linux-x86_64/egg/pycuda/compyte
copying build/lib.linux-x86_64-2.7/pycuda/tools.py ->
build/bdist.linux-x86_64/egg/pycuda
copying build/lib.linux-x86_64-2.7/pycuda/cumath.py ->
build/bdist.linux-x86_64/egg/pycuda
byte-compiling build/bdist.linux-x86_64/egg/pycuda/compiler.py to
compiler.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/reduction.py to
reduction.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/gl/__init__.py to
__init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/gl/autoinit.py to
autoinit.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/driver.py to
driver.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/_cluda.py to
_cluda.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/elementwise.py to
elementwise.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/scan.py to scan.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/__init__.py to
__init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/curandom.py to
curandom.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/gpuarray.py to
gpuarray.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/_mymako.py to
_mymako.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/debug.py to
debug.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/autoinit.py to
autoinit.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/characterize.py to
characterize.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/cg.py to
cg.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/pkt_build.py
to pkt_build.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/packeted.py
to packeted.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/__init__.py
to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/operator.py
to operator.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/inner.py to
inner.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/sparse/coordinate.py
to coordinate.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/compyte/array.py to
array.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/compyte/__init__.py
to __init__.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/compyte/dtypes.py to
dtypes.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/tools.py to
tools.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/cumath.py to
cumath.pyc
creating stub loader for pycuda/_driver.so
creating stub loader for pycuda/_pvt_struct.so
byte-compiling build/bdist.linux-x86_64/egg/pycuda/_driver.py to
_driver.pyc
byte-compiling build/bdist.linux-x86_64/egg/pycuda/_pvt_struct.py to
_pvt_struct.pyc
creating build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/PKG-INFO ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/SOURCES.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/dependency_links.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/not-zip-safe ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/requires.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
copying pycuda.egg-info/top_level.txt ->
build/bdist.linux-x86_64/egg/EGG-INFO
writing build/bdist.linux-x86_64/egg/EGG-INFO/native_libs.txt
creating 'dist/pycuda-2014.1-py2.7-linux-x86_64.egg' and adding
'build/bdist.linux-x86_64/egg' to it
removing 'build/bdist.linux-x86_64/egg' (and everything under it)
Processing pycuda-2014.1-py2.7-linux-x86_64.egg
removing
'/usr/local/lib/python2.7/dist-packages/pycuda-2014.1-py2.7-linux-x86_64.egg'
(and everything under it)
creating
/usr/local/lib/python2.7/dist-packages/pycuda-2014.1-py2.7-linux-x86_64.egg
Extracting pycuda-2014.1-py2.7-linux-x86_64.egg to
/usr/local/lib/python2.7/dist-packages
pycuda 2014.1 is already the active version in easy-install.pth
Installed
/usr/local/lib/python2.7/dist-packages/pycuda-2014.1-py2.7-linux-x86_64.egg
Processing dependencies for pycuda==2014.1
Searching for appdirs==1.4.0
Best match: appdirs 1.4.0
Processing appdirs-1.4.0-py2.7.egg
appdirs 1.4.0 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/appdirs-1.4.0-py2.7.egg
Searching for decorator==3.4.0
Best match: decorator 3.4.0
decorator 3.4.0 is already the active version in easy-install.pth
Using /usr/lib/python2.7/dist-packages
Searching for pytest==2.6.4
Best match: pytest 2.6.4
Adding pytest 2.6.4 to easy-install.pth file
Installing py.test script to /usr/local/bin
Installing py.test-2.7 script to /usr/local/bin
Using /usr/local/lib/python2.7/dist-packages
Searching for pytools==2014.3.5
Best match: pytools 2014.3.5
Processing pytools-2014.3.5-py2.7.egg
pytools 2014.3.5 is already the active version in easy-install.pth
Using /usr/local/lib/python2.7/dist-packages/pytools-2014.3.5-py2.7.egg
Searching for py==1.4.26
Best match: py 1.4.26
Adding py 1.4.26 to easy-install.pth file
Using /usr/local/lib/python2.7/dist-packages
Searching for six==1.5.2
Best match: six 1.5.2
six 1.5.2 is already the active version in easy-install.pth
Using /usr/lib/python2.7/dist-packages
Finished processing dependencies for pycuda==2014.1
-------------------
_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda