Skip to content

Commit 5500262

Browse files
authored
[SYCL] Disable execution range rounding for ESIMD kernel in runtime (#2951)
Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
1 parent 6ff0261 commit 5500262

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sycl/include/CL/sycl/handler.hpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,9 @@ class __SYCL_EXPORT handler {
763763
using NameT =
764764
typename detail::get_kernel_name_t<KernelName, KernelType>::name;
765765

766+
// FIXME Remove this ifndef once rounding of execution range works well with
767+
// ESIMD compilation flow.
768+
#ifndef __SYCL_EXPLICIT_SIMD__
766769
// The work group size preferred by this device.
767770
// A reasonable choice for rounding up the range is 32.
768771
constexpr size_t GoodLocalSizeX = 32;
@@ -827,7 +830,9 @@ class __SYCL_EXPORT handler {
827830
std::move(Wrapper));
828831
MCGType = detail::CG::KERNEL;
829832
#endif
830-
} else {
833+
} else
834+
#endif // __SYCL_EXPLICIT_SIMD__
835+
{
831836
#ifdef __SYCL_DEVICE_ONLY__
832837
(void)NumWorkItems;
833838
kernel_parallel_for<NameT, TransformedArgType>(KernelFunc);

0 commit comments

Comments
 (0)