Skip to content

Commit 6a32706

Browse files
[SYCL] fflush(stderr) to deliver assert message before abort'ing (#6227)
1 parent c9cdf25 commit 6a32706

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

sycl/include/CL/sycl/queue.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,6 +1201,7 @@ event submitAssertCapture(queue &Self, event &Event, queue *SecondaryQueue,
12011201
"Assertion `%s` failed.\n",
12021202
File, AH->Line, Func, AH->GID0, AH->GID1, AH->GID2, AH->LID0,
12031203
AH->LID1, AH->LID2, Expr);
1204+
fflush(stderr);
12041205
abort(); // no need to release memory as it's abort anyway
12051206
}
12061207
});

0 commit comments

Comments
 (0)