Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion sycl/include/CL/sycl/handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -774,6 +774,7 @@ class __SYCL_EXPORT handler {
// 3. The kernel is provided via an interoperability method.
// 4. The API "this_item" is used inside the kernel.
// 5. The range is already a multiple of the rounding factor.
// 6. We have an ESIMD kernel
//
// Cases 3 and 4 could be supported with extra effort.
// As an optimization for the common case it is an
Expand All @@ -793,7 +794,8 @@ class __SYCL_EXPORT handler {
(KName.find("SYCL_DISABLE_PARALLEL_FOR_RANGE_ROUNDING") !=
std::string::npos) ||
(KI::getName() == nullptr || KI::getName()[0] == '\0') ||
(KI::callsThisItem());
(KI::callsThisItem()) ||
(KI::isESIMD());

// Perform range rounding if rounding-up is enabled
// and the user-specified range is not a multiple of a "good" value.
Expand Down