| 376 | } |
| 377 | |
| 378 | hipError_t hipDrvGetErrorString(hipError_t hip_error, const char** errStr) { |
| 379 | if (errStr == nullptr) { |
| 380 | return hipErrorInvalidValue; |
| 381 | } |
| 382 | *errStr = ihipGetErrorString(hip_error); |
| 383 | if (hip_error == hipErrorUnknown || strcmp(*errStr, "unknown error") != 0) { |
| 384 | return hipSuccess; |
| 385 | } else { |
| 386 | return hipErrorInvalidValue; |
| 387 | } |
| 388 | } |
| 389 | } // namespace hip |
nothing calls this directly
no test coverage detected