From a64b9299683a8c3fd850b8db2888327865cc9e31 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Wed, 1 Mar 2023 19:02:23 +0530 Subject: [PATCH] SWDEV-382397 - Add hipStreamSynchronize() (#166) Make sure the queue is done before exit. Change-Id: I1011514211d665d3e1f0e93abcc38f08b2e3c375 [ROCm/hip-tests commit: de3e0c92b78e3adc302361d4d5c82b21a4eb2d8b] --- projects/hip-tests/catch/unit/event/Unit_hipEventElapsedTime.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/projects/hip-tests/catch/unit/event/Unit_hipEventElapsedTime.cc b/projects/hip-tests/catch/unit/event/Unit_hipEventElapsedTime.cc index a3ebad3e88..1b5f6e22e9 100644 --- a/projects/hip-tests/catch/unit/event/Unit_hipEventElapsedTime.cc +++ b/projects/hip-tests/catch/unit/event/Unit_hipEventElapsedTime.cc @@ -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)); }