Skip to content

Commit 891e02d

Browse files
committed
Fix compilation of 2 PVC tests on windows
Squashed commit of the following: commit 1ed535e Author: Garcia Orozco, David <[email protected]> Date: Wed Feb 26 09:38:39 2025 -0800 Remove linux requirement commit 3dc0433 Author: Garcia Orozco, David <[email protected]> Date: Wed Feb 26 09:36:29 2025 -0800 Fix tests compilation on windows instead of requiring linux commit 83f97a5 Author: Garcia Orozco, David <[email protected]> Date: Wed Feb 26 09:08:22 2025 -0800 Requires linux in two pvc tests that fail to build on windows
1 parent 93d5f40 commit 891e02d

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ 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() || std::isnan(value))
3030
value = esimd_test::getRandomValue<float>();
3131

3232
Input[i] = value;

0 commit comments

Comments
 (0)