Update test_event_dependencies.cpp (#2049)

In test_event_enqueue_wait_for_events_run_test:
* Decrease TEST_COUNT to 10
* Add clFinish to queues
This commit is contained in:
Aharon Abramson
2024-09-16 18:46:54 +03:00
committed by GitHub
parent bcfd8f82cd
commit a773a379d9

View File

@@ -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
@@ -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)