Skip to content

Commit 22c8d2f

Browse files
[SYCL][E2E] Change temporary file names in DeviceImageDependencies/dynamic_compress test (#18939)
Temporary files created by dynamic_compress test have the same name as `DeviceImageDependencies/dynamic` test and there can be a race when these two tests are run in parallel. For example: https://github.com/intel/llvm/actions/runs/15594939371/job/43923025923?pr=18828 This PR just changes the name of temporary files
1 parent 06bf237 commit 22c8d2f

File tree

1 file changed

+21
-9
lines changed

1 file changed

+21
-9
lines changed

sycl/test-e2e/DeviceImageDependencies/dynamic_compress.cpp

Lines changed: 21 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,29 @@
99
// DEFINE: %{dynamic_lib_options} = -fsycl %fPIC %shared_lib -fsycl-allow-device-image-dependencies -I %S/Inputs %if windows %{-DMAKE_DLL %}
1010
// DEFINE: %{dynamic_lib_suffix} = %if windows %{dll%} %else %{so%}
1111

12-
// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/d.cpp -o %T/libdevice_d.%{dynamic_lib_suffix}
13-
// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/c.cpp %if windows %{%T/libdevice_d.lib%} -o %T/libdevice_c.%{dynamic_lib_suffix}
14-
// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/b.cpp %if windows %{%T/libdevice_c.lib%} -o %T/libdevice_b.%{dynamic_lib_suffix}
15-
// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/a.cpp %if windows %{%T/libdevice_b.lib%} -o %T/libdevice_a.%{dynamic_lib_suffix}
12+
// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/d.cpp \
13+
// RUN: -o %T/libdevicecompress_d.%{dynamic_lib_suffix}
14+
15+
// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/c.cpp \
16+
// RUN: %if windows %{%T/libdevicecompress_d.lib%} \
17+
// RUN: -o %T/libdevicecompress_c.%{dynamic_lib_suffix}
18+
19+
// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/b.cpp \
20+
// RUN: %if windows %{%T/libdevicecompress_c.lib%} \
21+
// RUN: -o %T/libdevicecompress_b.%{dynamic_lib_suffix}
22+
23+
// RUN: %clangxx %{dynamic_lib_options} %S/Inputs/a.cpp \
24+
// RUN: %if windows %{%T/libdevicecompress_b.lib%} \
25+
// RUN: -o %T/libdevicecompress_a.%{dynamic_lib_suffix}
1626

1727
// Compressed main executable, while dependencies are not compressed.
1828

19-
// RUN: %clangxx -fsycl --offload-compress %{sycl_target_opts} -fsycl-allow-device-image-dependencies -fsycl-device-code-split=per_kernel %S/Inputs/basic.cpp -o %t.out \
20-
// RUN: %if windows \
21-
// RUN: %{%T/libdevice_a.lib%} \
22-
// RUN: %else \
23-
// RUN: %{-L%T -ldevice_a -ldevice_b -ldevice_c -ldevice_d -Wl,-rpath=%T%}
29+
// RUN: %clangxx -fsycl --offload-compress %{sycl_target_opts} \
30+
// RUN: -fsycl-allow-device-image-dependencies -fsycl-device-code-split=per_kernel \
31+
// RUN: %S/Inputs/basic.cpp -o %t.out \
32+
// RUN: %if windows \
33+
// RUN: %{%T/libdevicecompress_a.lib%} \
34+
// RUN: %else \
35+
// RUN: %{-L%T -ldevicecompress_a -ldevicecompress_b -ldevicecompress_c -ldevicecompress_d -Wl,-rpath=%T%}
2436

2537
// RUN: %{run} %t.out

0 commit comments

Comments
 (0)