-
Notifications
You must be signed in to change notification settings - Fork 244
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
More ergonomic way to access builtin kernels with weird names. #782
Comments
It's documented here, but that's arguably not very discoverable. I'll add a note to the docs. |
BTW: |
Ohh, I see, I've mis-parsed the |
Yep, the constructor is as good as it gets. Thanks for the docs clarification! |
Sorry for the double post, figured this deserves its own tracking issue. Continuing from #777:
Fetching the kernel via the
kernel_name
attribute is not possible since the builtin kernel name gets mangled by pyopencl to"pocladdi8"
but it seemskernel_name
gets passed as is to clCreateKernel which of course fails in this case since it expects"pocl.add.i8"
. Something like an__getitem__(self, kernel_name)
or a helper function to fetch kernels by (string) name would be nice.The text was updated successfully, but these errors were encountered: