SWDEV-382397 - Add hipStreamSynchronize() (#166)

Make sure the queue is done before exit.

Change-Id: I1011514211d665d3e1f0e93abcc38f08b2e3c375

[ROCm/hip-tests commit: de3e0c92b7]
This commit is contained in:
ROCm CI Service Account
2023-03-01 19:02:23 +05:30
committed by GitHub
parent 74b04d86af
commit a64b929968
@@ -106,6 +106,7 @@ TEST_CASE("Unit_hipEventElapsedTime_NotReady_Negative") {
HIP_CHECK_ERROR(hipEventQuery(stop), hipErrorNotReady);
HIP_ASSERT(hipEventElapsedTime(&tElapsed,start,stop) == hipErrorNotReady);
HIP_CHECK(hipStreamSynchronize(nullptr));
HIP_CHECK(hipEventDestroy(start));
HIP_CHECK(hipEventDestroy(stop));
}