Skip to content

Commit

Permalink
Update test_event_dependencies.cpp
Browse files Browse the repository at this point in the history
In test_event_enqueue_wait_for_events_run_test:
* Decrease TEST_COUNT to 10
* Add clFinish to queues
  • Loading branch information
aharon-abramson committed Aug 15, 2024
1 parent b8981f5 commit 4dc683e
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test_conformance/events/test_event_dependencies.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const char *write_kernels[] = {
};

#define TEST_SIZE 10000
#define TEST_COUNT 100
#define TEST_COUNT 10
#define RANDOMIZE 1
#define DEBUG_OUT 0

Expand Down Expand Up @@ -447,6 +447,14 @@ int test_event_enqueue_wait_for_events_run_test(

test_error(error, "clEnqueueReadBuffer failed");

error = clFinish(queues[0]);
test_error(error, "clFinish(queues[0]) failed");
if (two_queues)
{
error = clFinish(queues[1]);
test_error(error, "clFinish(queues[1]) failed");
}

failed = 0;
for (i = 0; i < (int)TEST_SIZE; i++)
if (values[i] != expected_value)
Expand Down

0 comments on commit 4dc683e

Please sign in to comment.