Skip to content

Commit 50350fd

Browse files
fix: Removed the condition variable check from Sysman Memory CTS (#122)
During the call to fetch the memory and the RAS states, the condition variable check has been removed. Related-To: VLCLJ-2343 Signed-off-by: Pratik Bari <[email protected]>
1 parent 16e793d commit 50350fd

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

conformance_tests/sysman/test_sysman_memory/src/test_sysman_memory.cpp

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
*
3-
* Copyright (C) 2020-2023 Intel Corporation
3+
* Copyright (C) 2020-2025 Intel Corporation
44
*
55
* SPDX-License-Identifier: MIT
66
*
@@ -19,10 +19,6 @@ namespace lzt = level_zero_tests;
1919

2020
namespace {
2121

22-
std::mutex mem_mutex;
23-
std::condition_variable condition_variable;
24-
uint32_t ready = 0;
25-
2622
#ifdef USE_ZESINIT
2723
class MemoryModuleZesTest : public lzt::ZesSysmanCtsClass {};
2824
#define MEMORY_TEST MemoryModuleZesTest
@@ -404,10 +400,6 @@ void getMemoryState(ze_device_handle_t device) {
404400
FAIL() << "No handles found: "
405401
<< _ze_result_t(ZE_RESULT_ERROR_UNSUPPORTED_FEATURE);
406402
}
407-
std::unique_lock<std::mutex> lock(mem_mutex);
408-
ready++;
409-
condition_variable.notify_all();
410-
condition_variable.wait(lock, [] { return ready == 2; });
411403
for (auto mem_handle : mem_handles) {
412404
ASSERT_NE(nullptr, mem_handle);
413405
lzt::get_mem_state(mem_handle);
@@ -422,10 +414,6 @@ void getRasState(ze_device_handle_t device) {
422414
FAIL() << "No handles found: "
423415
<< _ze_result_t(ZE_RESULT_ERROR_UNSUPPORTED_FEATURE);
424416
}
425-
std::unique_lock<std::mutex> lock(mem_mutex);
426-
ready++;
427-
condition_variable.notify_all();
428-
condition_variable.wait(lock, [] { return ready == 2; });
429417
for (auto ras_handle : ras_handles) {
430418
ASSERT_NE(nullptr, ras_handle);
431419
ze_bool_t clear = 0;

0 commit comments

Comments
 (0)