We currently have
check_ocl_error() in the GPU PR which takes the OpenCL error codes and throws a domain error saying which error code you received. IE
- We want
domain_errors()only when they are recoverable (that’s what I remember being told at some point)
- c++11 now has
<system_error>where you can make your own error codes and system errors ala the blog below
Does the team think (2) is best for catching the OpenCL system errors? Thoughts and opinions?