Skip to content

Commit c8997bf

Browse files
dongkyunahn-intelbb-sycl
authored andcommitted
[SYCL][ESIMD][EMU] Correction : Number of threads - esimd_merge.cpp (intel#884)
- 'XFAIL' marking is removed for esimd_emulator backend
1 parent 784fa35 commit c8997bf

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

SYCL/ESIMD/api/esimd_merge.cpp

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@
77
//===----------------------------------------------------------------------===//
88
// REQUIRES: gpu
99
// UNSUPPORTED: cuda || hip
10-
// TODO: esimd_emulator fails due to memory corruption error from piextUSMFree
11-
// XFAIL: esimd_emulator
1210
// RUN: %clangxx -fsycl %s -o %t.out
1311
// RUN: %GPU_RUN_PLACEHOLDER %t.out
1412

@@ -41,6 +39,7 @@ template <class T> void prn(T *arr, int size, const char *title) {
4139
}
4240

4341
int main(void) {
42+
<<<<<<< HEAD
4443
<<<<<<< HEAD
4544
constexpr unsigned NUM_THREADS = 2;
4645
constexpr unsigned VL = 16;
@@ -53,6 +52,13 @@ int main(void) {
5352
constexpr unsigned SUB_VL = VL / FACTOR / FACTOR;
5453
constexpr unsigned Size = VL * 2;
5554
>>>>>>> 52feaa59e ([ESIMD] Add test for esimd::merge (#739))
55+
=======
56+
constexpr unsigned NUM_THREADS = 2;
57+
constexpr unsigned VL = 16;
58+
constexpr unsigned FACTOR = 2;
59+
constexpr unsigned SUB_VL = VL / FACTOR / FACTOR;
60+
constexpr unsigned Size = VL * NUM_THREADS;
61+
>>>>>>> e75a5a577 ([SYCL][ESIMD][EMU] Correction : Number of threads - esimd_merge.cpp (#884))
5662

5763
queue q(esimd_test::ESIMDSelector{}, esimd_test::createExceptionHandler());
5864

@@ -81,11 +87,15 @@ int main(void) {
8187

8288
try {
8389
auto e = q.submit([&](handler &cgh) {
90+
<<<<<<< HEAD
8491
<<<<<<< HEAD
8592
cgh.parallel_for<class Test>(NUM_THREADS, [=](id<1> i) SYCL_ESIMD_KERNEL {
8693
=======
8794
cgh.parallel_for<class Test>(Size, [=](id<1> i) SYCL_ESIMD_KERNEL {
8895
>>>>>>> 52feaa59e ([ESIMD] Add test for esimd::merge (#739))
96+
=======
97+
cgh.parallel_for<class Test>(NUM_THREADS, [=](id<1> i) SYCL_ESIMD_KERNEL {
98+
>>>>>>> e75a5a577 ([SYCL][ESIMD][EMU] Correction : Number of threads - esimd_merge.cpp (#884))
8999
simd<int, VL> va(A + i * VL);
90100
simd<int, VL> vb(B + i * VL);
91101
simd_mask<SUB_VL> m(M + i * VL);

0 commit comments

Comments
 (0)