@@ -1290,6 +1290,8 @@ class __SYCL_EXPORT handler {
12901290 std::shared_ptr<detail::kernel_bundle_impl>
12911291 getOrInsertHandlerKernelBundle (bool Insert) const ;
12921292
1293+ void setHandlerKernelBundle (kernel Kernel);
1294+
12931295 void setHandlerKernelBundle (
12941296 const std::shared_ptr<detail::kernel_bundle_impl> &NewKernelBundleImpPtr);
12951297
@@ -1918,7 +1920,7 @@ class __SYCL_EXPORT handler {
19181920 throwIfActionIsCreated ();
19191921 verifyKernelInvoc (Kernel);
19201922 // Ignore any set kernel bundles and use the one associated with the kernel
1921- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
1923+ setHandlerKernelBundle (Kernel);
19221924 // No need to check if range is out of INT_MAX limits as it's compile-time
19231925 // known constant
19241926 MNDRDesc.set (range<1 >{1 });
@@ -1991,7 +1993,7 @@ class __SYCL_EXPORT handler {
19911993 void single_task (kernel Kernel, _KERNELFUNCPARAM (KernelFunc)) {
19921994 throwIfActionIsCreated ();
19931995 // Ignore any set kernel bundles and use the one associated with the kernel
1994- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
1996+ setHandlerKernelBundle (Kernel);
19951997 using NameT =
19961998 typename detail::get_kernel_name_t <KernelName, KernelType>::name;
19971999 verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
@@ -2037,7 +2039,7 @@ class __SYCL_EXPORT handler {
20372039 _KERNELFUNCPARAM (KernelFunc)) {
20382040 throwIfActionIsCreated ();
20392041 // Ignore any set kernel bundles and use the one associated with the kernel
2040- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
2042+ setHandlerKernelBundle (Kernel);
20412043 using NameT =
20422044 typename detail::get_kernel_name_t <KernelName, KernelType>::name;
20432045 verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
@@ -2075,7 +2077,7 @@ class __SYCL_EXPORT handler {
20752077 id<Dims> WorkItemOffset, _KERNELFUNCPARAM (KernelFunc)) {
20762078 throwIfActionIsCreated ();
20772079 // Ignore any set kernel bundles and use the one associated with the kernel
2078- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
2080+ setHandlerKernelBundle (Kernel);
20792081 using NameT =
20802082 typename detail::get_kernel_name_t <KernelName, KernelType>::name;
20812083 verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
@@ -2113,7 +2115,7 @@ class __SYCL_EXPORT handler {
21132115 _KERNELFUNCPARAM (KernelFunc)) {
21142116 throwIfActionIsCreated ();
21152117 // Ignore any set kernel bundles and use the one associated with the kernel
2116- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
2118+ setHandlerKernelBundle (Kernel);
21172119 using NameT =
21182120 typename detail::get_kernel_name_t <KernelName, KernelType>::name;
21192121 verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
@@ -2155,7 +2157,7 @@ class __SYCL_EXPORT handler {
21552157 _KERNELFUNCPARAM (KernelFunc)) {
21562158 throwIfActionIsCreated ();
21572159 // Ignore any set kernel bundles and use the one associated with the kernel
2158- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
2160+ setHandlerKernelBundle (Kernel);
21592161 using NameT =
21602162 typename detail::get_kernel_name_t <KernelName, KernelType>::name;
21612163 verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
@@ -2195,7 +2197,7 @@ class __SYCL_EXPORT handler {
21952197 _KERNELFUNCPARAM (KernelFunc)) {
21962198 throwIfActionIsCreated ();
21972199 // Ignore any set kernel bundles and use the one associated with the kernel
2198- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
2200+ setHandlerKernelBundle (Kernel);
21992201 using NameT =
22002202 typename detail::get_kernel_name_t <KernelName, KernelType>::name;
22012203 verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
0 commit comments