@@ -182,8 +182,7 @@ event queue_impl::memset(const std::shared_ptr<detail::queue_impl> &Self,
182
182
return submitMemOpHelper (
183
183
Self, DepEvents, CallerNeedsEvent,
184
184
[&](handler &CGH) { CGH.memset (Ptr, Value, Count); },
185
- [](const auto &...Args ) { MemoryManager::fill_usm (Args...); }, Ptr, Self,
186
- Count, Pattern);
185
+ MemoryManager::fill_usm, Ptr, Self, Count, Pattern);
187
186
}
188
187
189
188
void report (const code_location &CodeLoc) {
@@ -234,8 +233,7 @@ event queue_impl::memcpy(const std::shared_ptr<detail::queue_impl> &Self,
234
233
return submitMemOpHelper (
235
234
Self, DepEvents, CallerNeedsEvent,
236
235
[&](handler &CGH) { CGH.memcpy (Dest, Src, Count); },
237
- [](const auto &...Args ) { MemoryManager::copy_usm (Args...); }, Src, Self,
238
- Count, Dest);
236
+ MemoryManager::copy_usm, Src, Self, Count, Dest);
239
237
}
240
238
241
239
event queue_impl::mem_advise (const std::shared_ptr<detail::queue_impl> &Self,
@@ -246,8 +244,7 @@ event queue_impl::mem_advise(const std::shared_ptr<detail::queue_impl> &Self,
246
244
return submitMemOpHelper (
247
245
Self, DepEvents, CallerNeedsEvent,
248
246
[&](handler &CGH) { CGH.mem_advise (Ptr, Length, Advice); },
249
- [](const auto &...Args ) { MemoryManager::advise_usm (Args...); }, Ptr,
250
- Self, Length, Advice);
247
+ MemoryManager::advise_usm, Ptr, Self, Length, Advice);
251
248
}
252
249
253
250
event queue_impl::memcpyToDeviceGlobal (
@@ -260,10 +257,8 @@ event queue_impl::memcpyToDeviceGlobal(
260
257
CGH.memcpyToDeviceGlobal (DeviceGlobalPtr, Src, IsDeviceImageScope,
261
258
NumBytes, Offset);
262
259
},
263
- [](const auto &...Args ) {
264
- MemoryManager::copy_to_device_global (Args...);
265
- },
266
- DeviceGlobalPtr, IsDeviceImageScope, Self, NumBytes, Offset, Src);
260
+ MemoryManager::copy_to_device_global, DeviceGlobalPtr, IsDeviceImageScope,
261
+ Self, NumBytes, Offset, Src);
267
262
}
268
263
269
264
event queue_impl::memcpyFromDeviceGlobal (
@@ -276,10 +271,8 @@ event queue_impl::memcpyFromDeviceGlobal(
276
271
CGH.memcpyFromDeviceGlobal (Dest, DeviceGlobalPtr, IsDeviceImageScope,
277
272
NumBytes, Offset);
278
273
},
279
- [](const auto &...Args ) {
280
- MemoryManager::copy_from_device_global (Args...);
281
- },
282
- DeviceGlobalPtr, IsDeviceImageScope, Self, NumBytes, Offset, Dest);
274
+ MemoryManager::copy_from_device_global, DeviceGlobalPtr,
275
+ IsDeviceImageScope, Self, NumBytes, Offset, Dest);
283
276
}
284
277
285
278
sycl::detail::optional<event>
0 commit comments