Hello,

There is some problem with current PyCuda version (most recent commit
from repo). On my Ubuntu 10.04 x64, Python 2.6, Cuda 4.0 after
'submodule update', compilation and installation, _curand cannot be
imported:

>>> import pycuda._curand
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: 
/usr/local/lib/python2.6/dist-packages/pycuda-2011.1-py2.6-linux-x86_64.egg/pycuda/_curand.so:
undefined symbol:
_ZNK5boost6python7objects21py_function_impl_base9max_arityEv

This, in turn, leads to inability to import pycuda.curandom:

try:
    import pycuda._curand as _curand # <--- this fails
except ImportError:
    def get_curand_version(): # <--- now this function returns None
        return None
else:
    get_curand_version = _curand.get_curand_version

if get_curand_version() >= (3, 2, 0): # <--- function returns None, so
'direction_vector_set' stays undefined
    direction_vector_set = _curand.direction_vector_set
    _get_direction_vectors = _curand._get_direction_vectors

...

def generate_direction_vectors(count,
direction=direction_vector_set.VECTOR_32): # <--- module import fails,
because 'direction_vector_set' is undefined

Best regards,
Bogdan

_______________________________________________
PyCUDA mailing list
PyCUDA@tiker.net
http://lists.tiker.net/listinfo/pycuda

Reply via email to