Skip to content

Commit 6eccbcd

Browse files
committed
Check if properties empty
1 parent a3542db commit 6eccbcd

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

sycl/include/sycl/queue.hpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,11 +2793,12 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
27932793
// TODO The handler-less path does not support kernel
27942794
// function properties and kernel functions with the kernel_handler
27952795
// type argument yet.
2796-
if constexpr (!(ext::oneapi::experimental::detail::
2797-
HasKernelPropertiesGetMethod<
2798-
const KernelType &>::value) &&
2799-
!(detail::KernelLambdaHasKernelHandlerArgT<KernelType,
2800-
void>::value)) {
2796+
if constexpr (
2797+
std::is_same_v<PropertiesT,
2798+
ext::oneapi::experimental::empty_properties_t> &&
2799+
!(ext::oneapi::experimental::detail::HasKernelPropertiesGetMethod<
2800+
const KernelType &>::value) &&
2801+
!(detail::KernelLambdaHasKernelHandlerArgT<KernelType, void>::value)) {
28012802
return detail::submit_kernel_direct_single_task<KernelName, true>(
28022803
*this, ext::oneapi::experimental::empty_properties_t{}, KernelFunc,
28032804
TlsCodeLocCapture.query());

0 commit comments

Comments
 (0)