[SWDEV-445928] - Fix for hipDrvGetError tests
Change-Id: I19ba2084fddad7b073edc0b4e9c1b16cf7a97319
[ROCm/hip-tests commit: 615f95aa29]
This commit is contained in:
committed by
Rahul Manocha
parent
5d08eb6217
commit
f955b61fb0
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user