Types for error handling
RustaCUDA uses the
CudaError enum to represent the errors returned by
the CUDA API. It is important to note that nearly every function in CUDA (and therefore
RustaCUDA) can fail. Even those functions which have no normal failure conditions can return
errors related to previous asynchronous launches.
Error enum which represents all the potential errors returned by the CUDA driver API.