Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit ece3226

Browse files
author
Artem Gindinson
authored
[SYCL] Attempt to exclude sporadic output issues in CI for printf (#736)
Use `std::endl` after `cout` in FP-typed tests for printf to guarantee that the buffer gets flushed during LIT execution. Signed-off-by: Artem Gindinson <artem.gindinson@intel.com>
1 parent 4ee83af commit ece3226

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

SYCL/Printf/double.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ int main() {
8080
"double -0x1.b4154d8cccccdp+2, -0X1.B4154D8CCCCCDP+2\n"
8181
"mixed 0x1.91eb86p+1, -0X1.B4154D8CCCCCDP+2\n"
8282
"double -6.8138, -6.8138\n"
83-
"mixed 3.14, -6.8138\n";
83+
"mixed 3.14, -6.8138"
84+
<< std::endl;
8485
return 0;
8586
}

SYCL/Printf/float.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ int main() {
6161
"Printing hard-coded output from the host side:\n"
6262
<< "3.140000e+00, 3.140000E+00\n"
6363
"0x1.91eb86p+1, 0X1.91EB86P+1\n"
64-
"3.14, 3.14\n";
64+
"3.14, 3.14"
65+
<< std::endl;
6566
return 0;
6667
}
6768
#endif // !__SYCL_USE_NON_VARIADIC_SPIRV_OCL_PRINTF__

0 commit comments

Comments
 (0)