@@ -1290,6 +1290,8 @@ class __SYCL_EXPORT handler {
1290
1290
std::shared_ptr<detail::kernel_bundle_impl>
1291
1291
getOrInsertHandlerKernelBundle (bool Insert) const ;
1292
1292
1293
+ void setHandlerKernelBundle (kernel Kernel);
1294
+
1293
1295
void setHandlerKernelBundle (
1294
1296
const std::shared_ptr<detail::kernel_bundle_impl> &NewKernelBundleImpPtr);
1295
1297
@@ -1918,7 +1920,7 @@ class __SYCL_EXPORT handler {
1918
1920
throwIfActionIsCreated ();
1919
1921
verifyKernelInvoc (Kernel);
1920
1922
// Ignore any set kernel bundles and use the one associated with the kernel
1921
- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
1923
+ setHandlerKernelBundle (Kernel);
1922
1924
// No need to check if range is out of INT_MAX limits as it's compile-time
1923
1925
// known constant
1924
1926
MNDRDesc.set (range<1 >{1 });
@@ -1991,7 +1993,7 @@ class __SYCL_EXPORT handler {
1991
1993
void single_task (kernel Kernel, _KERNELFUNCPARAM (KernelFunc)) {
1992
1994
throwIfActionIsCreated ();
1993
1995
// Ignore any set kernel bundles and use the one associated with the kernel
1994
- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
1996
+ setHandlerKernelBundle (Kernel);
1995
1997
using NameT =
1996
1998
typename detail::get_kernel_name_t <KernelName, KernelType>::name;
1997
1999
verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
@@ -2037,7 +2039,7 @@ class __SYCL_EXPORT handler {
2037
2039
_KERNELFUNCPARAM (KernelFunc)) {
2038
2040
throwIfActionIsCreated ();
2039
2041
// Ignore any set kernel bundles and use the one associated with the kernel
2040
- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
2042
+ setHandlerKernelBundle (Kernel);
2041
2043
using NameT =
2042
2044
typename detail::get_kernel_name_t <KernelName, KernelType>::name;
2043
2045
verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
@@ -2075,7 +2077,7 @@ class __SYCL_EXPORT handler {
2075
2077
id<Dims> WorkItemOffset, _KERNELFUNCPARAM (KernelFunc)) {
2076
2078
throwIfActionIsCreated ();
2077
2079
// Ignore any set kernel bundles and use the one associated with the kernel
2078
- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
2080
+ setHandlerKernelBundle (Kernel);
2079
2081
using NameT =
2080
2082
typename detail::get_kernel_name_t <KernelName, KernelType>::name;
2081
2083
verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
@@ -2113,7 +2115,7 @@ class __SYCL_EXPORT handler {
2113
2115
_KERNELFUNCPARAM (KernelFunc)) {
2114
2116
throwIfActionIsCreated ();
2115
2117
// Ignore any set kernel bundles and use the one associated with the kernel
2116
- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
2118
+ setHandlerKernelBundle (Kernel);
2117
2119
using NameT =
2118
2120
typename detail::get_kernel_name_t <KernelName, KernelType>::name;
2119
2121
verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
@@ -2155,7 +2157,7 @@ class __SYCL_EXPORT handler {
2155
2157
_KERNELFUNCPARAM (KernelFunc)) {
2156
2158
throwIfActionIsCreated ();
2157
2159
// Ignore any set kernel bundles and use the one associated with the kernel
2158
- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
2160
+ setHandlerKernelBundle (Kernel);
2159
2161
using NameT =
2160
2162
typename detail::get_kernel_name_t <KernelName, KernelType>::name;
2161
2163
verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
@@ -2195,7 +2197,7 @@ class __SYCL_EXPORT handler {
2195
2197
_KERNELFUNCPARAM (KernelFunc)) {
2196
2198
throwIfActionIsCreated ();
2197
2199
// Ignore any set kernel bundles and use the one associated with the kernel
2198
- setHandlerKernelBundle (detail::getSyclObjImpl ( Kernel. get_kernel_bundle ()) );
2200
+ setHandlerKernelBundle (Kernel);
2199
2201
using NameT =
2200
2202
typename detail::get_kernel_name_t <KernelName, KernelType>::name;
2201
2203
verifyUsedKernelBundle (detail::KernelInfo<NameT>::getName ());
0 commit comments