Skip to content

Commit 75f3b76

Browse files
committed
Merge branch 'temp_no_handler_scheduler_bypass_test' into temp_no_handler_enable_no_cgh_submit
2 parents bb7f06a + d56ed52 commit 75f3b76

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

sycl/source/detail/queue_impl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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>
559560
detail::EventImplPtr
560561
queue_impl::submit_direct(bool CallerNeedsEvent,
561562
SubmitCommandFuncType &SubmitCommandFunc) {

sycl/source/detail/queue_impl.hpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)