Skip to content

Commit d38e68a

Browse files
authored
fix synch issue in (#310)
GivenExistingDebuggerExitsWithoutDetachingWhenDebuggingApplicationThenNewDebuggerCanVerifyEvents Signed-off-by: Brandon Yates <[email protected]>
1 parent 4e52e87 commit d38e68a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conformance_tests/tools/debug/src/child_debugger.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ int main(int argc, char **argv) {
163163
device_thread.eu = UINT32_MAX;
164164
device_thread.thread = UINT32_MAX;
165165

166+
synchro0.wait_for_application_signal();
166167
LOG_INFO << "[Child Debugger] Sleeping to wait for device threads";
167168
std::this_thread::sleep_for(std::chrono::seconds(6));
168169

@@ -180,7 +181,6 @@ int main(int argc, char **argv) {
180181
LOG_DEBUG << "[Child Debugger] Writing to memory";
181182
zet_debug_memory_space_desc_t memory_space_desc = {};
182183
uint64_t gpu_buffer_va = 0;
183-
synchro0.wait_for_application_signal();
184184
if (!synchro0.get_app_gpu_buffer_address(gpu_buffer_va)) {
185185
LOG_DEBUG << "[Child Debugger] Could not get a valid GPU buffer VA";
186186
exit(1);

0 commit comments

Comments
 (0)