SWDEV-487988 - Destroy event and free memory.

Change-Id: I95ceaac5b343132c0660de0dabba548fb6a29034


[ROCm/hip-tests commit: 80144befea]
Этот коммит содержится в:
Jaydeep Patel authored and Jaydeepkumar Patel committed 2024-12-04 10:07:59 -05:00
1 родитель bb285f0d43
Коммит 1540f7db7f
2 files changed
+7 -2

No files matched your search

+4 -2
Просмотреть файл
@@ -116,11 +116,13 @@ TEST_CASE("Unit_hipEventIpc") {
#endif
HIP_CHECK(hipEventDestroy(start));
HIP_CHECK(hipEventDestroy(stop));
#if HT_AMD
HIP_CHECK(hipEventDestroy(ipc_event));
#endif
HIP_CHECK(hipMemcpy(C_h, C_d, Nbytes, hipMemcpyDeviceToHost));
HipTest::checkVectorADD(A_h, B_h, C_h, N, true);
HipTest::freeArrays(A_d, B_d, C_d, A_h, B_h, C_h, false);
}
/**
+3
Просмотреть файл
@@ -170,6 +170,9 @@ void thread_run(const int iThread) {
} else {
fprintf(stderr, "[%d] PASSED\n", iThread);
}
HIP_CHECK(hipEventDestroy(start));
HIP_CHECK(hipEventDestroy(stop));
// free the resources on device side
HIP_CHECK(hipFree(gpuMatrix));
HIP_CHECK(hipFree(gpuTransposeMatrix));