| 68 | PLUGIN_REGISTRY_DEFINE_PLUGIN_ID(kMIOpenPlugin); |
| 69 | |
| 70 | string ToString(miopenStatus_t status) { |
| 71 | switch (status) { |
| 72 | case miopenStatusSuccess: |
| 73 | return "miopenStatusSuccess"; |
| 74 | case miopenStatusNotInitialized: |
| 75 | return "miopenStatusNotInitialized"; |
| 76 | case miopenStatusAllocFailed: |
| 77 | return "miopenStatusAllocFailed"; |
| 78 | case miopenStatusBadParm: |
| 79 | return "miopenStatusBadParm"; |
| 80 | case miopenStatusInternalError: |
| 81 | return "miopenStatusInternalError"; |
| 82 | case miopenStatusInvalidValue: |
| 83 | return "miopenStatusInvalidValue"; |
| 84 | case miopenStatusNotImplemented: |
| 85 | return "miopenStatusNotImplemented"; |
| 86 | case miopenStatusUnknownError: |
| 87 | return "miopenStatusUnknownError"; |
| 88 | default: |
| 89 | return absl::StrCat("<unknown miopen status: ", static_cast<int>(status), |
| 90 | ">"); |
| 91 | } |
| 92 | } |
| 93 | |
| 94 | // RAII wrapper for all calls to MIOpen with a MIOpen handle argument. |
| 95 | // |
no test coverage detected