LINUX.ORG.RU

История изменений

Исправление BattleCoder, (текущая версия) :

Последний релиз - это какой? Я вот сейчас поставил pyopencl-2012.1 из джентовского ебилда.

Список файлов:

bash ~ $ qlist pyopencl
/usr/include/pyopencl/pyopencl-airy.cl
/usr/include/pyopencl/pyopencl-ranluxcl.cl
/usr/include/pyopencl/pyopencl-bessel-j.cl
/usr/include/pyopencl/pyopencl-cephes.cl
/usr/include/pyopencl/pyopencl-complex.h
/usr/lib/python2.7/site-packages/pyopencl-2012.1-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/pyopencl-2012.1-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/pyopencl-2012.1-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/pyopencl-2012.1-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/pyopencl-2012.1-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/pyopencl/scan.py
/usr/lib/python2.7/site-packages/pyopencl/_pvt_struct.so
/usr/lib/python2.7/site-packages/pyopencl/array.py
/usr/lib/python2.7/site-packages/pyopencl/compyte/scan.py
/usr/lib/python2.7/site-packages/pyopencl/compyte/array.py
/usr/lib/python2.7/site-packages/pyopencl/compyte/dtypes.py
/usr/lib/python2.7/site-packages/pyopencl/compyte/__init__.py
/usr/lib/python2.7/site-packages/pyopencl/cache.py
/usr/lib/python2.7/site-packages/pyopencl/clrandom.py
/usr/lib/python2.7/site-packages/pyopencl/clmath.py
/usr/lib/python2.7/site-packages/pyopencl/tools.py
/usr/lib/python2.7/site-packages/pyopencl/_cluda.py
/usr/lib/python2.7/site-packages/pyopencl/version.py
/usr/lib/python2.7/site-packages/pyopencl/_cl.so
/usr/lib/python2.7/site-packages/pyopencl/__init__.py
/usr/lib/python2.7/site-packages/pyopencl/characterize/performance.py
/usr/lib/python2.7/site-packages/pyopencl/characterize/__init__.py
/usr/lib/python2.7/site-packages/pyopencl/elementwise.py
/usr/lib/python2.7/site-packages/pyopencl/_mymako.py
/usr/lib/python2.7/site-packages/pyopencl/reduction.py
/usr/share/doc/pyopencl-2012.1/README_SETUP.txt.xz
/usr/share/doc/pyopencl-2012.1/README.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_meta_template.py.xz
/usr/share/doc/pyopencl-2012.1/examples/subset_dot_cl.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_elementwise.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_meta_codepy.py.xz
/usr/share/doc/pyopencl-2012.1/examples/benchmark-all.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_array.py.xz
/usr/share/doc/pyopencl-2012.1/examples/dump-properties.py.xz
/usr/share/doc/pyopencl-2012.1/examples/narray.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo-offset.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo.py.xz
/usr/share/doc/pyopencl-2012.1/examples/matrix-multiply.py.xz
/usr/share/doc/pyopencl-2012.1/examples/gl_interop_demo.py.xz
/usr/share/doc/pyopencl-2012.1/examples/transpose.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_mandelbrot.py.xz
/usr/share/doc/pyopencl-2012.1/examples/dump-performance.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_elementwise_complex.py.xz
/usr/share/doc/pyopencl-2012.1/examples/pasi-lab.py.xz

Собственно, для наглядности:

bash ~ $ python3
Python 3.2.3 (default, May 18 2012, 22:51:33) 
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyopencl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pyopencl
>>> 
bash ~ $ python2
Python 2.7.3 (default, Jun 19 2012, 21:44:53) 
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyopencl
>>> print pyopencl
<module 'pyopencl' from '/usr/lib/python2.7/site-packages/pyopencl/__init__.pyc'>

К слову, numpy работает и в python-3.2 :)

Исходная версия BattleCoder, :

Последний релиз - это какой? Я вот сейчас поставил pyopencl-2012.1 из джентовского ебилда.

Список файлов:

bash ~ $ qlist pyopencl
/usr/include/pyopencl/pyopencl-airy.cl
/usr/include/pyopencl/pyopencl-ranluxcl.cl
/usr/include/pyopencl/pyopencl-bessel-j.cl
/usr/include/pyopencl/pyopencl-cephes.cl
/usr/include/pyopencl/pyopencl-complex.h
/usr/lib/python2.7/site-packages/pyopencl-2012.1-py2.7.egg-info/SOURCES.txt
/usr/lib/python2.7/site-packages/pyopencl-2012.1-py2.7.egg-info/PKG-INFO
/usr/lib/python2.7/site-packages/pyopencl-2012.1-py2.7.egg-info/requires.txt
/usr/lib/python2.7/site-packages/pyopencl-2012.1-py2.7.egg-info/top_level.txt
/usr/lib/python2.7/site-packages/pyopencl-2012.1-py2.7.egg-info/dependency_links.txt
/usr/lib/python2.7/site-packages/pyopencl/scan.py
/usr/lib/python2.7/site-packages/pyopencl/_pvt_struct.so
/usr/lib/python2.7/site-packages/pyopencl/array.py
/usr/lib/python2.7/site-packages/pyopencl/compyte/scan.py
/usr/lib/python2.7/site-packages/pyopencl/compyte/array.py
/usr/lib/python2.7/site-packages/pyopencl/compyte/dtypes.py
/usr/lib/python2.7/site-packages/pyopencl/compyte/__init__.py
/usr/lib/python2.7/site-packages/pyopencl/cache.py
/usr/lib/python2.7/site-packages/pyopencl/clrandom.py
/usr/lib/python2.7/site-packages/pyopencl/clmath.py
/usr/lib/python2.7/site-packages/pyopencl/tools.py
/usr/lib/python2.7/site-packages/pyopencl/_cluda.py
/usr/lib/python2.7/site-packages/pyopencl/version.py
/usr/lib/python2.7/site-packages/pyopencl/_cl.so
/usr/lib/python2.7/site-packages/pyopencl/__init__.py
/usr/lib/python2.7/site-packages/pyopencl/characterize/performance.py
/usr/lib/python2.7/site-packages/pyopencl/characterize/__init__.py
/usr/lib/python2.7/site-packages/pyopencl/elementwise.py
/usr/lib/python2.7/site-packages/pyopencl/_mymako.py
/usr/lib/python2.7/site-packages/pyopencl/reduction.py
/usr/share/doc/pyopencl-2012.1/README_SETUP.txt.xz
/usr/share/doc/pyopencl-2012.1/README.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_meta_template.py.xz
/usr/share/doc/pyopencl-2012.1/examples/subset_dot_cl.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_elementwise.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_meta_codepy.py.xz
/usr/share/doc/pyopencl-2012.1/examples/benchmark-all.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_array.py.xz
/usr/share/doc/pyopencl-2012.1/examples/dump-properties.py.xz
/usr/share/doc/pyopencl-2012.1/examples/narray.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo-offset.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo.py.xz
/usr/share/doc/pyopencl-2012.1/examples/matrix-multiply.py.xz
/usr/share/doc/pyopencl-2012.1/examples/gl_interop_demo.py.xz
/usr/share/doc/pyopencl-2012.1/examples/transpose.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_mandelbrot.py.xz
/usr/share/doc/pyopencl-2012.1/examples/dump-performance.py.xz
/usr/share/doc/pyopencl-2012.1/examples/demo_elementwise_complex.py.xz
/usr/share/doc/pyopencl-2012.1/examples/pasi-lab.py.xz

Собственно, для наглядности:

bash ~ $ python3
Python 3.2.3 (default, May 18 2012, 22:51:33) 
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyopencl
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named pyopencl
>>> 
bash ~ $ python2
Python 2.7.3 (default, Jun 19 2012, 21:44:53) 
[GCC 4.5.3] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import pyopencl
>>> print pyopencl
<module 'pyopencl' from '/usr/lib/python2.7/site-packages/pyopencl/__init__.pyc'>

К слову, numpy работает и в python-3.2 :)