Fix kernel source for cl_khr_suggested_local_work_size (#1300)

Use ASCII '-' instead of unicode '–' as subtration operator.

Signed-off-by: Kévin Petit <kpet@free.fr>
This commit is contained in:
Kévin Petit
2021-08-18 11:11:30 +01:00
committed by GitHub
parent 6da9c6b68f
commit 43e1397468

View File

@@ -42,9 +42,9 @@ const char* wg_scan_local_work_group_size = R"(
{ {
size_t linear_id; size_t linear_id;
#if __OPENCL_VERSION__ < CL_VERSION_2_0 #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)) + 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(1) - get_global_offset(1)) * get_global_size(0)) +
(get_global_id(0) get_global_offset(0)); (get_global_id(0) - get_global_offset(0));
#else #else
linear_id = get_global_linear_id(); linear_id = get_global_linear_id();
#endif #endif
@@ -608,4 +608,4 @@ int test_work_group_suggested_local_size_3D(cl_device_id device,
"global_work_offset passed\n"); "global_work_offset passed\n");
return err; return err;
} }