Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SYCL] Disable execution range rounding for ESIMD kernel in runtime #2951

Merged
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
romanovvlad marked this conversation as resolved.
Show resolved Hide resolved
//
// 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