When I call a kernel with ill-set parameters (e.g. more than 512 threads per block) or when the operations inside it require more than what my device has to offer (e.g. too many registers) the kernel is simply not executed. There is no exception or return value to indicate what happened though.
I'd like to know if there's a way to verify if a kernel was executed or not.