We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31d6aa1 commit 0040fa0Copy full SHA for 0040fa0
src/comm/DeviceProperties.h
@@ -15,12 +15,9 @@ static int64_t syclMaxWorkGroupSize(
15
auto ctx = q.get_context();
16
auto dev = q.get_device();
17
18
- auto kid = ::sycl::get_kernel_id<KernelClass>();
19
- auto kbundle =
20
- ::sycl::get_kernel_bundle<::sycl::bundle_state::executable>(ctx, {kid});
21
-
22
- ::sycl::kernel k = kbundle.get_kernel(kid);
23
- return k.get_info<::sycl::info::kernel_device_specific::work_group_size>(dev);
+ return ::sycl::ext::oneapi::get_kernel_info<
+ KernelClass,
+ ::sycl::info::kernel_device_specific::work_group_size>(ctx, dev);
24
}
25
26
template <class KernelClass>
0 commit comments