From 352e707836e9566bcf04e7a1e034bd13c9f2c188 Mon Sep 17 00:00:00 2001 From: Sreelakshmi Haridas Maruthur Date: Tue, 12 Dec 2023 10:35:18 -0700 Subject: [PATCH] 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 --- .../thread_dimensions/test_thread_dimensions.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/test_conformance/thread_dimensions/test_thread_dimensions.cpp b/test_conformance/thread_dimensions/test_thread_dimensions.cpp index c8d22c66..fa8e2847 100644 --- a/test_conformance/thread_dimensions/test_thread_dimensions.cpp +++ b/test_conformance/thread_dimensions/test_thread_dimensions.cpp @@ -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; } }