cudaError_t syten::Cuda::cuda_handle_error_impl | ( | cudaError_t | err, |
Vec< cudaError_t > | acceptable_errors, | ||
std::string | str, | ||
SourceLocation | location = SourceLocation::current() |
||
) |
Implementation for helper function to handle Cuda return values by throwing an assertion failure if the return value is neither cudaSuccess
nor in the list of acceptable errors.
References syten::hasMember(), SYTEN_ASSERT_MSG, and SYTEN_PRETTY_SLOC.