From 86b522692c2ba93221b9f2de83fab87d12de9c71 Mon Sep 17 00:00:00 2001 From: ROCm CI Service Account <66695075+rocm-ci@users.noreply.github.com> Date: Wed, 28 Jun 2023 21:47:19 +0530 Subject: [PATCH] SWDEV-403766 - Pass exclusive flag. (#337) Change-Id: I83da5356b5874c3c4dc1f0e08d899079d5cfe385 --- catch/unit/device/hipDeviceReset.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/catch/unit/device/hipDeviceReset.cc b/catch/unit/device/hipDeviceReset.cc index b65155db6f..6136a71a2b 100644 --- a/catch/unit/device/hipDeviceReset.cc +++ b/catch/unit/device/hipDeviceReset.cc @@ -69,7 +69,7 @@ TEST_CASE("Unit_hipDeviceReset_Positive_Basic") { : hipSharedMemBankSizeFourByte); REQUIRE((shared_mem_config_ret == hipSuccess || shared_mem_config_ret == hipErrorNotSupported)); - HIP_CHECK(hipSetDeviceFlags(flags_before ^ (1u << 2))); + HIP_CHECK(hipSetDeviceFlags(hipDeviceScheduleBlockingSync)); HIP_CHECK(hipDeviceReset()); @@ -134,7 +134,7 @@ TEST_CASE("Unit_hipDeviceReset_Positive_Threaded") { REQUIRE((shared_mem_config_ret == hipSuccess || shared_mem_config_ret == hipErrorNotSupported)); - HIP_CHECK(hipSetDeviceFlags(flags_before ^ (1u << 2))); + HIP_CHECK(hipSetDeviceFlags(hipDeviceScheduleBlockingSync)); std::thread([] { HIP_CHECK_THREAD(hipSetDevice(0));