Skip to content

Commit 9c6e96a

Browse files
dongkyunahn-intelbb-sycl
authored andcommitted
[SYCL][ESIMD][EMU] Marking ESIMD kernels for esimd_emulator backend (intel#751)
- 'vadd_1d' and 'sycl_esimd_mix' are duplicated to 'esimd_check_vc_codegen.cpp' and 'sycl_esimd_mix_check_build_opts.cpp' so that original kernels can run with esimd_emulator without 'CHECK' commands and duplicated kernels can run with opencl/level_zero backends with 'CHECK' - Add XFAIL/UNSUPPORTED markup for - Unimplemented features - Outdated memory intrinsic implementations - Reduce workset in matrix_transpose_glb.cpp when running on esimd_emulator - Removing HOST_RUN_PLACEHOLDER for ESIMD Kernels
1 parent 9ef6dc5 commit 9c6e96a

30 files changed

+79
-0
lines changed

SYCL/ESIMD/BitonicSortK.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to unimplemented __esimd_oword_ld_unaligned
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214

SYCL/ESIMD/accessor.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to unimplemented __esimd_oword_ld_unaligned
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl -D_CRT_SECURE_NO_WARNINGS=1 %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214

SYCL/ESIMD/api/ballot.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to outdated memory intrinsic
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214

SYCL/ESIMD/api/replicate_smoke.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
1010
<<<<<<< HEAD
11+
<<<<<<< HEAD
1112
// TODO: esimd_emulator fails due to unimplemented 'half' type
1213
// XFAIL: esimd_emulator
1314
=======
1415
>>>>>>> 22f86b532 ([ESIMD] Add smoke test for simd::replicate_vs_w_hs. (#799))
16+
=======
17+
// TODO: esimd_emulator fails due to unimplemented 'half' type
18+
// XFAIL: esimd_emulator
19+
>>>>>>> d98407d06 ([SYCL][ESIMD][EMU] Marking ESIMD kernels for esimd_emulator backend (#751))
1520
// RUN: %clangxx -fsycl %s -o %t.out
1621
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1722
//

SYCL/ESIMD/api/saturation_smoke.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
1010
<<<<<<< HEAD
11+
<<<<<<< HEAD
1112
// TODO: esimd_emulator fails due to unimplemented 'half' type
1213
// XFAIL: esimd_emulator
1314
=======
1415
>>>>>>> 2206708db ([ESIMD] Add "smoke" test for esimd::saturate (#791))
16+
=======
17+
// TODO: esimd_emulator fails due to unimplemented 'half' type
18+
// XFAIL: esimd_emulator
19+
>>>>>>> d98407d06 ([SYCL][ESIMD][EMU] Marking ESIMD kernels for esimd_emulator backend (#751))
1520
// RUN: %clangxx -fsycl %s -o %t.out
1621
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1722
//

SYCL/ESIMD/api/simd_any_all.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,15 @@
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
1010
<<<<<<< HEAD
11+
<<<<<<< HEAD
1112
// TODO: esimd_emulator fails due to unimplemented 'half' type
1213
// XFAIL: esimd_emulator
1314
=======
1415
>>>>>>> 38486e7dc ([ESIMD] Add smoke test for simd_obj_impl::any/all. (#802))
16+
=======
17+
// TODO: esimd_emulator fails due to unimplemented 'half' type
18+
// XFAIL: esimd_emulator
19+
>>>>>>> d98407d06 ([SYCL][ESIMD][EMU] Marking ESIMD kernels for esimd_emulator backend (#751))
1520
// RUN: %clangxx -fsycl %s -fsycl-device-code-split=per_kernel -o %t.out
1621
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1722
//

SYCL/ESIMD/api/simd_binop_integer_promotion.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to outdated memory intrinsic
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214
//

SYCL/ESIMD/api/simd_negation_operator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to unimplemented __esimd_oword_ld_unaligned
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214
//

SYCL/ESIMD/api/simd_subscript_operator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to outdated memory intrinsic
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214
//

SYCL/ESIMD/api/simd_view_negation_operator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to unimplemented __esimd_oword_ld_unaligned
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214
//

SYCL/ESIMD/api/simd_view_subscript_operator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to unimplemented __esimd_oword_ld_unaligned
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214
//

SYCL/ESIMD/api/slm_gather_scatter.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// REQUIRES: gpu
22
// UNSUPPORTED: cuda || hip
3+
// TODO: esimd_emulator fails due to unimplemented __esimd_scatter_scaled
4+
// XFAIL: esimd_emulator
35
// RUN: %clangxx -fsycl %s -o %t.out
46
// RUN: %GPU_RUN_PLACEHOLDER %t.out
57
//

SYCL/ESIMD/api/slm_gather_scatter_rgba.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
// REQUIRES: gpu
22
// UNSUPPORTED: cuda || hip
3+
// TODO: esimd_emulator fails due to unimplemented __esimd_scatter_scaled
4+
// XFAIL: esimd_emulator
35
// RUN: %clangxx -fsycl %s -o %t.out
46
// RUN: %GPU_RUN_PLACEHOLDER %t.out
57
//

SYCL/ESIMD/esimd_check_vc_codegen.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616

1717
#include <CL/sycl.hpp>
1818
#include <iostream>
19+
<<<<<<< HEAD
1920
#include <sycl/ext/intel/esimd.hpp>
21+
=======
22+
#include <sycl/ext/intel/experimental/esimd.hpp>
23+
>>>>>>> d98407d06 ([SYCL][ESIMD][EMU] Marking ESIMD kernels for esimd_emulator backend (#751))
2024

2125
using namespace cl::sycl;
2226

@@ -55,7 +59,11 @@ int main(void) {
5559
auto PC = bufc.get_access<access::mode::write>(cgh);
5660
cgh.parallel_for<class Test>(
5761
GlobalRange * LocalRange, [=](id<1> i) SYCL_ESIMD_KERNEL {
62+
<<<<<<< HEAD
5863
using namespace sycl::ext::intel::esimd;
64+
=======
65+
using namespace sycl::ext::intel::experimental::esimd;
66+
>>>>>>> d98407d06 ([SYCL][ESIMD][EMU] Marking ESIMD kernels for esimd_emulator backend (#751))
5967
unsigned int offset = i * VL * sizeof(float);
6068
simd<float, VL> va;
6169
va.copy_from(PA, offset);

SYCL/ESIMD/fp_in_phi.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1515
// UNSUPPORTED: cuda || hip
1616
// UNSUPPORTED: ze_debug-1,ze_debug4
17+
// TODO: esimd_emulator fails due to unimplemented __esimd_scatter_scaled
18+
// XFAIL: esimd_emulator
1719
//
1820
// The test checks that ESIMD kernels correctly handle function pointers as
1921
// arguments of LLVM's PHI function.

SYCL/ESIMD/histogram.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to outdated __esimd_media_ld
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214

SYCL/ESIMD/histogram_256_slm.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to unimplemented __esimd_scatter_scaled
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214

SYCL/ESIMD/histogram_2d.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to outdated __esimd_media_ld
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214

SYCL/ESIMD/histogram_raw_send.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// REQUIRES: gpu
1010
// UNSUPPORTED: gpu-intel-dg1,cuda,hip
1111
// UNSUPPORTED: ze_debug-1,ze_debug4
12+
// TODO: esimd_emulator fails due to outdated __esimd_media_ld
13+
// XFAIL: esimd_emulator
1214
// RUN: %clangxx -fsycl %s -o %t.out
1315
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1416

SYCL/ESIMD/linear/linear.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to outdated __esimd_media_ld
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -I%S/.. -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out %S/linear_in.bmp %S/linear_gold_hw.bmp
1214

SYCL/ESIMD/matrix_transpose_glb.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ using namespace sycl::ext::intel::esimd;
2222

2323
const unsigned int ESIMD_EMULATOR_SIZE_LIMIT = 1U << 10;
2424

25+
const unsigned int ESIMD_EMULATOR_SIZE_LIMIT = 1U << 10;
26+
2527
void initMatrix(int *M, unsigned N) {
2628
assert(N >= 8 && (((N - 1) & N) == 0) &&
2729
"only power of 2 (>= 16) is supported");

SYCL/ESIMD/regression/complex-lib-lin.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,11 @@
99
// UNSUPPORTED: cuda || hip
1010
// TODO/DEBUG Segmentation fault occurs with esimd_emulator backend
1111
// XFAIL: esimd_emulator
12+
<<<<<<< HEAD
1213
// The test hangs on 22.05.22297 GPU RT on Linux
1314
// UNSUPPORTED: linux && (opencl || level_zero) && gpu
15+
=======
16+
>>>>>>> d98407d06 ([SYCL][ESIMD][EMU] Marking ESIMD kernels for esimd_emulator backend (#751))
1417
//
1518
// RUN: %clangxx -fsycl -fPIC -O3 %S/Inputs/complex-lib-sycl.cpp -c -o %t-lib-sycl.o
1619
// RUN: %clangxx -fsycl -fPIC -O3 %S/Inputs/complex-lib-esimd.cpp -c -o %t-lib-esimd.o

SYCL/ESIMD/regression/operator_decrement.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//
1010
// REQUIRES: gpu
1111
// UNSUPPORTED: cuda || hip
12+
// TODO: esimd_emulator fails due to unimplemented __esimd_oword_ld_unaligned
13+
// XFAIL: esimd_emulator
1214
// RUN: %clangxx -fsycl -I%S/.. %s -o %t.out
1315
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1416

SYCL/ESIMD/regression/unused_load.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to unimplemented __esimd_oword_ld_unaligned
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl -I%S/.. %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214

SYCL/ESIMD/slm_barrier.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to unimplemented __esimd_scatter_scaled4
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214

SYCL/ESIMD/slm_split_barrier.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
// RUN: %clangxx -fsycl %s -o %t.out
1010
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1111
// UNSUPPORTED: cuda || hip
12+
// TODO: esimd_emulator fails due to unimplemented __esimd_scatter4_scaled
13+
// XFAIL: esimd_emulator
1214

1315
#include "esimd_test_utils.hpp"
1416

SYCL/ESIMD/vadd_1d.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to unimplemented __esimd_oword_ld_unaligned
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214

SYCL/ESIMD/vadd_2d.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10+
// TODO: esimd_emulator fails due to outdated __esimd_media_ld
11+
// XFAIL: esimd_emulator
1012
// RUN: %clangxx -fsycl %s -o %t.out
1113
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1214

SYCL/ESIMD/vadd_2d_acc.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1111

1212
// UNSUPPORTED: cuda || hip
13+
// TODO: esimd_emulator fails due to unimplemented __esimd_oword_ld_unaligned
14+
// XFAIL: esimd_emulator
1315

1416
// The test checks that 2D workitem addressing works correctly with SIMD
1517
// kernels.

SYCL/ESIMD/vadd_raw_send.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,15 @@
99
// REQUIRES: gpu
1010
// UNSUPPORTED: gpu-intel-dg1,cuda,hip
1111
<<<<<<< HEAD
12+
<<<<<<< HEAD
1213
// TODO: esimd_emulator fails due to unimplemented 'raw_send' intrinsic
1314
// XFAIL: esimd_emulator
1415
=======
1516
>>>>>>> 3a9a0d3c0 ([ESIMD] Exclude esimd_vadd_raw_send and histogram_raw_send from DG1 testing (#728))
17+
=======
18+
// TODO: esimd_emulator fails due to unimplemented 'raw_send' intrinsic
19+
// XFAIL: esimd_emulator
20+
>>>>>>> d98407d06 ([SYCL][ESIMD][EMU] Marking ESIMD kernels for esimd_emulator backend (#751))
1621
// RUN: %clangxx -fsycl %s -o %t.out
1722
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1823

0 commit comments

Comments
 (0)