Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to call GPU_kernel function

We are new to this platform. At the time of calling kernel we face the error as

File "/tmp/tmpGpJlVO/___code___.py", line 31, in <module> func(b_gpu, a_gpu,info_gpu, block = (_sage_const_32 ,_sage_const_1 ,_sage_const_1 ), grid = (_sage_const_4 ,_sage_const_1 )) File "/usr/local/sage/sage-test/sage-4.7.1/local/lib/python2.6/site-packages/pycuda-2012.1-py2.6-linux-x86_64.egg/pycuda/driver.py", line 354, in function_call func._set_block_shape(block) Boost.Python.ArgumentError: Python argument types in Function._set_block_shape(Function, sage.rings.integer.Integer, sage.rings.integer.Integer, sage.rings.integer.Integer) did not match C++ signature: _set_block_shape(pycuda::function {lvalue}, int, int, int)*

please help us....

click to hide/show revision 2
No.2 Revision

how to call GPU_kernel function

We are new to this platform. At the time of calling kernel we face the error as

File

***File "/tmp/tmpGpJlVO/___code___.py", line 31, in <module>
    func(b_gpu, a_gpu,info_gpu, block = (_sage_const_32 ,_sage_const_1 ,_sage_const_1 ), grid = (_sage_const_4 ,_sage_const_1 ))
  File "/usr/local/sage/sage-test/sage-4.7.1/local/lib/python2.6/site-packages/pycuda-2012.1-py2.6-linux-x86_64.egg/pycuda/driver.py", line 354, in function_call
    func._set_block_shape(block)
func._set_block_shape(*block)
Boost.Python.ArgumentError: Python argument types in
    Function._set_block_shape(Function, sage.rings.integer.Integer, sage.rings.integer.Integer, sage.rings.integer.Integer)
did not match C++ signature:
    _set_block_shape(pycuda::function {lvalue}, int, int, int)*

int)***

please help us....

click to hide/show revision 3
retagged

how to call GPU_kernel function

We are new to this platform. At the time of calling kernel we face the error as

***File "/tmp/tmpGpJlVO/___code___.py", line 31, in <module>
    func(b_gpu, a_gpu,info_gpu, block = (_sage_const_32 ,_sage_const_1 ,_sage_const_1 ), grid = (_sage_const_4 ,_sage_const_1 ))
  File "/usr/local/sage/sage-test/sage-4.7.1/local/lib/python2.6/site-packages/pycuda-2012.1-py2.6-linux-x86_64.egg/pycuda/driver.py", line 354, in function_call
    func._set_block_shape(*block)
Boost.Python.ArgumentError: Python argument types in
    Function._set_block_shape(Function, sage.rings.integer.Integer, sage.rings.integer.Integer, sage.rings.integer.Integer)
did not match C++ signature:
    _set_block_shape(pycuda::function {lvalue}, int, int, int)***

please help us....