mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
thread_dimensions: Avoid combinations of very small LWS and very large GWS (#1856)
Modify the existing condition to include extremely small LWS like 1x1 on large GWS values
This commit is contained in:
committed by
GitHub
parent
a73f2b38fb
commit
352e707836
@@ -740,11 +740,14 @@ test_thread_dimensions(cl_device_id device, cl_context context, cl_command_queue
|
||||
cl_uint total_local_size = local_x_size * local_y_size * local_z_size;
|
||||
long total_global_size = final_x_size * final_y_size * final_z_size;
|
||||
if (total_local_size < max_workgroup_size) {
|
||||
if (total_global_size > 16384*16384) {
|
||||
if (total_local_size < 64) {
|
||||
log_info("Skipping test as local_size is small and it will take a long time.\n");
|
||||
continue;
|
||||
}
|
||||
if (((total_global_size > 16384 * 16384)
|
||||
&& (total_local_size < 64))
|
||||
|| ((total_global_size > 8192 * 8192)
|
||||
&& (total_local_size < 16)))
|
||||
{
|
||||
log_info("Skipping test as local_size is small "
|
||||
"and it will take a long time.\n");
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user