Hi,
I'm trying to write my first pyopencl program.
I have more than one kernel functions in kernel source.
On executing following,
prg = cl.Program(ctx, source).build()
kern = cl.Kernel(prg, args.kernel_name) #args.kernel_name contains kernel
function name
I see following error,
Boost.Python.ArgumentError: Python argument types in
Kernel.__init__(Kernel, Program, str)
did not match C++ signature:
__init__(struct _object *, class pyopencl::program, class
std::basic_string<char,struct
std::char_traits<char>,class std::allocator<char> >)
I tried casting to string for args.kernel_name but the error is same.
Why am I seeing this?
How can I chose which kernel to run at runtime?
Thank you.
Regards,
Giri
_______________________________________________
PyOpenCL mailing list
[email protected]
http://lists.tiker.net/listinfo/pyopencl