[SWDEV-445928] - Fix for hipDrvGetError tests

Change-Id: I19ba2084fddad7b073edc0b4e9c1b16cf7a97319
This commit is contained in:
Rahul Manocha
2024-05-06 16:19:16 -07:00
committad av Rahul Manocha
förälder a9b0e656e2
incheckning 615f95aa29
5 ändrade filer med 10 tillägg och 14 borttagningar
-2
Visa fil
@@ -240,8 +240,6 @@
"Unit_hipDrvGraphAddMemsetNode_hipMalloc3D_1D",
"Unit_hipDrvGraphAddMemsetNode_hipMalloc_1D",
"Unit_hipDrvGraphAddMemsetNode_hipMallocManaged",
"Unit_hipDrvGetErrorName_Positive_Basic",
"Unit_hipDrvGetErrorString_Positive_Basic",
"Unit_hipModuleLaunchKernel_Negative_Parameters",
"Unit_hipModuleGetTexRef_Positive_Basic",
"Unit_hipModuleLaunchCooperativeKernel_Negative_Parameters",
@@ -619,8 +619,6 @@
"Unit_tex2DLayeredLod_Positive_ReadModeNormalizedFloat - unsigned char",
"Unit_tex2DLayeredLod_Positive_ReadModeNormalizedFloat - short",
"Unit_tex2DLayeredLod_Positive_ReadModeNormalizedFloat - unsigned short",
"Unit_hipDrvGetErrorName_Positive_Basic",
"Unit_hipDrvGetErrorString_Positive_Basic",
"Unit_hipModuleLaunchKernel_Negative_Parameters",
"Unit_hipModuleGetTexRef_Positive_Basic",
"Unit_hipExtModuleLaunchKernel_Negative_Parameters",
@@ -227,7 +227,6 @@
"Unit_tex2DLayeredLod_Positive_ReadModeNormalizedFloat - unsigned char",
"Unit_tex2DLayeredLod_Positive_ReadModeNormalizedFloat - short",
"Unit_tex2DLayeredLod_Positive_ReadModeNormalizedFloat - unsigned short",
"Unit_hipDrvGetErrorString_Positive_Basic",
"Unit_hipLaunchKernel_Negative_Parameters",
"Unit_Assert_Positive_Basic_KernelFail",
"=== Below tests fail in external CI for PR https://github.com/ROCm-Developer-Tools/hip-tests/pull/210 ===",
@@ -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,