SWDEV-547526 - Add missing free calls (#531)
Co-authored-by: Vladana Stojiljkovic <Vladana.Stojiljkovic@amd.com>
Este cometimento está contido em:
1 ascendente
7450910e53
cometimento
720a5bcf9a
2 ficheiros modificados
+6
-7
Não existem ficheiros que correspondam à sua pesquisa
@@ -119,6 +119,7 @@ TEST_CASE("Unit_hipExtLaunchMultiKernelMultiDevice_Functional") {
|
||||
|
||||
for (int j = 0; j < nGpu; j++) {
|
||||
HIP_CHECK(hipStreamSynchronize(stream[j]));
|
||||
HIP_CHECK(hipStreamDestroy(stream[j]));
|
||||
|
||||
hipDeviceProp_t props;
|
||||
HIP_CHECK(hipGetDeviceProperties(&props, j));
|
||||
@@ -130,15 +131,12 @@ TEST_CASE("Unit_hipExtLaunchMultiKernelMultiDevice_Functional") {
|
||||
for (size_t i = 0; i < N; i++) {
|
||||
REQUIRE(fabs(C_h[i] - (A_h[i] * A_h[i])) < 0.00000000001);
|
||||
}
|
||||
|
||||
HIP_CHECK(hipFree(A_d[j]));
|
||||
HIP_CHECK(hipFree(C_d[j]));
|
||||
}
|
||||
|
||||
for (int i = 0; i < nGpu; i++) {
|
||||
HIP_CHECK(hipFree(A_d[i]));
|
||||
HIP_CHECK(hipFree(C_d[i]));
|
||||
HIP_CHECK(hipStreamDestroy(stream[i]));
|
||||
}
|
||||
|
||||
free(launchParamsList);
|
||||
free(A_h);
|
||||
free(C_h);
|
||||
free(launchParamsList);
|
||||
}
|
||||
Criar uma nova questão referindo esta
Bloquear um utilizador