Skip to content

Commit 9402bd3

Browse files
[SYCL][E2E] Fix threadling lib linking in tests on Windows (#15578)
This commit fixes the use of -lpthread to the %threads_lib macro to allow testing on Windows. Signed-off-by: Larsen, Steffen <[email protected]>
1 parent b2f6326 commit 9402bd3

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// REQUIRES: gpu, linux
1+
// REQUIRES: gpu
22

3-
// RUN: %clangxx -Wno-error=vla-cxx-extension -fsycl -fsycl-targets=%{sycl_triple} %S/Inputs/FindPrimesSYCL.cpp %S/Inputs/main.cpp -o %t.out -lpthread
3+
// RUN: %clangxx -Wno-error=vla-cxx-extension -fsycl -fsycl-targets=%{sycl_triple} %S/Inputs/FindPrimesSYCL.cpp %S/Inputs/main.cpp -o %t.out %threads_lib
44
// RUN: %{run} %t.out

sycl/test-e2e/Scheduler/CommandCleanupThreadSafety.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
// UNSUPPORTED: windows
2-
// RUN: %{build} -o %t.out -lpthread
1+
// RUN: %{build} -o %t.out %threads_lib
32
// RUN: %{run} %t.out
43

54
#include <sycl/detail/core.hpp>

sycl/test-e2e/syclcompat/device/device_threaded.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,7 @@
2929
//
3030
//===----------------------------------------------------------------------===//
3131

32-
// REQUIRES: linux
33-
34-
// RUN: %{build} -lpthread -o %t.out
32+
// RUN: %{build} %threads_lib -o %t.out
3533
// RUN: %{run} %t.out
3634

3735
#include <syclcompat/device.hpp>

0 commit comments

Comments
 (0)