@@ -70,7 +70,9 @@ enum QueueOrder { Ordered, OOO };
70
70
// Implementation of the submission information storage.
71
71
struct SubmissionInfoImpl {
72
72
optional<detail::SubmitPostProcessF> MPostProcessorFunc = std::nullopt;
73
+ #ifndef __INTEL_PREVIEW_BREAKING_CHANGES
73
74
std::shared_ptr<detail::queue_impl> MSecondaryQueue = nullptr ;
75
+ #endif
74
76
ext::oneapi::experimental::event_mode_enum MEventMode =
75
77
ext::oneapi::experimental::event_mode_enum::none;
76
78
};
@@ -340,12 +342,11 @@ class queue_impl {
340
342
// / group is being enqueued on.
341
343
event submit (const detail::type_erased_cgfo_ty &CGF,
342
344
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,
344
346
const detail::code_location &Loc, bool IsTopCodeLoc,
345
347
const SubmitPostProcessF *PostProcess = nullptr ) {
346
348
event ResEvent;
347
349
SubmissionInfo SI{};
348
- SI.SecondaryQueue () = SecondQueue;
349
350
if (PostProcess)
350
351
SI.PostProcessorFunc () = *PostProcess;
351
352
return submit_with_event (CGF, Self, SI, Loc, IsTopCodeLoc);
@@ -364,21 +365,6 @@ class queue_impl {
364
365
const std::shared_ptr<queue_impl> &Self,
365
366
const SubmissionInfo &SubmitInfo,
366
367
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
- }
382
368
event ResEvent =
383
369
submit_impl (CGF, Self, Self, nullptr ,
384
370
/* CallerNeedsEvent=*/ true , Loc, IsTopCodeLoc, SubmitInfo);
@@ -390,21 +376,8 @@ class queue_impl {
390
376
const SubmissionInfo &SubmitInfo,
391
377
const detail::code_location &Loc,
392
378
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);
408
381
}
409
382
410
383
// / Performs a blocking wait for the completion of all enqueued tasks in the
0 commit comments