[FEA] [DEBT] support for CUDA_CHECK_NO_THROW macro #229
Labels
0 - Backlog
In queue waiting for assignment
CUDA / C++
CUDA issue
good first issue
Good for newcomers
Tech Debt
Issues related to debt
Is your feature request related to a problem? Please describe.
We need a non-throwing checker macro
CUDA_CHECK_NO_THROW
which doesn't throw exception, but only logs the error. This is certainly useful for callingcudaFree
, for example, from a destructor. However, I'd prefer for us to solve the logging mechanism first in issue #100 before doing this.Describe the solution you'd like
Implement CUDA_CHECK_NO_THROW and similarly for CUBLAS_CHECK_NO_THROW and CUSOLVER_CHECK_NO_THROW, to be consistent.
Describe alternatives you've considered
This was a very valid request from @jirikraus . And one way we could work-around currently is to use try-catch-and-ignore blocks. But, IMO, this is a not great solution.
Additional context
None.
The text was updated successfully, but these errors were encountered: