Skip to content

Commit 371ef5e

Browse files
authored
[SYCL][E2E] Use %threads_lib expansion instead of custom expansion in Graph test (#15370)
Removes custom expansion only used in this test, in favor of using %threads_lib. The custom expansion used `-pthread` explicitly, which produced an unknown argument warning when running using the clang-cl driver.
1 parent 99d4cc1 commit 371ef5e

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

sycl/test-e2e/Graph/Threading/submit.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %{build_pthread_inc} -o %t.out
1+
// RUN: %{build} %threads_lib -o %t.out
22
// RUN: %{run} %t.out
33
// RUN: %if level_zero %{env SYCL_PI_LEVEL_ZERO_USE_IMMEDIATE_COMMANDLISTS=0 %{l0_leak_check} %{run} %t.out 2>&1 | FileCheck %s --implicit-check-not=LEAK %}
44
// Extra run to check for immediate-command-list in Level Zero

sycl/test-e2e/format.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -186,11 +186,6 @@ def execute(self, test, litConfig):
186186
else:
187187
substitutions.append(("%{l0_leak_check}", "env UR_L0_LEAKS_DEBUG=1"))
188188

189-
compilation_cmd_pthread = (
190-
"%clangxx -pthread -fsycl -fsycl-targets=%{sycl_triple} %s"
191-
)
192-
substitutions.append(("%{build_pthread_inc}", compilation_cmd_pthread))
193-
194189
def get_extra_env(sycl_devices):
195190
# Note: It's possible that the system has a device from below but
196191
# current llvm-lit invocation isn't configured to include it. We

0 commit comments

Comments
 (0)