Odd--that looks pretty good. Can you please send the output of
$ python -v -c 'import pyopencl'
?
Andreas
Thank you Andreas!
See below. I also made more tests, both using Eclipse (with which I am
new) and the python shell (with which I am less new). Eclipse still
cries out that 'import pyopencl as cl' is unresolved, and both yield the
same error:
r...@ncpc92:examples> python demo.py
Traceback (most recent call last):
File "demo.py", line 8, in ?
ctx1 = cl.create_context_from_type(cl.device_type.ALL)
pyopencl.LogicError: clCreateContextFromType failed: invalid platform
r...@ncpc92:site-packages> python -v -c 'import pyopencl'
# installing zipimport hook
import zipimport # builtin
# installed zipimport hook
# /usr/lib64/python2.4/site.pyc matches /usr/lib64/python2.4/site.py
import site # precompiled from /usr/lib64/python2.4/site.pyc
# /usr/lib64/python2.4/os.pyc matches /usr/lib64/python2.4/os.py
import os # precompiled from /usr/lib64/python2.4/os.pyc
import posix # builtin
# /usr/lib64/python2.4/posixpath.pyc matches
/usr/lib64/python2.4/posixpath.py
import posixpath # precompiled from /usr/lib64/python2.4/posixpath.pyc
# /usr/lib64/python2.4/stat.pyc matches /usr/lib64/python2.4/stat.py
import stat # precompiled from /usr/lib64/python2.4/stat.pyc
import errno # builtin
# /usr/lib64/python2.4/UserDict.pyc matches /usr/lib64/python2.4/UserDict.py
import UserDict # precompiled from /usr/lib64/python2.4/UserDict.pyc
# /usr/lib64/python2.4/copy_reg.pyc matches /usr/lib64/python2.4/copy_reg.py
import copy_reg # precompiled from /usr/lib64/python2.4/copy_reg.pyc
# /usr/lib64/python2.4/types.pyc matches /usr/lib64/python2.4/types.py
import types # precompiled from /usr/lib64/python2.4/types.pyc
import japanese # directory /usr/lib64/python2.4/site-packages/japanese
# /usr/lib64/python2.4/site-packages/japanese/__init__.pyc matches
/usr/lib64/python2.4/site-packages/japanese/__init__.py
import japanese # precompiled from
/usr/lib64/python2.4/site-packages/japanese/__init__.pyc
import japanese.aliases # directory
/usr/lib64/python2.4/site-packages/japanese/aliases
# /usr/lib64/python2.4/site-packages/japanese/aliases/__init__.pyc
matches /usr/lib64/python2.4/site-packages/japanese/aliases/__init__.py
import japanese.aliases # precompiled from
/usr/lib64/python2.4/site-packages/japanese/aliases/__init__.pyc
import encodings # directory /usr/lib64/python2.4/encodings
# /usr/lib64/python2.4/encodings/__init__.pyc matches
/usr/lib64/python2.4/encodings/__init__.py
import encodings # precompiled from
/usr/lib64/python2.4/encodings/__init__.pyc
# /usr/lib64/python2.4/codecs.pyc matches /usr/lib64/python2.4/codecs.py
import codecs # precompiled from /usr/lib64/python2.4/codecs.pyc
import _codecs # builtin
# /usr/lib64/python2.4/encodings/aliases.pyc matches
/usr/lib64/python2.4/encodings/aliases.py
import encodings.aliases # precompiled from
/usr/lib64/python2.4/encodings/aliases.pyc
# /usr/lib64/python2.4/warnings.pyc matches /usr/lib64/python2.4/warnings.py
import warnings # precompiled from /usr/lib64/python2.4/warnings.pyc
# /usr/lib64/python2.4/linecache.pyc matches
/usr/lib64/python2.4/linecache.py
import linecache # precompiled from /usr/lib64/python2.4/linecache.pyc
# /usr/lib64/python2.4/encodings/utf_8.pyc matches
/usr/lib64/python2.4/encodings/utf_8.py
import encodings.utf_8 # precompiled from
/usr/lib64/python2.4/encodings/utf_8.pyc
Python 2.4.3 (#1, Sep 10 2009, 18:34:35)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-46)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
import pyopencl # directory pyopencl
# pyopencl/__init__.pyc matches pyopencl/__init__.py
import pyopencl # precompiled from pyopencl/__init__.pyc
dlopen("pyopencl/_cl.so", 2);
import numpy # directory numpy
# numpy/__init__.pyc matches numpy/__init__.py
import numpy # precompiled from numpy/__init__.pyc
# numpy/__config__.pyc matches numpy/__config__.py
import numpy.__config__ # precompiled from numpy/__config__.pyc
# numpy/version.pyc matches numpy/version.py
import numpy.version # precompiled from numpy/version.pyc
# numpy/_import_tools.pyc matches numpy/_import_tools.py
import numpy._import_tools # precompiled from numpy/_import_tools.pyc
import imp # builtin
# numpy/add_newdocs.pyc matches numpy/add_newdocs.py
import numpy.add_newdocs # precompiled from numpy/add_newdocs.pyc
import numpy.lib # directory numpy/lib
# numpy/lib/__init__.pyc matches numpy/lib/__init__.py
import numpy.lib # precompiled from numpy/lib/__init__.pyc
# numpy/lib/info.pyc matches numpy/lib/info.py
import numpy.lib.info # precompiled from numpy/lib/info.pyc
# numpy/lib/type_check.pyc matches numpy/lib/type_check.py
import numpy.lib.type_check # precompiled from numpy/lib/type_check.pyc
import numpy.core # directory numpy/core
# numpy/core/__init__.pyc matches numpy/core/__init__.py
import numpy.core # precompiled from numpy/core/__init__.pyc
# numpy/core/info.pyc matches numpy/core/info.py
import numpy.core.info # precompiled from numpy/core/info.pyc
dlopen("numpy/core/multiarray.so", 2);
import numpy.core.multiarray # dynamically loaded from
numpy/core/multiarray.so
dlopen("numpy/core/umath.so", 2);
import numpy.core.umath # dynamically loaded from numpy/core/umath.so
# numpy/core/_internal.pyc matches numpy/core/_internal.py
import numpy.core._internal # precompiled from numpy/core/_internal.pyc
# /usr/lib64/python2.4/re.pyc matches /usr/lib64/python2.4/re.py
import re # precompiled from /usr/lib64/python2.4/re.pyc
# /usr/lib64/python2.4/sre.pyc matches /usr/lib64/python2.4/sre.py
import sre # precompiled from /usr/lib64/python2.4/sre.pyc
# /usr/lib64/python2.4/sre_compile.pyc matches
/usr/lib64/python2.4/sre_compile.py
import sre_compile # precompiled from /usr/lib64/python2.4/sre_compile.pyc
import _sre # builtin
# /usr/lib64/python2.4/sre_constants.pyc matches
/usr/lib64/python2.4/sre_constants.py
import sre_constants # precompiled from
/usr/lib64/python2.4/sre_constants.pyc
# /usr/lib64/python2.4/sre_parse.pyc matches
/usr/lib64/python2.4/sre_parse.py
import sre_parse # precompiled from /usr/lib64/python2.4/sre_parse.pyc
# numpy/core/numerictypes.pyc matches numpy/core/numerictypes.py
import numpy.core.numerictypes # precompiled from
numpy/core/numerictypes.pyc
dlopen("numpy/core/_sort.so", 2);
import numpy.core._sort # dynamically loaded from numpy/core/_sort.so
# numpy/core/numeric.pyc matches numpy/core/numeric.py
import numpy.core.numeric # precompiled from numpy/core/numeric.pyc
# numpy/core/arrayprint.pyc matches numpy/core/arrayprint.py
import numpy.core.arrayprint # precompiled from numpy/core/arrayprint.pyc
# numpy/core/fromnumeric.pyc matches numpy/core/fromnumeric.py
import numpy.core.fromnumeric # precompiled from numpy/core/fromnumeric.pyc
dlopen("/usr/lib64/python2.4/lib-dynload/cPickle.so", 2);
dlopen("/usr/lib64/python2.4/lib-dynload/cStringIO.so", 2);
import cStringIO # dynamically loaded from
/usr/lib64/python2.4/lib-dynload/cStringIO.so
import cPickle # dynamically loaded from
/usr/lib64/python2.4/lib-dynload/cPickle.so
# numpy/core/defmatrix.pyc matches numpy/core/defmatrix.py
import numpy.core.defmatrix # precompiled from numpy/core/defmatrix.pyc
# numpy/core/defchararray.pyc matches numpy/core/defchararray.py
import numpy.core.defchararray # precompiled from
numpy/core/defchararray.pyc
# numpy/core/records.pyc matches numpy/core/records.py
import numpy.core.records # precompiled from numpy/core/records.pyc
# numpy/core/memmap.pyc matches numpy/core/memmap.py
import numpy.core.memmap # precompiled from numpy/core/memmap.pyc
dlopen("numpy/core/scalarmath.so", 2);
import numpy.core.scalarmath # dynamically loaded from
numpy/core/scalarmath.so
import numpy.testing # directory numpy/testing
# numpy/testing/__init__.pyc matches numpy/testing/__init__.py
import numpy.testing # precompiled from numpy/testing/__init__.pyc
# /usr/lib64/python2.4/unittest.pyc matches /usr/lib64/python2.4/unittest.py
import unittest # precompiled from /usr/lib64/python2.4/unittest.pyc
dlopen("/usr/lib64/python2.4/lib-dynload/timemodule.so", 2);
import time # dynamically loaded from
/usr/lib64/python2.4/lib-dynload/timemodule.so
# /usr/lib64/python2.4/traceback.pyc matches
/usr/lib64/python2.4/traceback.py
import traceback # precompiled from /usr/lib64/python2.4/traceback.pyc
# numpy/testing/decorators.pyc matches numpy/testing/decorators.py
import numpy.testing.decorators # precompiled from
numpy/testing/decorators.pyc
# numpy/testing/utils.pyc matches numpy/testing/utils.py
import numpy.testing.utils # precompiled from numpy/testing/utils.pyc
dlopen("/usr/lib64/python2.4/lib-dynload/operator.so", 2);
import operator # dynamically loaded from
/usr/lib64/python2.4/lib-dynload/operator.so
# numpy/testing/nosetester.pyc matches numpy/testing/nosetester.py
import numpy.testing.nosetester # precompiled from
numpy/testing/nosetester.pyc
# numpy/testing/parametric.pyc matches numpy/testing/parametric.py
import numpy.testing.parametric # precompiled from
numpy/testing/parametric.pyc
# numpy/testing/numpytest.pyc matches numpy/testing/numpytest.py
import numpy.testing.numpytest # precompiled from
numpy/testing/numpytest.pyc
# numpy/lib/ufunclike.pyc matches numpy/lib/ufunclike.py
import numpy.lib.ufunclike # precompiled from numpy/lib/ufunclike.pyc
# numpy/lib/index_tricks.pyc matches numpy/lib/index_tricks.py
import numpy.lib.index_tricks # precompiled from numpy/lib/index_tricks.pyc
dlopen("/usr/lib64/python2.4/lib-dynload/mathmodule.so", 2);
import math # dynamically loaded from
/usr/lib64/python2.4/lib-dynload/mathmodule.so
# numpy/lib/function_base.pyc matches numpy/lib/function_base.py
import numpy.lib.function_base # precompiled from
numpy/lib/function_base.pyc
# numpy/lib/shape_base.pyc matches numpy/lib/shape_base.py
import numpy.lib.shape_base # precompiled from numpy/lib/shape_base.pyc
# numpy/lib/twodim_base.pyc matches numpy/lib/twodim_base.py
import numpy.lib.twodim_base # precompiled from numpy/lib/twodim_base.pyc
dlopen("numpy/lib/_compiled_base.so", 2);
import numpy.lib._compiled_base # dynamically loaded from
numpy/lib/_compiled_base.so
# numpy/lib/arraysetops.pyc matches numpy/lib/arraysetops.py
import numpy.lib.arraysetops # precompiled from numpy/lib/arraysetops.pyc
# numpy/lib/stride_tricks.pyc matches numpy/lib/stride_tricks.py
import numpy.lib.stride_tricks # precompiled from
numpy/lib/stride_tricks.pyc
# numpy/lib/scimath.pyc matches numpy/lib/scimath.py
import numpy.lib.scimath # precompiled from numpy/lib/scimath.pyc
# numpy/lib/polynomial.pyc matches numpy/lib/polynomial.py
import numpy.lib.polynomial # precompiled from numpy/lib/polynomial.pyc
# numpy/lib/getlimits.pyc matches numpy/lib/getlimits.py
import numpy.lib.getlimits # precompiled from numpy/lib/getlimits.pyc
# numpy/lib/machar.pyc matches numpy/lib/machar.py
import numpy.lib.machar # precompiled from numpy/lib/machar.pyc
# numpy/lib/utils.pyc matches numpy/lib/utils.py
import numpy.lib.utils # precompiled from numpy/lib/utils.pyc
# numpy/lib/io.pyc matches numpy/lib/io.py
import numpy.lib.io # precompiled from numpy/lib/io.pyc
# numpy/lib/format.pyc matches numpy/lib/format.py
import numpy.lib.format # precompiled from numpy/lib/format.pyc
dlopen("/usr/lib64/python2.4/lib-dynload/itertoolsmodule.so", 2);
import itertools # dynamically loaded from
/usr/lib64/python2.4/lib-dynload/itertoolsmodule.so
# numpy/lib/_datasource.pyc matches numpy/lib/_datasource.py
import numpy.lib._datasource # precompiled from numpy/lib/_datasource.pyc
# /usr/lib64/python2.4/shutil.pyc matches /usr/lib64/python2.4/shutil.py
import shutil # precompiled from /usr/lib64/python2.4/shutil.pyc
# numpy/lib/financial.pyc matches numpy/lib/financial.py
import numpy.lib.financial # precompiled from numpy/lib/financial.pyc
# numpy/lib/arrayterator.pyc matches numpy/lib/arrayterator.py
import numpy.lib.arrayterator # precompiled from numpy/lib/arrayterator.pyc
# /usr/lib64/python2.4/__future__.pyc matches
/usr/lib64/python2.4/__future__.py
import __future__ # precompiled from /usr/lib64/python2.4/__future__.pyc
import numpy.linalg # directory numpy/linalg
# numpy/linalg/__init__.pyc matches numpy/linalg/__init__.py
import numpy.linalg # precompiled from numpy/linalg/__init__.pyc
# numpy/linalg/info.pyc matches numpy/linalg/info.py
import numpy.linalg.info # precompiled from numpy/linalg/info.pyc
# numpy/linalg/linalg.pyc matches numpy/linalg/linalg.py
import numpy.linalg.linalg # precompiled from numpy/linalg/linalg.pyc
dlopen("numpy/linalg/lapack_lite.so", 2);
import numpy.linalg.lapack_lite # dynamically loaded from
numpy/linalg/lapack_lite.so
import numpy.fft # directory numpy/fft
# numpy/fft/__init__.pyc matches numpy/fft/__init__.py
import numpy.fft # precompiled from numpy/fft/__init__.pyc
# numpy/fft/info.pyc matches numpy/fft/info.py
import numpy.fft.info # precompiled from numpy/fft/info.pyc
# numpy/fft/fftpack.pyc matches numpy/fft/fftpack.py
import numpy.fft.fftpack # precompiled from numpy/fft/fftpack.pyc
dlopen("numpy/fft/fftpack_lite.so", 2);
import numpy.fft.fftpack_lite # dynamically loaded from
numpy/fft/fftpack_lite.so
# numpy/fft/helper.pyc matches numpy/fft/helper.py
import numpy.fft.helper # precompiled from numpy/fft/helper.pyc
import numpy.random # directory numpy/random
# numpy/random/__init__.pyc matches numpy/random/__init__.py
import numpy.random # precompiled from numpy/random/__init__.pyc
# numpy/random/info.pyc matches numpy/random/info.py
import numpy.random.info # precompiled from numpy/random/info.pyc
dlopen("numpy/random/mtrand.so", 2);
import numpy.random.mtrand # dynamically loaded from numpy/random/mtrand.so
# numpy/ctypeslib.pyc matches numpy/ctypeslib.py
import numpy.ctypeslib # precompiled from numpy/ctypeslib.pyc
import numpy.ma # directory numpy/ma
# numpy/ma/__init__.pyc matches numpy/ma/__init__.py
import numpy.ma # precompiled from numpy/ma/__init__.pyc
# numpy/ma/core.pyc matches numpy/ma/core.py
import numpy.ma.core # precompiled from numpy/ma/core.pyc
# numpy/ma/extras.pyc matches numpy/ma/extras.py
import numpy.ma.extras # precompiled from numpy/ma/extras.pyc
import pyopencl._cl # dynamically loaded from pyopencl/_cl.so
# /usr/lib64/python2.4/inspect.pyc matches /usr/lib64/python2.4/inspect.py
import inspect # precompiled from /usr/lib64/python2.4/inspect.pyc
# /usr/lib64/python2.4/string.pyc matches /usr/lib64/python2.4/string.py
import string # precompiled from /usr/lib64/python2.4/string.pyc
dlopen("/usr/lib64/python2.4/lib-dynload/stropmodule.so", 2);
import strop # dynamically loaded from
/usr/lib64/python2.4/lib-dynload/stropmodule.so
# /usr/lib64/python2.4/dis.pyc matches /usr/lib64/python2.4/dis.py
import dis # precompiled from /usr/lib64/python2.4/dis.pyc
# /usr/lib64/python2.4/opcode.pyc matches /usr/lib64/python2.4/opcode.py
import opcode # precompiled from /usr/lib64/python2.4/opcode.pyc
# /usr/lib64/python2.4/tokenize.pyc matches /usr/lib64/python2.4/tokenize.py
import tokenize # precompiled from /usr/lib64/python2.4/tokenize.pyc
# /usr/lib64/python2.4/token.pyc matches /usr/lib64/python2.4/token.py
import token # precompiled from /usr/lib64/python2.4/token.pyc
# clear __builtin__._
# clear sys.path
# clear sys.argv
# clear sys.ps1
# clear sys.ps2
# clear sys.exitfunc
# clear sys.exc_type
# clear sys.exc_value
# clear sys.exc_traceback
# clear sys.last_type
# clear sys.last_value
# clear sys.last_traceback
# clear sys.path_hooks
# clear sys.path_importer_cache
# clear sys.meta_path
# restore sys.stdin
# restore sys.stdout
# restore sys.stderr
# cleanup __main__
# cleanup[1] zipimport
# cleanup[1] signal
# cleanup[1] token
# cleanup[1] japanese
# cleanup[1] numpy.lib.info
# cleanup[1] sre
# cleanup[1] numpy.core.memmap
# cleanup[1] opcode
# cleanup[1] __future__
# cleanup[1] japanese.aliases
# cleanup[1] sre_constants
# cleanup[1] errno
# cleanup[1] _codecs
# cleanup[1] posix
# cleanup[1] sre_parse
# cleanup[1] sre_compile
# cleanup[1] site
# cleanup[1] shutil
# cleanup[1] strop
# cleanup[1] pyopencl
# cleanup[1] encodings
# cleanup[1] inspect
# cleanup[1] _sre
# cleanup[1] tokenize
# cleanup[1] encodings.aliases
# cleanup[1] exceptions
# cleanup[1] pyopencl._cl
# cleanup[1] string
# cleanup[1] encodings.utf_8
# cleanup[1] dis
# cleanup[1] codecs
# cleanup[2] numpy.core.info
# cleanup[2] numpy.lib.getlimits
# cleanup[2] numpy.core.numerictypes
# cleanup[2] re
# cleanup[2] numpy.linalg
# cleanup[2] imp
# cleanup[2] numpy.testing
# cleanup[2] numpy.core.umath
# cleanup[2] numpy.core.scalarmath
# cleanup[2] numpy.lib.arraysetops
# cleanup[2] itertools
# cleanup[2] numpy.version
# cleanup[2] numpy.lib.type_check
# cleanup[2] numpy.lib._datasource
# cleanup[2] numpy.lib.io
# cleanup[2] numpy.ma.extras
# cleanup[2] numpy.fft.fftpack_lite
# cleanup[2] numpy.core.multiarray
# cleanup[2] cStringIO
# cleanup[2] numpy.ma.core
# cleanup[2] numpy.add_newdocs
# cleanup[2] numpy.testing.decorators
# cleanup[2] numpy.lib._compiled_base
# cleanup[2] numpy.random.mtrand
# cleanup[2] math
# cleanup[2] numpy.fft.helper
# cleanup[2] UserDict
# cleanup[2] numpy.core._sort
# cleanup[2] traceback
# cleanup[2] numpy.core._internal
# cleanup[2] numpy.fft.fftpack
# cleanup[2] numpy.linalg.lapack_lite
# cleanup[2] os
# cleanup[2] unittest
# cleanup[2] numpy.random
# cleanup[2] numpy.lib.twodim_base
# cleanup[2] operator
# cleanup[2] numpy.testing.parametric
# cleanup[2] numpy.lib.arrayterator
# cleanup[2] posixpath
# cleanup[2] numpy.lib.financial
# cleanup[2] numpy.core.arrayprint
# cleanup[2] numpy.ma
# cleanup[2] types
# cleanup[2] numpy.lib.stride_tricks
# cleanup[2] numpy
# cleanup[2] numpy.core.defmatrix
# cleanup[2] cPickle
# cleanup[2] numpy.__config__
# cleanup[2] numpy.testing.utils
# cleanup[2] numpy.lib.ufunclike
# cleanup[2] numpy.core.fromnumeric
# cleanup[2] numpy.ctypeslib
# cleanup[2] numpy.lib.scimath
# cleanup[2] numpy.fft
# cleanup[2] numpy.lib
# cleanup[2] numpy.lib.function_base
# cleanup[2] copy_reg
# cleanup[2] numpy.lib.polynomial
# cleanup[2] numpy._import_tools
# cleanup[2] numpy.fft.info
# cleanup[2] numpy.core.records
# cleanup[2] numpy.random.info
# cleanup[2] numpy.testing.numpytest
# cleanup[2] numpy.core.numeric
# cleanup[2] numpy.linalg.info
# cleanup[2] numpy.core.defchararray
# cleanup[2] numpy.core
# cleanup[2] stat
# cleanup[2] numpy.lib.utils
# cleanup[2] numpy.lib.index_tricks
# cleanup[2] warnings
# cleanup[2] numpy.lib.shape_base
# cleanup[2] numpy.lib.format
# cleanup[2] numpy.testing.nosetester
# cleanup[2] os.path
# cleanup[2] linecache
# cleanup[2] time
# cleanup[2] numpy.lib.machar
# cleanup[2] numpy.linalg.linalg
# cleanup sys
# cleanup __builtin__
# cleanup ints: 189 unfreed ints in 7 out of 16 blocks
# cleanup floats: 29 unfreed floats in 4 out of 5 blocks
On 06/23/2010 05:04 PM, Andreas Kloeckner wrote:
On Wed, 23 Jun 2010 16:43:37 +0100, "Etienne B.
Roesch"<[email protected]> wrote:
Hi Andreas,
Thank you for your help!
r...@ncpc92:pyopencl> ldd
/usr/lib64/python2.4/site-packages/pyopencl/_cl.so
libboost_python.so.1.43.0 => /usr/lib/libboost_python.so.1.43.0
(0x00002b8202c2c000)
libboost_thread.so.1.43.0 => /usr/lib/libboost_thread.so.1.43.0
(0x00002b8202e7e000)
libOpenCL.so.1 => /usr/lib64/libOpenCL.so.1 (0x00002b8203095000)
libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00002b820319b000)
libm.so.6 => /lib64/libm.so.6 (0x00002b820349b000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00002b820371e000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00002b820392d000)
libc.so.6 => /lib64/libc.so.6 (0x00002b8203b48000)
libutil.so.1 => /lib64/libutil.so.1 (0x00002b8203e9f000)
libdl.so.2 => /lib64/libdl.so.2 (0x00002b82040a3000)
librt.so.1 => /lib64/librt.so.1 (0x00002b82042a7000)
/lib64/ld-linux-x86-64.so.2 (0x000000368bc00000)
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl