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

Commit 992d94b

Browse files
author
Artem Gindinson
committed
Make early return for var. argument promotion conditional
Signed-off-by: Artem Gindinson <[email protected]>
1 parent f859d8c commit 992d94b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

SYCL/Printf/float.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,14 @@ int main() {
5656
queue q;
5757

5858
#ifndef __SYCL_USE_NON_VARIADIC_SPIRV_OCL_PRINTF__
59-
if (!q.get_device().has(aspect::fp64))
59+
if (!q.get_device().has(aspect::fp64)) {
6060
std::cout << "Skipping the actual test due to variadic argument promotion. "
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"
6464
"3.14, 3.14\n";
65-
return 0;
65+
return 0;
66+
}
6667
#endif // !__SYCL_USE_NON_VARIADIC_SPIRV_OCL_PRINTF__
6768
q.submit([](handler &cgh) {
6869
cgh.single_task<FloatTest>([]() { do_float_test(); });

0 commit comments

Comments
 (0)