| 203 | } |
| 204 | |
| 205 | const char* ihipGetErrorString(hipError_t hip_error) { |
| 206 | switch (hip_error) { |
| 207 | case hipSuccess: |
| 208 | return "no error"; |
| 209 | case hipErrorInvalidValue: |
| 210 | return "invalid argument"; |
| 211 | case hipErrorOutOfMemory: |
| 212 | return "out of memory"; |
| 213 | case hipErrorNotInitialized: |
| 214 | return "initialization error"; |
| 215 | case hipErrorDeinitialized: |
| 216 | return "driver shutting down"; |
| 217 | case hipErrorProfilerDisabled: |
| 218 | return "profiler disabled while using external profiling tool"; |
| 219 | case hipErrorProfilerNotInitialized: |
| 220 | return "profiler is not initialized"; |
| 221 | case hipErrorProfilerAlreadyStarted: |
| 222 | return "profiler already started"; |
| 223 | case hipErrorProfilerAlreadyStopped: |
| 224 | return "profiler already stopped"; |
| 225 | case hipErrorInvalidConfiguration: |
| 226 | return "invalid configuration argument"; |
| 227 | case hipErrorInvalidPitchValue: |
| 228 | return "invalid pitch argument"; |
| 229 | case hipErrorInvalidSymbol: |
| 230 | return "invalid device symbol"; |
| 231 | case hipErrorInvalidDevicePointer: |
| 232 | return "invalid device pointer"; |
| 233 | case hipErrorInvalidMemcpyDirection: |
| 234 | return "invalid copy direction for memcpy"; |
| 235 | case hipErrorInsufficientDriver: |
| 236 | return "driver version is insufficient for runtime version"; |
| 237 | case hipErrorMissingConfiguration: |
| 238 | return "__global__ function call is not configured"; |
| 239 | case hipErrorPriorLaunchFailure: |
| 240 | return "unspecified launch failure in prior launch"; |
| 241 | case hipErrorInvalidDeviceFunction: |
| 242 | return "invalid device function"; |
| 243 | case hipErrorNoDevice: |
| 244 | return "no ROCm-capable device is detected"; |
| 245 | case hipErrorInvalidDevice: |
| 246 | return "invalid device ordinal"; |
| 247 | case hipErrorInvalidImage: |
| 248 | return "device kernel image is invalid"; |
| 249 | case hipErrorInvalidContext: |
| 250 | return "invalid device context"; |
| 251 | case hipErrorContextAlreadyCurrent: |
| 252 | return "context is already current context"; |
| 253 | case hipErrorMapFailed: |
| 254 | return "mapping of buffer object failed"; |
| 255 | case hipErrorUnmapFailed: |
| 256 | return "unmapping of buffer object failed"; |
| 257 | case hipErrorArrayIsMapped: |
| 258 | return "array is mapped"; |
| 259 | case hipErrorAlreadyMapped: |
| 260 | return "resource already mapped"; |
| 261 | case hipErrorNoBinaryForGpu: |
| 262 | return "no kernel image is available for execution on the device"; |
no outgoing calls
no test coverage detected