@@ -70,7 +70,9 @@ enum QueueOrder { Ordered, OOO };
7070// Implementation of the submission information storage.
7171struct SubmissionInfoImpl {
7272 optional<detail::SubmitPostProcessF> MPostProcessorFunc = std::nullopt ;
73+ #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
7374 std::shared_ptr<detail::queue_impl> MSecondaryQueue = nullptr ;
75+ #endif
7476 ext::oneapi::experimental::event_mode_enum MEventMode =
7577 ext::oneapi::experimental::event_mode_enum::none;
7678};
@@ -340,12 +342,11 @@ class queue_impl {
340342 // / group is being enqueued on.
341343 event submit (const detail::type_erased_cgfo_ty &CGF,
342344 const std::shared_ptr<queue_impl> &Self,
343- const std::shared_ptr<queue_impl> &SecondQueue,
345+ [[maybe_unused]] const std::shared_ptr<queue_impl> &SecondQueue,
344346 const detail::code_location &Loc, bool IsTopCodeLoc,
345347 const SubmitPostProcessF *PostProcess = nullptr ) {
346348 event ResEvent;
347349 SubmissionInfo SI{};
348- SI.SecondaryQueue () = SecondQueue;
349350 if (PostProcess)
350351 SI.PostProcessorFunc () = *PostProcess;
351352 return submit_with_event (CGF, Self, SI, Loc, IsTopCodeLoc);
@@ -364,21 +365,6 @@ class queue_impl {
364365 const std::shared_ptr<queue_impl> &Self,
365366 const SubmissionInfo &SubmitInfo,
366367 const detail::code_location &Loc, bool IsTopCodeLoc) {
367- if (SubmitInfo.SecondaryQueue ()) {
368- event ResEvent;
369- const std::shared_ptr<queue_impl> &SecondQueue =
370- SubmitInfo.SecondaryQueue ();
371- try {
372- ResEvent = submit_impl (CGF, Self, Self, SecondQueue,
373- /* CallerNeedsEvent=*/ true , Loc, IsTopCodeLoc,
374- SubmitInfo);
375- } catch (...) {
376- ResEvent = SecondQueue->submit_impl (CGF, SecondQueue, Self, SecondQueue,
377- /* CallerNeedsEvent=*/ true , Loc,
378- IsTopCodeLoc, SubmitInfo);
379- }
380- return ResEvent;
381- }
382368 event ResEvent =
383369 submit_impl (CGF, Self, Self, nullptr ,
384370 /* CallerNeedsEvent=*/ true , Loc, IsTopCodeLoc, SubmitInfo);
@@ -390,21 +376,8 @@ class queue_impl {
390376 const SubmissionInfo &SubmitInfo,
391377 const detail::code_location &Loc,
392378 bool IsTopCodeLoc) {
393- if (SubmitInfo.SecondaryQueue ()) {
394- const std::shared_ptr<queue_impl> SecondQueue =
395- SubmitInfo.SecondaryQueue ();
396- try {
397- submit_impl (CGF, Self, Self, SecondQueue,
398- /* CallerNeedsEvent=*/ false , Loc, IsTopCodeLoc, SubmitInfo);
399- } catch (...) {
400- SecondQueue->submit_impl (CGF, SecondQueue, Self, SecondQueue,
401- /* CallerNeedsEvent=*/ false , Loc, IsTopCodeLoc,
402- SubmitInfo);
403- }
404- } else {
405- submit_impl (CGF, Self, Self, nullptr , /* CallerNeedsEvent=*/ false , Loc,
406- IsTopCodeLoc, SubmitInfo);
407- }
379+ submit_impl (CGF, Self, Self, nullptr , /* CallerNeedsEvent=*/ false , Loc,
380+ IsTopCodeLoc, SubmitInfo);
408381 }
409382
410383 // / Performs a blocking wait for the completion of all enqueued tasks in the
0 commit comments