@@ -436,27 +436,18 @@ class __SYCL_EXPORT queue : public detail::OwnerLessBase<queue> {
436
436
// / Submits a command group function object to the queue, in order to be
437
437
// / scheduled for execution on the device.
438
438
// /
439
- // / On a kernel error, this command group function object is then scheduled
440
- // / for execution on a secondary queue.
441
- // /
442
439
// / \param CGF is a function object containing command group.
443
- // / \param SecondaryQueue is a fallback SYCL queue.
440
+ // / \param SecondaryQueue is a fallback SYCL queue. (unused)
444
441
// / \param CodeLoc is the code location of the submit call (default argument)
445
442
// / \return a SYCL event object, which corresponds to the queue the command
446
443
// / group is being enqueued on.
447
444
template <typename T>
448
445
std::enable_if_t <std::is_invocable_r_v<void , T, handler &>, event> submit (
449
- T CGF, queue &SecondaryQueue,
446
+ T CGF, [[maybe_unused]] queue &SecondaryQueue,
450
447
const detail::code_location &CodeLoc = detail::code_location::current()) {
451
- try {
452
- return submit_with_event<__SYCL_USE_FALLBACK_ASSERT>(
453
- sycl::ext::oneapi::experimental::empty_properties_t {},
454
- detail::type_erased_cgfo_ty{CGF}, CodeLoc);
455
- } catch (...) {
456
- return SecondaryQueue.submit_with_event <__SYCL_USE_FALLBACK_ASSERT>(
457
- sycl::ext::oneapi::experimental::empty_properties_t {},
458
- detail::type_erased_cgfo_ty{CGF}, CodeLoc);
459
- }
448
+ return submit_with_event<__SYCL_USE_FALLBACK_ASSERT>(
449
+ sycl::ext::oneapi::experimental::empty_properties_t {},
450
+ detail::type_erased_cgfo_ty{CGF}, CodeLoc);
460
451
}
461
452
462
453
// / Prevents any commands submitted afterward to this queue from executing
0 commit comments