SWDEV-487632,SWDEV-487634 - Fixed memleak in Unit_hipDrvMemcpy_Functional
Change-Id: If515c0f31acb5ca071f575458ef9eb06c5786df2
Tá an tiomantas seo le fáil i:
1 tuismitheoir
950bedf14f
tiomantas
e248f1072a
1 comhad athraithe
+6
@@ -54,7 +54,13 @@ TEST_CASE("Unit_hipDrvMemcpy_Functional") {
|
||||
HIP_CHECK(hipStreamSynchronize(stream));
|
||||
HIP_CHECK(hipMemcpyDtoHAsync(Bh, Bd, SIZE, stream));
|
||||
HIP_CHECK(hipStreamSynchronize(stream));
|
||||
HIP_CHECK(hipStreamDestroy(stream));
|
||||
HIP_CHECK(hipFree(Ad));
|
||||
HIP_CHECK(hipFree(Bd));
|
||||
|
||||
REQUIRE(Ah[10] == Bh[10]);
|
||||
HIP_CHECK(hipFreeHost(Ah));
|
||||
HIP_CHECK(hipFreeHost(Bh));
|
||||
delete[] A;
|
||||
delete[] B;
|
||||
}
|
||||
Tagairt in Eagrán Nua
Cuir bac ar úsáideoir