Skip to content

Commit

Permalink
[SYCL] Disable execution range rounding for ESIMD kernel in runtime (#…
Browse files Browse the repository at this point in the history
…2951)

Signed-off-by: Sergey Kanaev <sergey.kanaev@intel.com>
  • Loading branch information
s-kanaev authored Dec 28, 2020
1 parent 6ff0261 commit 5500262
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sycl/include/CL/sycl/handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,9 @@ class __SYCL_EXPORT handler {
using NameT =
typename detail::get_kernel_name_t<KernelName, KernelType>::name;

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

0 comments on commit 5500262

Please sign in to comment.