Skip to content

Commit

Permalink
Added semaphore test to cover out-of-order operations synchronized wi…
Browse files Browse the repository at this point in the history
…th barrier
  • Loading branch information
shajder committed Sep 3, 2024
1 parent 0a00a1f commit 92a9fcb
Show file tree
Hide file tree
Showing 5 changed files with 831 additions and 628 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ set(${MODULE_NAME}_SOURCES
test_semaphores_negative_getinfo.cpp
test_semaphores_negative_wait.cpp
test_semaphores_negative_create.cpp
test_semaphores_cross_queue.cpp
semaphore_base.h
)

Expand Down
2 changes: 2 additions & 0 deletions test_conformance/extensions/cl_khr_semaphore/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ test_definition test_list[] = {
ADD_TEST_VERSION(semaphores_multi_wait, Version(1, 2)),
ADD_TEST_VERSION(semaphores_queries, Version(1, 2)),
ADD_TEST_VERSION(semaphores_import_export_fd, Version(1, 2)),
ADD_TEST_VERSION(semaphores_ooo_ops_single_queue, Version(1, 2)),
ADD_TEST_VERSION(semaphores_ooo_ops_cross_queue, Version(1, 2)),
ADD_TEST_VERSION(semaphores_negative_create_invalid_context, Version(1, 2)),
ADD_TEST_VERSION(semaphores_negative_create_invalid_property,
Version(1, 2)),
Expand Down
8 changes: 8 additions & 0 deletions test_conformance/extensions/cl_khr_semaphore/procs.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,11 @@ extern int test_semaphores_negative_retain(cl_device_id device,
cl_context context,
cl_command_queue queue,
int num_elements);
extern int test_semaphores_ooo_ops_single_queue(cl_device_id deviceID,
cl_context context,
cl_command_queue defaultQueue,
int num_elements);
extern int test_semaphores_ooo_ops_cross_queue(cl_device_id deviceID,
cl_context context,
cl_command_queue defaultQueue,
int num_elements);
Loading

0 comments on commit 92a9fcb

Please sign in to comment.