Command buffer event sync (#1606)

* Added initial commit for event sync test cases (issue #1369, p.3.3)

* Added test cases for return event scenarios with and without out-of-order, work in progress (#1369, p.3.3)

* Added support for return event test cases for both regular and out-of-order command queue (#1369, p.3.3)

* Added user event test cases, cosmetic corrections (#1369, p.3.3)

* Added correction for windows build (#1369, p.3.3)

* Corrected proper testing of test fail/skip conditions (#1369, p.3.3)

* Added corrections related to PR review (#1369, p.3.3)

* Added correction related to change of order Skip/SetUp (issue #1369, event sync)

* Added clang format correction for previous commit

* Reordered initialization of attributes.
This commit is contained in:
Marcin Hajder
2023-03-03 09:20:46 +01:00
committed by paulfradgley
parent dcfbded1d6
commit dd8d4ee975
5 changed files with 1115 additions and 81 deletions

View File

@@ -27,10 +27,40 @@ extern int test_mixed_commands(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
extern int test_explicit_flush(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
extern int test_user_events(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
extern int test_out_of_order(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
extern int test_regular_wait_for_command_buffer(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_command_buffer_wait_for_command_buffer(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_command_buffer_wait_for_sec_command_buffer(
cl_device_id device, cl_context context, cl_command_queue queue,
int num_elements);
extern int test_return_event_callback(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
extern int test_clwaitforevents_single(cl_device_id device, cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_clwaitforevents(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
extern int test_command_buffer_wait_for_regular(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_wait_for_sec_queue_event(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_user_event_wait(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
extern int test_user_events_wait(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
extern int test_user_event_callback(cl_device_id device, cl_context context,
cl_command_queue queue, int num_elements);
extern int test_simultaneous_out_of_order(cl_device_id device,
cl_context context,
cl_command_queue queue,