mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user