Skip to content
This repository was archived by the owner on Mar 28, 2023. It is now read-only.

Commit e75a5a5

Browse files
[SYCL][ESIMD][EMU] Correction : Number of threads - esimd_merge.cpp (#884)
- 'XFAIL' marking is removed for esimd_emulator backend
1 parent 85d5a7c commit e75a5a5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

SYCL/ESIMD/api/esimd_merge.cpp

Lines changed: 3 additions & 4 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

@@ -34,10 +32,11 @@ template <class T> void prn(T *arr, int size, const char *title) {
3432
}
3533

3634
int main(void) {
35+
constexpr unsigned NUM_THREADS = 2;
3736
constexpr unsigned VL = 16;
3837
constexpr unsigned FACTOR = 2;
3938
constexpr unsigned SUB_VL = VL / FACTOR / FACTOR;
40-
constexpr unsigned Size = VL * 2;
39+
constexpr unsigned Size = VL * NUM_THREADS;
4140

4241
queue q(esimd_test::ESIMDSelector{}, esimd_test::createExceptionHandler());
4342

@@ -66,7 +65,7 @@ int main(void) {
6665

6766
try {
6867
auto e = q.submit([&](handler &cgh) {
69-
cgh.parallel_for<class Test>(Size, [=](id<1> i) SYCL_ESIMD_KERNEL {
68+
cgh.parallel_for<class Test>(NUM_THREADS, [=](id<1> i) SYCL_ESIMD_KERNEL {
7069
simd<int, VL> va(A + i * VL);
7170
simd<int, VL> vb(B + i * VL);
7271
simd_mask<SUB_VL> m(M + i * VL);

0 commit comments

Comments
 (0)