Skip to content

Commit f28bbcd

Browse files
committed
Build to seperate files on DeviceLib e2e tests
1 parent ee7d39f commit f28bbcd

16 files changed

+66
-66
lines changed

sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
55

6-
// RUN: %{build} %{mathflags} -o %t.out
7-
// RUN: %{run} %t.out
6+
// RUN: %{build} %{mathflags} -o %t1.out
7+
// RUN: %{run} %t1.out
88

9-
// RUN: %{build} -fsycl-device-lib-jit-link %{mathflags} -o %t.out
10-
// RUN: %{run} %t.out
9+
// RUN: %{build} -fsycl-device-lib-jit-link %{mathflags} -o %t2.out
10+
// RUN: %{run} %t2.out
1111

1212
#include "math_utils.hpp"
1313
#include <cmath>

sycl/test-e2e/DeviceLib/cmath_test.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
22

3-
// RUN: %{build} -fno-builtin %{mathflags} -o %t.out
4-
// RUN: %{run} %t.out
3+
// RUN: %{build} -fno-builtin %{mathflags} -o %t1.out
4+
// RUN: %{run} %t1.out
55

6-
// RUN: %{build} -Wno-error=unused-command-line-argument -fno-builtin -fsycl-device-lib-jit-link %{mathflags} -o %t.out
7-
// RUN: %if !gpu %{ %{run} %t.out %}
6+
// RUN: %{build} -Wno-error=unused-command-line-argument -fno-builtin -fsycl-device-lib-jit-link %{mathflags} -o %t2.out
7+
// RUN: %if !gpu %{ %{run} %t2.out %}
88
//
99
// // Check that --fast-math works with cmath funcs for CUDA
10-
// RUN: %if cuda %{ %{build} -fno-builtin %{mathflags} -o %t.out -ffast-math -DSYCL_E2E_FASTMATH %}
11-
// RUN: %if cuda %{ %{run} %t.out %}
10+
// RUN: %if cuda %{ %{build} -fno-builtin %{mathflags} -o %t3.out -ffast-math -DSYCL_E2E_FASTMATH %}
11+
// RUN: %if cuda %{ %{run} %t3.out %}
1212

1313
#include "math_utils.hpp"
1414
#include <cmath>

sycl/test-e2e/DeviceLib/imf_bfloat16_integeral_convesions.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %{build} -o %t.out
2-
// RUN: %{run} %t.out
1+
// RUN: %{build} -o %t1.out
2+
// RUN: %{run} %t1.out
33

4-
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
5-
// RUN: %{run} %t.out
4+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
5+
// RUN: %{run} %t2.out
66
//
77
// UNSUPPORTED: cuda || hip
88

sycl/test-e2e/DeviceLib/imf_double2half.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
// REQUIRES: gpu
22
// REQUIRES: aspect-fp64, aspect-fp16
33

4-
// RUN: %{build} -o %t.out
5-
// RUN: %{run} %t.out
4+
// RUN: %{build} -o %t1.out
5+
// RUN: %{run} %t1.out
66

7-
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
8-
// RUN: %{run} %t.out
7+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
8+
// RUN: %{run} %t2.out
99

1010
// UNSUPPORTED: cuda, hip
1111

sycl/test-e2e/DeviceLib/imf_float2bfloat16.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %{build} -o %t.out
2-
// RUN: %{run} %t.out
1+
// RUN: %{build} -o %t1.out
2+
// RUN: %{run} %t1.out
33

4-
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
5-
// RUN: %{run} %t.out
4+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
5+
// RUN: %{run} %t2.out
66
//
77
// UNSUPPORTED: cuda || hip
88

sycl/test-e2e/DeviceLib/imf_fp32_rounding_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %{build} -o %t.out
2-
// RUN: %{run} %t.out
1+
// RUN: %{build} -o %t1.out
2+
// RUN: %{run} %t1.out
33

4-
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
5-
// RUN: %{run} %t.out
4+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
5+
// RUN: %{run} %t2.out
66
//
77
// UNSUPPORTED: cuda || hip
88

sycl/test-e2e/DeviceLib/imf_fp32_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
// RUN: %{build} -o %t.out
2-
// RUN: %{run} %t.out
1+
// RUN: %{build} -o %t1.out
2+
// RUN: %{run} %t1.out
33

4-
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
5-
// RUN: %{run} %t.out
4+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
5+
// RUN: %{run} %t2.out
66
//
77
// UNSUPPORTED: cuda || hip
88

sycl/test-e2e/DeviceLib/imf_fp64_rounding_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// REQUIRES: aspect-fp64
2-
// RUN: %{build} -o %t.out
3-
// RUN: %{run} %t.out
2+
// RUN: %{build} -o %t1.out
3+
// RUN: %{run} %t1.out
44

5-
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
6-
// RUN: %{run} %t.out
5+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
6+
// RUN: %{run} %t2.out
77
//
88
// UNSUPPORTED: cuda || hip
99

sycl/test-e2e/DeviceLib/imf_fp64_test.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// REQUIRES: aspect-fp64
2-
// RUN: %{build} -o %t.out
3-
// RUN: %{run} %t.out
2+
// RUN: %{build} -o %t1.out
3+
// RUN: %{run} %t1.out
44

5-
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
6-
// RUN: %{run} %t.out
5+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
6+
// RUN: %{run} %t2.out
77
//
88
// UNSUPPORTED: cuda || hip
99
#include "imf_utils.hpp"

sycl/test-e2e/DeviceLib/imf_fp64_test2.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// REQUIRES: aspect-fp64
2-
// RUN: %{build} -o %t.out
3-
// RUN: %{run} %t.out
2+
// RUN: %{build} -o %t1.out
3+
// RUN: %{run} %t1.out
44

5-
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
6-
// RUN: %{run} %t.out
5+
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t2.out
6+
// RUN: %{run} %t2.out
77
//
88
// UNSUPPORTED: cuda || hip
99

0 commit comments

Comments
 (0)