Gromacs
2025-dev-20240910-a7e2421
|
Functions | |
std::string | getDeviceErrorString (const hipError_t deviceError) |
Add the API information on the specific error to the error message. More... | |
void | checkDeviceError (const hipError_t deviceError, const std::string &errorMessage) |
Check if API returned an error and throw an exception with information on it. More... | |
void | ensureNoPendingDeviceError (const std::string &errorMessage) |
Helper function to ensure no pending error silently disrupts error handling. More... | |
|
inline |
Check if API returned an error and throw an exception with information on it.
[in] | deviceError | The error to assert hipSuccess on. |
[in] | errorMessage | Undecorated error message. |
InternalError | if deviceError is not a success. |
|
inline |
Helper function to ensure no pending error silently disrupts error handling.
Asserts in a debug build if an unhandled error is present. Issues a warning at run time otherwise.
[in] | errorMessage | Undecorated error message. |
|
inline |
Add the API information on the specific error to the error message.
[in] | deviceError | The error to assert hipSuccess on. |