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

Commit 991d47b

Browse files
authored
[SYCL] Fix test compilation on windows (#84)
The impacted tests use functions defined in <algorithm>. The header is not included implicitely on the latest MS VC compiler causing compilation error. The tests are updated with explicit include of missing headers.
1 parent 52a7a23 commit 991d47b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

SYCL/Config/allowlist.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
// RUN: env TEST_INCORRECT_VALUE=1 env SYCL_DEVICE_ALLOWLIST="IncorrectKey:{{.*}}" %t.out
1212

1313
#include <CL/sycl.hpp>
14+
#include <algorithm>
1415
#include <cstdlib>
1516
#include <exception>
1617
#include <iostream>

SYCL/SubGroup/generic-shuffle.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414

1515
#include "helper.hpp"
1616
#include <CL/sycl.hpp>
17+
#include <algorithm>
1718
#include <complex>
19+
#include <vector>
1820
template <typename T> class pointer_kernel;
1921

2022
using namespace cl::sycl;

0 commit comments

Comments
 (0)