Skip to content

Commit aa39e4d

Browse files
committed
[SYCL][E2E] Expand fp64 emulation testing
Updated the test to cover more HW so that there is a less change that we will simply skip it.
1 parent c6ce623 commit aa39e4d

File tree

2 files changed

+19
-5
lines changed

2 files changed

+19
-5
lines changed

sycl/test-e2e/OptionalKernelFeatures/fp64-conv-emu-1.cpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,15 @@
1-
// REQUIRES: ocloc, gpu, linux, arch-intel_gpu_dg2_g10
1+
// We require a certain HW here, because we specifically want to exercise AOT
2+
// compilation and not JIT fallback. However, to make this test run in more
3+
// environments (and therefore cover more scenarios), the list of HW is bigger
4+
// than just a single target.
5+
//
6+
// REQUIRES: arch-intel_gpu_dg2_g10 || arch-intel_gpu_dg2_g11 || arch-intel_gpu_dg2_g12 || arch-intel_gpu_pvc || arch-intel_gpu_mtl_h || arch-intel_gpu_mtl_u
7+
//
28
// UNSUPPORTED: cuda, hip
39
// UNSUPPORTED-REASON: FP64 emulation is an Intel specific feature.
410

5-
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_dg2_g10 -fsycl-fp64-conv-emu -O0 %s -o %t_opt.out
6-
// RUN: %{run} %t_opt.out
11+
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_dg2_g10,intel_gpu_dg2_g11,intel_gpu_dg2_g12,intel_gpu_pvc,intel_gpu_mtl_h,intel_gpu_mtl_u -fsycl-fp64-conv-emu -O0 %s -o %t.out
12+
// RUN: %{run} %t.out
713

814
// Tests that aspect::fp64 is not emitted correctly when -fsycl-fp64-conv-emu
915
// flag is used.

sycl/test-e2e/OptionalKernelFeatures/fp64-conv-emu-2.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
// REQUIRES: ocloc, linux, arch-intel_gpu_dg2_g10
1+
// REQUIRES: ocloc
2+
//
3+
// We require a certain HW here, because we specifically want to exercise AOT
4+
// compilation and not JIT fallback. However, to make this test run in more
5+
// environments (and therefore cover more scenarios), the list of HW is bigger
6+
// than just a single target.
7+
//
8+
// REQUIRES: arch-intel_gpu_dg2_g10 || arch-intel_gpu_dg2_g11 || arch-intel_gpu_dg2_g12 || arch-intel_gpu_pvc || arch-intel_gpu_mtl_h || arch-intel_gpu_mtl_u
9+
//
210
// UNSUPPORTED: cuda, hip
311
// UNSUPPORTED-REASON: FP64 emulation is an Intel specific feature.
412

5-
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_dg2_g10 -fsycl-fp64-conv-emu -O0 %s -o %t.out
13+
// RUN: %clangxx -fsycl -fsycl-targets=intel_gpu_dg2_g10,intel_gpu_dg2_g11,intel_gpu_dg2_g12,intel_gpu_pvc,intel_gpu_mtl_h,intel_gpu_mtl_u -fsycl-fp64-conv-emu -O0 %s -o %t.out
614
// RUN: %{run} %t.out
715

816
#include <sycl/detail/core.hpp>

0 commit comments

Comments
 (0)