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
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::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?
Show replies by date