This repository was archived by the owner on Mar 28, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -61,12 +61,17 @@ int main() {
61
61
// The execution of the fused kennel does not depend on any events.
62
62
assert (complete.get_wait_list ().size () == 0 );
63
63
64
+ // Need to wait for the event 'kernel1' here, as it is the event associated
65
+ // with the placeholder, which depends on 'complete', but is a separate event.
66
+ kernel1.wait ();
64
67
assert (isEventComplete (kernel1) && " Event should be complete" );
65
68
// The event returned for submissions while in fusion mode depends on three
66
69
// events, for the two original kernels (which do not execute) and the fused
67
70
// kernel to be executed.
68
71
assert (kernel1.get_wait_list ().size () == 3 );
69
72
73
+ // 'kernel2' is the same event (associated with the placeholder) as 'kernel1',
74
+ // so no need to wait again.
70
75
assert (isEventComplete (kernel2) && " Event should be complete" );
71
76
// The event returned for submissions while in fusion mode depends on three
72
77
// events, for the two original kernels (which do not execute) and the fused
Original file line number Diff line number Diff line change @@ -61,8 +61,13 @@ int main() {
61
61
complete.wait ();
62
62
assert (isEventComplete (complete) && " Event should be complete" );
63
63
64
+ // Need to wait for the event 'kernel1' here, as it is the event associated
65
+ // with the placeholder, which depends on 'complete', but is a separate event.
66
+ kernel1.wait ();
64
67
assert (isEventComplete (kernel1) && " Event should be complete" );
65
68
69
+ // 'kernel2' is the same event (associated with the placeholder) as 'kernel1',
70
+ // so no need to wait again.
66
71
assert (isEventComplete (kernel2) && " Event should be complete" );
67
72
68
73
// Check the results
You can’t perform that action at this time.
0 commit comments