From 43e1397468053608134816cbcf6e8496e91cb227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Petit?= Date: Wed, 18 Aug 2021 11:11:30 +0100 Subject: [PATCH] Fix kernel source for cl_khr_suggested_local_work_size (#1300) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Use ASCII '-' instead of unicode '–' as subtration operator. Signed-off-by: Kévin Petit --- .../workgroups/test_wg_suggested_local_work_size.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test_conformance/workgroups/test_wg_suggested_local_work_size.cpp b/test_conformance/workgroups/test_wg_suggested_local_work_size.cpp index 1dc1b39c..aa02391c 100644 --- a/test_conformance/workgroups/test_wg_suggested_local_work_size.cpp +++ b/test_conformance/workgroups/test_wg_suggested_local_work_size.cpp @@ -42,9 +42,9 @@ const char* wg_scan_local_work_group_size = R"( { size_t linear_id; #if __OPENCL_VERSION__ < CL_VERSION_2_0 - linear_id = ((get_global_id(2) – get_global_offset(2)) * get_global_size(1) * get_global_size(0)) + - ((get_global_id(1) – get_global_offset(1)) * get_global_size(0)) + - (get_global_id(0) – get_global_offset(0)); + linear_id = ((get_global_id(2) - get_global_offset(2)) * get_global_size(1) * get_global_size(0)) + + ((get_global_id(1) - get_global_offset(1)) * get_global_size(0)) + + (get_global_id(0) - get_global_offset(0)); #else linear_id = get_global_linear_id(); #endif @@ -608,4 +608,4 @@ int test_work_group_suggested_local_size_3D(cl_device_id device, "global_work_offset passed\n"); return err; -} \ No newline at end of file +}