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