Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update test_event_dependencies.cpp #2049

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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]);
bashbaug marked this conversation as resolved.
Show resolved Hide resolved
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
Loading