"Rana, Sanjay" <sanjay.r...@rpa.gsi.gov.uk> writes: > PS. Another example of using a macro for handling error inside the kernel > code in C++ dev environment but am yet to see someone use it in pycuda. > > https://codeyarns.com/2011/03/02/cuda-assertion-in-kernel-code/
The in-kernel error checks boil down to printf(), which should just work. Explicit error checks in host code are unnecessary, as PyCUDA automatically translates those to Python exceptions which you can catch as usual. HTH, Andreas _______________________________________________ PyCUDA mailing list PyCUDA@tiker.net https://lists.tiker.net/listinfo/pycuda