SWDEV-466622 - Added fix for Unit_hipMallocArray_happy test

Change-Id: I9b647aff69ba92f97b2ca17eac49d58ae63fa858


[ROCm/hip-tests commit: 3acc6a4020]
Cette révision appartient à :
Ioannis Assiouras a créé et Rakesh Roy a révisé 2024-07-16 14:52:51 -04:00
1 Parent 274601814c
révision a6afaec892
2 fichiers modifiés
+4 -4

Aucun fichier ne correspond à votre recherche

-2
Voir le fichier
@@ -1390,8 +1390,6 @@
"Unit_hipMallocManaged_HostDeviceConcurrent",
"Unit_hipMallocManaged_MultiThread",
"Unit_hipMemcpyAsync_H2H-H2D-D2H-H2PinMem - double",
"Unit_hipMallocArray_happy - int4",
"Unit_hipMallocArray_happy - float4",
"=== SWDEV-437982:Below test failed in stress test on 08/12/23 ===",
"Unit_hipDeviceGetPCIBusId_Functional",
"Unit_hipDrvMemcpy_Functional",
+4 -2
Voir le fichier
@@ -58,9 +58,11 @@ template <typename T> void checkDataIsAscending(const std::vector<T>& hostData)
size_t i = 0;
for (; i < hostData.size(); ++i) {
allMatch = allMatch && hostData[i] == static_cast<T>(i);
if (!allMatch) break;
if (!allMatch) {
INFO("hostData[" << i << "] == " << static_cast<T>(hostData[i]));
break;
}
}
INFO("hostData[" << i << "] == " << static_cast<T>(hostData[i]));
REQUIRE(allMatch);
}