Skip to content

Commit

Permalink
Increase the number of work items used by the allocations test (#1852)
Browse files Browse the repository at this point in the history
* Increase the number of work items used by the allocations test

The test uses a fixed number of work items to process very large
buffers and images. As devices support more and more memory, this
leads to an ever-increasing amount of work done in each work item.
This results in some implementations and devices hitting timeout
issues.

Furthermore, a greater number of work items can provide performance
benefits on some devices.

Long term, this test should be redesigned to scale the number
of threads dynamically as a function of the max allocation size.

Signed-off-by: Kevin Petit <[email protected]>

* formatting and add parentheses

---------

Signed-off-by: Kevin Petit <[email protected]>
  • Loading branch information
kpet authored Dec 5, 2023
1 parent f5bd92b commit 0fa6f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test_conformance/allocations/allocation_execute.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ int check_image(cl_command_queue queue, cl_mem mem) {
}


#define NUM_OF_WORK_ITEMS 8192*2
#define NUM_OF_WORK_ITEMS (8192 * 32)

int execute_kernel(cl_context context, cl_command_queue *queue, cl_device_id device_id, int test, cl_mem mems[], int number_of_mems_used, int verify_checksum) {

Expand Down

0 comments on commit 0fa6f23

Please sign in to comment.