SWDEV-465162 - Support ignored error

Modified
TestContext::finalizeResults()

Added
HIP_CHECK_IGNORED_RETURN()
HIP_CHECK_ERRORS()

to supported ignored error such as hipErrorNotSupported.

Enable all mipmap tests in catch2 memory folder for linux.
The issues in the following tickets should be fixed.
SWDEV-465162, SWDEV-465163, SWDEV-465165, SWDEV-465166,
SWDEV-465168, SWDEV-465171, SWDEV-465172

Change-Id: I1146d6184582a7111a5af25b52f9e12c6a160e49


[ROCm/hip-tests commit: de9581efb6]
This commit is contained in:
taosang2
2024-06-11 14:09:37 -04:00
کامیت شده توسط Rakesh Roy
والد 402fffac2b
کامیت b3d203d19b
5فایلهای تغییر یافته به همراه54 افزوده شده و 41 حذف شده
@@ -1284,28 +1284,6 @@
"Unit_atomicCAS_system_Positive_Host_And_Peer_GPUs - unsigned long long",
"SWDEV-447384, SWDEV-447932: These tests fail in gfx1100, gfx1101 & gfx1102",
"Unit_hipFreeAsync_Negative_Parameters",
"Unit_hipMallocMipmappedArray_DiffSizes",
"Unit_hipMallocMipmappedArray_MultiThread",
"Unit_hipMallocMipmappedArray_happy - char",
"Unit_hipMallocMipmappedArray_happy - uint2",
"Unit_hipMallocMipmappedArray_happy - int4",
"Unit_hipMallocMipmappedArray_happy - short4",
"Unit_hipMallocMipmappedArray_happy - float",
"Unit_hipMallocMipmappedArray_Negative_ZeroWidth",
"Unit_hipMallocMipmappedArray_Negative_ZeroHeight",
"Unit_hipMallocMipmappedArray_Negative_InvalidFlags",
"Unit_hipMallocMipmappedArray_Negative_InvalidFormat",
"Unit_hipMallocMipmappedArray_Negative_BadChannelLayout",
"Unit_hipMallocMipmappedArray_Negative_8BitFloat",
"Unit_hipMallocMipmappedArray_Negative_BadChannelSize",
"Unit_hipMallocMipmappedArray_Negative_NumericLimit",
"Unit_hipMallocMipmappedArray_Negative_NumLevels",
"Unit_hipGetMipmappedArrayLevel_Negative",
"Unit_hipFreeMipmappedArrayImplicitSyncArray - char",
"Unit_hipFreeMipmappedArrayImplicitSyncArray - float",
"Unit_hipFreeMipmappedArray_Negative_DoubleFree",
"Unit_hipFreeMipmappedArrayMultiTArray - char",
"Unit_hipFreeMipmappedArrayMultiTArray - int",
"Unit_hipIpcGetMemHandle_Positive_Unique_Handles_Reused_Memory",
"SWDEV-445928: These tests fail in PSDB stress test on 09/02/2024",
"Unit_hipGraphAddNodeTypeMemset_Positive_Basic - uint8_t",
@@ -324,7 +324,8 @@ void TestContext::finalizeResults() {
INFO("HIP API Result check\n File:: "
<< i.file << "\n Line:: " << i.line << "\n API:: " << i.call
<< "\n Result:: " << i.result << "\n Result Str:: " << hipGetErrorString(i.result));
REQUIRE(((i.result == hipSuccess) || (i.result == hipErrorPeerAccessAlreadyEnabled)));
REQUIRE(((i.result == hipSuccess) || (i.result == hipErrorPeerAccessAlreadyEnabled) ||
(i.result == hipErrorNotSupported)));
REQUIRE(i.conditionsResult);
}
hasErrorOccured_.store(false); // Clear the flag