Shivangi Agarwal <shivangiagarwa...@gmail.com> writes:
> It still gives me the same error. Here is the program that I am running:

OIC. Sure, the `getattr` will look up whether a kernel of that (bogus)
name exists in the program. The spec-conforming thing for an OpenCL
implementation to do [1] if the kernel is not found is to return
CL_INVALID_KERNEL_NAME from clCreateKernel. PyOpenCL relies on that.

Andreas

[1] 
https://www.khronos.org/registry/OpenCL/specs/2.2/html/OpenCL_API.html#_kernel_objects

Attachment: signature.asc
Description: PGP signature

_______________________________________________
PyOpenCL mailing list -- pyopencl@tiker.net
To unsubscribe send an email to pyopencl-le...@tiker.net

Reply via email to