[SWDEV-445928] - Fix for hipDrvGetError tests

Change-Id: I19ba2084fddad7b073edc0b4e9c1b16cf7a97319
This commit is contained in:
Rahul Manocha
2024-05-06 16:19:16 -07:00
committed by Rahul Manocha
parent a9b0e656e2
commit 615f95aa29
5 changed files with 10 additions and 14 deletions
@@ -352,56 +352,56 @@ const char* ErrorString(hipError_t enumerator) {
return "profiler already started";
case hipErrorProfilerAlreadyStopped:
return "profiler already stopped";
#if HT_AMD
case hipErrorInvalidConfiguration:
#if HT_AMD
return "invalid configuration argument";
#elif HT_NVIDIA
return "unknown error";
#endif
#if HT_AMD
case hipErrorInvalidPitchValue:
#if HT_AMD
return "invalid pitch argument";
#elif HT_NVIDIA
return "unknown error";
#endif
#if HT_AMD
case hipErrorInvalidSymbol:
#if HT_AMD
return "invalid device symbol";
#elif HT_NVIDIA
return "unknown error";
#endif
#if HT_AMD
case hipErrorInvalidDevicePointer:
#if HT_AMD
return "invalid device pointer";
#elif HT_NVIDIA
return "unknown error";
#endif
#if HT_AMD
case hipErrorInvalidMemcpyDirection:
#if HT_AMD
return "invalid copy direction for memcpy";
#elif HT_NVIDIA
return "unknown error";
#endif
#if HT_AMD
case hipErrorInsufficientDriver:
#if HT_AMD
return "driver version is insufficient for runtime version";
#elif HT_NVIDIA
return "unknown error";
#endif
#if HT_AMD
case hipErrorMissingConfiguration:
#if HT_AMD
return "__global__ function call is not configured";
#elif HT_NVIDIA
return "unknown error";
#endif
#if HT_AMD
case hipErrorPriorLaunchFailure:
#if HT_AMD
return "unspecified launch failure in prior launch";
#elif HT_NVIDIA
return "unknown error";
#endif
#if HT_AMD
case hipErrorInvalidDeviceFunction:
#if HT_AMD
return "invalid device function";
#elif HT_NVIDIA
return "unknown error";
@@ -23,6 +23,7 @@ THE SOFTWARE.
#pragma once
#include <hip/hip_runtime_api.h>
#include <hip_test_context.hh>
constexpr hipError_t kErrorEnumerators[] = {hipSuccess,
hipErrorInvalidValue,