Hello all,

I am trying to use pycula to calculate the eigenvalues and eigenvectors of
a matrix . when I calculate the eigen values it works fine :


cat = np.array([[4,3],[3,2]], dtype=np.float64)
cat_dev=cula.cula_gpuarray_like(cat)

lamb=cula.gpu_devdeveigenvalues(cat_dev)

but when I try to get the eigenvectors like :

lamb=cula.gpu_devdeveigenvalues(cat_dev,right_vectors=True)

I get this error:

(Traceback (most recent call last):
  File "/home/jadidi/python-workespace/kernel/test.py", line 31, in <module>
    print lamb
  File
"/usr/local/lib/python2.7/dist-packages/pycuda-2011.2.2-py2.7-linux-x86_64.egg/pycuda/gpuarray.py",
line 261, in __repr__
    return repr(self.get())
  File
"/usr/local/lib/python2.7/dist-packages/pycuda-2011.2.2-py2.7-linux-x86_64.egg/pycuda/gpuarray.py",
line 238, in get
    drv.memcpy_dtoh(ary, self.gpudata)
pycuda._driver.LaunchError: cuMemcpyDtoH failed: launch failed
PyCUDA WARNING: a clean-up operation failed (dead context maybe?)
cuMemFree failed: launch failed

what would be the reason ?
-- 
Mohsen Jadidi
_______________________________________________
PyCUDA mailing list
[email protected]
http://lists.tiker.net/listinfo/pycuda

Reply via email to