SWDEV-487992 - Free memory.

Change-Id: Ic4c7448d7e537953bcebc73210647f52de53b0ee


[ROCm/hip-tests commit: 0422d78c1b]
This commit is contained in:
Jaydeep Patel
2024-10-05 17:13:07 +00:00
committed by Rakesh Roy
parent 0c255ac97f
commit 72534cd356
2 changed files with 3 additions and 0 deletions
@@ -88,6 +88,7 @@ void test(size_t N) {
HIP_CHECK(hipMemcpy(C_h, C_d, Nbytes, hipMemcpyDeviceToHost));
HIP_CHECK(hipDeviceSynchronize());
HipTest::checkVectorADD(A_h, B_h, C_h, N);
HipTest::freeArrays(A_d, B_d, C_d, A_h, B_h, C_h, false);
}
/**
@@ -58,6 +58,7 @@ int test_gl2(size_t N) {
HIP_CHECK(hipDeviceSynchronize());
// verify
HipTest::checkVectorADD(A_h, B_h, C_h, N);
HipTest::freeArrays(A_d, B_d, C_d, A_h, B_h, C_h, false);
return 0;
}
@@ -77,6 +78,7 @@ int test_triple_chevron(size_t N) {
HIP_CHECK(hipDeviceSynchronize());
// verify
HipTest::checkVectorADD(A_h, B_h, C_h, N);
HipTest::freeArrays(A_d, B_d, C_d, A_h, B_h, C_h, false);
return 0;
}
#endif