Skip to content

Commit 54bd5bc

Browse files
authored
[SYCL][E2E] Fix compilation of 2 PVC tests on windows (#17195)
We don't actually run these on windows, but if we enable `build-only` these will build.
1 parent 2b0090c commit 54bd5bc

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

sycl/test-e2e/Adapters/level_zero_sub_sub_device.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
#include <sycl/detail/core.hpp>
3333
#include <sycl/properties/all_properties.hpp>
3434
#include <sycl/usm.hpp>
35-
#include <unistd.h>
3635

3736
using namespace sycl;
3837
using namespace std::chrono;

sycl/test-e2e/ESIMD/srnd.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ bool test(queue &Q) {
2525

2626
for (int i = 0; i < N; ++i) {
2727
float value = esimd_test::getRandomValue<float>();
28-
while (fabs(value) > std::numeric_limits<half>::max() ||
29-
fabs(value) < std::numeric_limits<half>::min() || std::isnan(value))
28+
while (sycl::fabs(value) > std::numeric_limits<half>::max() ||
29+
sycl::fabs(value) < std::numeric_limits<half>::min() ||
30+
std::isnan(value))
3031
value = esimd_test::getRandomValue<float>();
3132

3233
Input[i] = value;

0 commit comments

Comments
 (0)