Skip to content

Commit 18081b9

Browse files
[SYCL] quick fix for no_duplicate_devices (#15337)
quick fix for no_duplicate_devices that also works around the extra logging being performed by URLZ The problem is that URLZA added unguarded debug statements. So every run of any sycl app outputs ```ZE_LOADER_DEBUG_TRACE:Using Loader Library Path: ZE_LOADER_DEBUG_TRACE:Tracing Layer Library Path: libze_tracing_layer.so.1``` when running on stderr, even without setting DEBUG_TRACE. This test failed because it uses `&>` to pipe both stderr and stdout to the FileCheck, which then chokes on the unexpected output. This PR fixes this test by using just `>`. The change to URLZA to NOT constantly output is under review, IIRC.
1 parent c2af484 commit 18081b9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

sycl/test-e2e/OneapiDeviceSelector/no_duplicate_devices.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
11
// REQUIRES: opencl, cpu
22
// RUN: %{build} -o %t.out
3-
// RUN: env ONEAPI_DEVICE_SELECTOR="opencl:*" %{run-unfiltered-devices} %t.out 1 &> tmp.txt
3+
// RUN: env ONEAPI_DEVICE_SELECTOR="opencl:*" %{run-unfiltered-devices} %t.out 1 > tmp.txt
44
// RUN: cat tmp.txt | env ONEAPI_DEVICE_SELECTOR="opencl:*,cpu" %{run-unfiltered-devices} %t.out
55
// RUN: cat tmp.txt | env ONEAPI_DEVICE_SELECTOR="opencl:cpu,cpu" %{run-unfiltered-devices} %t.out
66

7-
// https://github.com/intel/llvm/issues/15288
8-
// XFAIL: linux && gpu-intel-gen12
9-
107
// on the first run we pass a dummy arg to the app. On seeing that, we count the
118
// number of CPU devices and output it. That is piped to a file. On subsequent
129
// runs we cat the file and pipe that to app. The app then compares the number

0 commit comments

Comments
 (0)