Hello. This is a beginner’s question.
What is the accepted way to report a custom error condition detected in a kernel to the host program?
global functions can only return void and I would not expect a possibility to throw an exception.
Of course I can place an error code or message into global memory, but is there some API for it?