mirror of
https://github.com/KhronosGroup/OpenCL-CTS.git
synced 2026-03-19 06:09:01 +00:00
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user