Skip to content

[SYCL][Test E2E] Use %{build}/%{run} in DeviceLib tests #9337

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions sycl/test-e2e/DeviceLib/ITTAnnotations/atomic.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// UNSUPPORTED: hip

// RUN: %clangxx -fsycl -fsycl-instrument-device-code %s -o %t.out \
// RUN: -fsycl-targets=%sycl_triple
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -fsycl-instrument-device-code -o %t.out
// RUN: %{run} %t.out

#include "CL/sycl.hpp"

Expand Down
7 changes: 2 additions & 5 deletions sycl/test-e2e/DeviceLib/ITTAnnotations/barrier.cpp
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
// UNSUPPORTED: hip

// RUN: %clangxx -fsycl -fsycl-instrument-device-code %s -o %t.out \
// RUN: -fsycl-targets=%sycl_triple
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -fsycl-instrument-device-code -o %t.out
// RUN: %{run} %t.out

#include "CL/sycl.hpp"
#include <vector>
Expand Down
8 changes: 3 additions & 5 deletions sycl/test-e2e/DeviceLib/assert-windows.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// Disable the test until the fix reaches SYCL test infrastructure.
// XFAIL: *
//
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %{build} -o %t.out
//
// MSVC implementation of assert does not call an unreachable built-in, so the
// program doesn't terminate when fallback is used.
Expand All @@ -13,15 +13,13 @@
// explicitly. Since the test is going to crash, we'll have to follow a similar
// approach as on Linux - call the test in a subprocess.
//
// RUN: env SYCL_PI_TRACE=1 SYCL_DEVICELIB_INHIBIT_NATIVE=1 CL_CONFIG_USE_VECTORIZER=False %CPU_RUN_PLACEHOLDER %t.out >%t.stdout.pi.fallback
// RUN: env SHOULD_CRASH=1 SYCL_DEVICELIB_INHIBIT_NATIVE=1 CL_CONFIG_USE_VECTORIZER=False %CPU_RUN_PLACEHOLDER %t.out >%t.stdout.msg.fallback
// RUN: env SYCL_PI_TRACE=1 SYCL_DEVICELIB_INHIBIT_NATIVE=1 CL_CONFIG_USE_VECTORIZER=False %{run} %t.out | FileCheck %s --check-prefix=CHECK-FALLBACK
// RUN: env SHOULD_CRASH=1 SYCL_DEVICELIB_INHIBIT_NATIVE=1 CL_CONFIG_USE_VECTORIZER=False %{run} %t.out | FileCheck %s --check-prefix=CHECK-MESSAGE
//
// RUN: FileCheck %s --check-prefix=CHECK-MESSAGE --input-file %t.stdout.msg.fallback
// CHECK-MESSAGE: {{.*}}assert-windows.cpp:{{[0-9]+}}: (null): global id:
// [{{[0-3]}},0,0], local id: [{{[0-3]}},0,0] Assertion `accessorC[wiID] == 0 &&
// "Invalid value"` failed.
//
// RUN: FileCheck %s --input-file %t.stdout.pi.fallback --check-prefix=CHECK-FALLBACK
// CHECK-FALLBACK: ---> piProgramLink

#include <array>
Expand Down
2 changes: 1 addition & 1 deletion sycl/test-e2e/DeviceLib/assert.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// REQUIRES: (cpu || cuda ) && linux
// RUN: %clangxx -DSYCL_FALLBACK_ASSERT=1 -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %{build} -DSYCL_FALLBACK_ASSERT=1 -o %t.out
// (see the other RUN lines below; it is a bit complicated)
//
// assert() call in device code guarantees nothing: on some devices it behaves
Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/ext_native_math.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-device-code-split=per_kernel %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
// RUN: %{run} %t.out

// Tests oneapi extension native tanh math function for sycl::vec and
// sycl::marray float cases.
Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/ext_native_math_fp16.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// REQUIRES: aspect-fp16
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fsycl-device-code-split=per_kernel %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
// RUN: %{run} %t.out

// OpenCL CPU driver does not support cl_khr_fp16 extension for this reason this
// test is compiled with the -fsycl-device-code-split flag
Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/fast-math-flag.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl -ffast-math -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -ffast-math -o %t.out
// RUN: %{run} %t.out

#include <cassert>
#include <sycl/sycl.hpp>
Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/ftz-flag.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}

// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -Xclang -fdenormal-fp-math-f32="preserve-sign,preserve-sign" %s -o %t.out %{mathflags}
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -Xclang -fdenormal-fp-math-f32="preserve-sign,preserve-sign" -o %t.out %{mathflags}
// RUN: %{run} %t.out

#include <cassert>
#include <sycl/sycl.hpp>
Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/marray_integer.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include <CL/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/nan.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl -fsycl-device-code-split=per_kernel -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
// RUN: %{run} %t.out

#include <iostream>
#include <sycl/sycl.hpp>
Expand Down
12 changes: 4 additions & 8 deletions sycl/test-e2e/DeviceLib/built-ins/printf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,11 @@
// HIP doesn't support printf.
// CUDA doesn't support vector format specifiers ("%v").
//
// RUN: %clangxx -fsycl -fsycl-device-code-split=per_kernel -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out %CPU_CHECK_PLACEHOLDER
// RUN: %GPU_RUN_PLACEHOLDER %t.out %GPU_CHECK_PLACEHOLDER
// RUN: %ACC_RUN_PLACEHOLDER %t.out %ACC_CHECK_PLACEHOLDER
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
// RUN: %{run} %t.out | FileCheck %s
//
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -D__SYCL_USE_NON_VARIADIC_SPIRV_OCL_PRINTF__ %s -o %t_nonvar.out
// RUN: %CPU_RUN_PLACEHOLDER %t_nonvar.out %CPU_CHECK_PLACEHOLDER
// RUN: %GPU_RUN_PLACEHOLDER %t_nonvar.out %GPU_CHECK_PLACEHOLDER
// RUN: %ACC_RUN_PLACEHOLDER %t_nonvar.out %ACC_CHECK_PLACEHOLDER
// RUN: %{build} -D__SYCL_USE_NON_VARIADIC_SPIRV_OCL_PRINTF__ -o %t_nonvar.out
// RUN: %{run} %t_nonvar.out | FileCheck %s

#include <sycl/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/scalar_common.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/scalar_geometric.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/scalar_integer.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/scalar_math.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}

// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %{mathflags} %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} %{mathflags} -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/scalar_math_2.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/scalar_relational.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl-device-code-split=per_kernel -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/vector_common.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/vector_geometric.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl-device-code-split=per_kernel -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -fsycl-device-code-split=per_kernel -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/vector_integer.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/vector_math.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>

Expand Down
6 changes: 2 additions & 4 deletions sycl/test-e2e/DeviceLib/built-ins/vector_relational.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@
// FIXME unsupported on windows (opencl and level-zero) until fix of libdevice
// UNSUPPORTED: windows && (opencl || level_zero)
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

#include <sycl/sycl.hpp>

Expand Down
8 changes: 4 additions & 4 deletions sycl/test-e2e/DeviceLib/cmath-aot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
// UNSUPPORTED: windows

// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/cmath_test.cpp -o %t.cmath.out
// RUN: %CPU_RUN_PLACEHOLDER %t.cmath.out
// RUN: %{run} %t.cmath.out

// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/cmath_fp64_test.cpp -o %t.cmath.fp64.out
// RUN: %CPU_RUN_PLACEHOLDER %t.cmath.fp64.out
// RUN: %{run} %t.cmath.fp64.out

// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/std_complex_math_test.cpp -o %t.complex.out
// RUN: %CPU_RUN_PLACEHOLDER %t.complex.out
// RUN: %{run} %t.complex.out

// RUN: %clangxx -fsycl -fsycl-targets=spir64_x86_64 %S/std_complex_math_fp64_test.cpp -o %t.complex.fp64.out
// RUN: %CPU_RUN_PLACEHOLDER %t.complex.fp64.out
// RUN: %{run} %t.complex.fp64.out
11 changes: 5 additions & 6 deletions sycl/test-e2e/DeviceLib/cmath_fp64_test.cpp
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
// REQUIRES: aspect-fp64
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// UNSUPPORTED: gpu
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

// RUN: %clangxx -fsycl -fsycl-device-lib-jit-link %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{build} -fsycl-device-lib-jit-link -o %t.out
// RUN: %{run} %t.out

#include "math_utils.hpp"
#include <cmath>
Expand Down
4 changes: 2 additions & 2 deletions sycl/test-e2e/DeviceLib/cmath_test.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}

// UNSUPPORTED: hip
// RUN: %clangxx -fsycl -fsycl-targets=%sycl_triple -fno-builtin %{mathflags} %s -o %t.out
// RUN: %{build} -fno-builtin %{mathflags} -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %{mathflags} %s -o %t.out
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link %{mathflags} -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out

Expand Down
4 changes: 2 additions & 2 deletions sycl/test-e2e/DeviceLib/complex-fpga.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// REQUIRES: opencl-aot, accelerator

// RUN: %clangxx -fsycl -fsycl-targets=spir64_fpga %S/std_complex_math_test.cpp -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{run} %t.out

// RUN: %clangxx -fsycl -fintelfpga %S/std_complex_math_test.cpp -o %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %{run} %t.out
12 changes: 4 additions & 8 deletions sycl/test-e2e/DeviceLib/imf_bfloat16_integeral_convesions.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
// RUN: %{run} %t.out
//
// UNSUPPORTED: cuda || hip

Expand Down
9 changes: 5 additions & 4 deletions sycl/test-e2e/DeviceLib/imf_double2bfloat16.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// REQUIRES: gpu
// REQUIRES: aspect-fp64
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t1.out
// RUN: %GPU_RUN_PLACEHOLDER %t1.out
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t1.out
// RUN: %{run} %t1.out
//
// UNSUPPORTED: cuda || hip

Expand Down
9 changes: 5 additions & 4 deletions sycl/test-e2e/DeviceLib/imf_double2half.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
// REQUIRES: gpu
// REQUIRES: aspect-fp64, aspect-fp16
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
// RUN: %{run} %t.out
//
// UNSUPPORTED: cuda || hip

Expand Down
12 changes: 4 additions & 8 deletions sycl/test-e2e/DeviceLib/imf_float2bfloat16.cpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,8 @@
// RUN: %clangxx -fsycl %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out

// RUN: %clangxx -fsycl -fno-builtin -fsycl-device-lib-jit-link %s -o %t.out
// RUN: %CPU_RUN_PLACEHOLDER %t.out
// RUN: %ACC_RUN_PLACEHOLDER %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %{build} -fno-builtin -fsycl-device-lib-jit-link -o %t.out
// RUN: %{run} %t.out
//
// UNSUPPORTED: cuda || hip

Expand Down
5 changes: 3 additions & 2 deletions sycl/test-e2e/DeviceLib/imf_fp16_trivial_test.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// REQUIRES: gpu
// REQUIRES: aspect-fp16
// DEFINE: %{mathflags} = %if cl_options %{/clang:-fno-fast-math%} %else %{-fno-fast-math%}
// RUN: %clangxx -fsycl %{mathflags} %s -o %t.out
// RUN: %GPU_RUN_PLACEHOLDER %t.out
// RUN: %{build} %{mathflags} -o %t.out
// RUN: %{run} %t.out

// UNSUPPORTED: cuda || hip

Expand Down
Loading