File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -446,7 +446,7 @@ detail::EventImplPtr queue_impl::submit_kernel_direct_impl(
446446 // No special captures supported yet for the no-handler path
447447 assert (!KRInfo.DeviceKernelInfoPtr ()->HasSpecialCaptures );
448448
449- SubmitCommandFuncType SubmitKernelFunc =
449+ auto SubmitKernelFunc =
450450 [&](detail::CG::StorageInitHelper &CGData)
451451 -> std::pair<EventImplPtr, bool > {
452452 std::vector<detail::ArgDesc> Args;
@@ -556,6 +556,7 @@ detail::EventImplPtr queue_impl::submit_kernel_direct_impl(
556556 return submit_direct (CallerNeedsEvent, SubmitKernelFunc);
557557}
558558
559+ template <typename SubmitCommandFuncType>
559560detail::EventImplPtr
560561queue_impl::submit_direct (bool CallerNeedsEvent,
561562 SubmitCommandFuncType &SubmitCommandFunc) {
Original file line number Diff line number Diff line change @@ -951,9 +951,7 @@ class queue_impl : public std::enable_shared_from_this<queue_impl> {
951951 bool CallerNeedsEvent, const detail::code_location &CodeLoc,
952952 bool IsTopCodeLoc);
953953
954- using SubmitCommandFuncType = std::function<std::pair<EventImplPtr, bool >(
955- detail::CG::StorageInitHelper &CGData)>;
956-
954+ template <typename SubmitCommandFuncType>
957955 detail::EventImplPtr submit_direct (bool CallerNeedsEvent,
958956 SubmitCommandFuncType &SubmitCommandFunc);
959957
You can’t perform that action at this time.
0 commit comments