Skip to content

Commit 24794c4

Browse files
authored
[SYCL] Update test-e2e/Clock/clock.cpp (#20463)
1e6 requires the fp64 aspect. Switch to int.
1 parent 81d85bf commit 24794c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/test-e2e/Clock/clock.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ template <syclex::clock_scope scope> void test(sycl::queue &q) {
2121
if (idx == 0) {
2222
data[0] = syclex::clock<scope>();
2323
int sum = 0;
24-
for (int i = 0; i < 1e6; ++i)
24+
for (int i = 0; i < 1'000'000; ++i)
2525
sum += i;
2626
data[1] = syclex::clock<scope>();
2727
sum = 0;
28-
for (int i = 0; i < 1e6; ++i)
28+
for (int i = 0; i < 1'000'000; ++i)
2929
sum += i;
3030
data[2] = syclex::clock<scope>();
3131
}

0 commit comments

Comments
 (0)