Command buffer wait_for_sec_queue_event subtest, call clFinish in the correct order. (#1758)

* Fix for Command buffer wait_for_sec_queue_event subtest, call clFinish in the correct order.

queue has a command that depends on a command that resides in queue_sec, calling clFinish(queue) before clFinish(queue_sec) causes the test to hang as the queue_sec command never got a chance to finish.

* Update PR change as per the suggestion.
This commit is contained in:
Ahmed
2023-09-05 17:09:04 +01:00
committed by GitHub
parent 15b54aa0bd
commit d20de8ddea

View File

@@ -603,12 +603,15 @@ struct CommandBufferEventSync : public BasicCommandBufferTest
event_ptrs[1], nullptr);
test_error(error, "clEnqueueReadBuffer failed");
error = clFinish(queue);
test_error(error, "clFinish failed");
error = clFlush(queue);
test_error(error, "clFlush failed");
error = clFinish(queue_sec);
test_error(error, "clFinish failed");
error = clFinish(queue);
test_error(error, "clFinish failed");
// verify the result - result buffer must contain initial pattern
for (size_t i = 0; i < num_elements; i++)
{