Skip to content
Closed
Changes from all commits
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
6 changes: 4 additions & 2 deletions sycl/include/sycl/handler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,9 @@ class __SYCL_EXPORT handler {

constexpr bool UsesRootSync = PropertiesT::template has_property<
sycl::ext::oneapi::experimental::use_root_sync_key>();
setKernelIsCooperative(UsesRootSync);
if (UsesRootSync) {
setKernelIsCooperative(UsesRootSync);
}
if constexpr (PropertiesT::template has_property<
sycl::ext::oneapi::experimental::
work_group_progress_key>()) {
Expand Down Expand Up @@ -1618,7 +1620,7 @@ class __SYCL_EXPORT handler {
#ifndef __SYCL_DEVICE_ONLY__
// If there are properties provided by get method then process them.
if constexpr (ext::oneapi::experimental::detail::
HasKernelPropertiesGetMethod<const KernelType &>::value) {
HasKernelPropertiesGetMethod<KernelType>::value) {
processProperties<detail::isKernelESIMD<KernelName>()>(
KernelFunc.get(ext::oneapi::experimental::properties_tag{}));
}
Expand Down
Loading