cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
|
Unlike the Runtime API, where every error is outstanding until cleared, the Driver API, which we use mostly, only remembers "sticky" errors - severe errors which corrupt contexts. More...
Functions | |
status_t | get (bool try_clearing=false) noexcept(true) |
void | ensure_none (const ::std::string &message) noexcept(false) |
Does nothing (unless throwing an exception) More... | |
void | ensure_none (const char *message) noexcept(false) |
A variant of ensure_none() which takes a C-style string. More... | |
void | ensure_none () noexcept(false) |
Does nothing (except possibly throwing an exception) More... | |
Unlike the Runtime API, where every error is outstanding until cleared, the Driver API, which we use mostly, only remembers "sticky" errors - severe errors which corrupt contexts.
Such errors cannot be recovered from / cleared, and require either context destruction or process termination.
|
inlinenoexcept |
Does nothing (unless throwing an exception)
|
inlinenoexcept |
A variant of ensure_none() which takes a C-style string.
ensure_none(my_c_string)
calls.
|
inlinenoexcept |
Does nothing (except possibly throwing an exception)
cuda::runtime_error | if the CUDA runtime API has encountered previously encountered an (uncleared) error |
|
inlinenoexcept |