SyTen

◆ cuda_handle_error_impl() [1/2]

cudaError_t syten::Cuda::cuda_handle_error_impl ( cudaError_t  err,
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 not cudaSuccess.

References SYTEN_ASSERT_MSG, and SYTEN_PRETTY_SLOC.