[PyCuda] error

Paul Rigor (uci) paul.rigor at uci.edu
Sat May 23 11:49:37 PDT 2009


Hi gang,
I get the same error on a Linux box with a GeForce GTX 260.  I'm using
0.93rc1.  I'm recompiled pycuda w/ api trace enabled and below are the
subsequent messages.  Btw, I'm new to git and when I perform a 'git pull' it
says my copy is up-to-date.  How do I get the latest release candidate
(rc2)?

Thanks,
Paul

===TRACE===
In [7]: g = rand.rand((3000,3000))
cuMemAlloc
cuCtxGetDevice
cuDeviceGetAttribute
cuDeviceGetAttribute
cuDeviceComputeCapability
cuDeviceGetAttribute
cuDeviceGetAttribute
cuDeviceGetAttribute
cuCtxGetDevice
cuDeviceComputeCapability
cuModuleLoadDataEx
cuModuleGetFunction
cuFuncSetBlockShape
cuParamSetSize
cuFuncSetBlockShape
cuParamSetv
cuLaunchGrid
cuModuleUnload

In [8]:  x= pycuda.cumath.sqrt(g)
   ...:
cuMemAlloc
cuCtxGetDevice
cuCtxGetDevice
cuDeviceComputeCapability
cuModuleLoadDataEx
cuModuleGetFunction
cuFuncSetBlockShape
cuParamSetSize
cuFuncSetBlockShape
ERROR: An unexpected error occurred while tokenizing input
The following traceback may be corrupted or invalid
The error message is: ('EOF in multi-line statement', (20, 0))

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)

/home/prigor/projects/pycuda/<ipython console> in <module>()

/home/prigor/projects/hts/lib/python2.5/site-packages/pycuda-0.93rc1-py2.5-linux-x86_64.egg/pycuda/cumath.pyc
in f(array)
     14         func = elementwise.get_unary_func_kernel(func_name,
array.dtype)
     15         func.set_block_shape(*array._block)
---> 16         func.prepared_async_call(array._grid, array.stream,
     17                 array.gpudata, result.gpudata, array.mem_size)
     18

AttributeError: 'GPUArray' object has no attribute 'stream'


On Sat, May 23, 2009 at 11:28 AM, Eli Bressert <ebressert at cfa.harvard.edu>wrote:

> Hi,
>
> I was trying to use the cumath functions and ran into an error. I'm on
> OS X 10.5.7 with a GeForce 8800GT graphics card and using
> PyCUDA-0.93rc2. Am I doing something wrong or is there a bug? I did
> not have this issue with PyCUDA -0.92.
>
> Cheers,
>
> Eli
>
>
> import pycuda.gpuarray as gpuarray
> import pycuda.driver as cuda
> import pycuda.autoinit
> import numpy
> import pycuda.curandom as rand
>
> In [1]: g = rand.rand((3000,3000))
>
> In [2]: x= pycuda.cumath.sqrt(g)
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (20, 0))
>
> ---------------------------------------------------------------------------
> AttributeError                            Traceback (most recent call last)
>
> /Users/bb/<ipython console> in <module>()
>
>
> /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/pycuda-0.93rc2-py2.6-macosx-10.3-fat.egg/pycuda/cumath.pyc
> in f(array)
>     14         func = elementwise.get_unary_func_kernel(func_name,
> array.dtype)
>     15         func.set_block_shape(*array._block)
> ---> 16         func.prepared_async_call(array._grid, array.stream,
>     17                 array.gpudata, result.gpudata, array.mem_size)
>     18
>
> AttributeError: 'GPUArray' object has no attribute 'stream'
>
> _______________________________________________
> PyCuda mailing list
> PyCuda at tiker.net
> http://tiker.net/mailman/listinfo/pycuda_tiker.net
>



-- 
Paul Rigor
Graduate Student
Institute for Genomics and Bioinformatics
Donald Bren School of Information and Computer Sciences
University of California in Irvine
248 ICS2 Bldg.
+1 (760) 536 - 6767 (skype)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.tiker.net/pipermail/pycuda/attachments/20090523/51d106b9/attachment-0001.htm>


More information about the PyCUDA mailing list