Skip to content

Commit 511fa69

Browse files
authored
[SYCL][ESIMD] Fix the order of parameters for the lsc_slm_atomic_update that caused test failures (#10963)
1 parent 215d3a3 commit 511fa69

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

sycl/include/sycl/ext/intel/experimental/esimd/memory.hpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,8 +3077,8 @@ lsc_slm_atomic_update(__ESIMD_NS::simd<uint32_t, N> offsets,
30773077
/// @tparam N is the number of channels (platform dependent).
30783078
/// @tparam DS is the data size.
30793079
/// @param offsets is the zero-based offsets.
3080-
/// @param src0 is the first atomic operand.
3081-
/// @param src1 is the second atomic operand.
3080+
/// @param src0 is the first atomic operand (expected value).
3081+
/// @param src1 is the second atomic operand (new value).
30823082
/// @param pred is predicates.
30833083
///
30843084
/// @return A vector of the old values at the memory locations before the
@@ -3539,8 +3539,8 @@ lsc_atomic_update(AccessorTy acc, __ESIMD_NS::simd<uint32_t, N> offsets,
35393539
/// @tparam AccessorTy is the \ref sycl::accessor type.
35403540
/// @param acc is the SYCL accessor.
35413541
/// @param offsets is the zero-based offsets.
3542-
/// @param src0 is the first atomic operand.
3543-
/// @param src1 is the second atomic operand.
3542+
/// @param src0 is the first atomic operand (expected value).
3543+
/// @param src1 is the second atomic operand (new value).
35443544
/// @param pred is predicates.
35453545
///
35463546
/// @return A vector of the old values at the memory locations before the
@@ -3598,8 +3598,8 @@ lsc_atomic_update(AccessorTy acc, __ESIMD_NS::simd<Toffset, N> offsets,
35983598
/// @tparam AccessorTy is the \ref sycl::accessor type.
35993599
/// @param acc is the SYCL accessor.
36003600
/// @param offsets is the zero-based offsets.
3601-
/// @param src0 is the first atomic operand.
3602-
/// @param src1 is the second atomic operand.
3601+
/// @param src0 is the first atomic operand (expected value).
3602+
/// @param src1 is the second atomic operand (new value).
36033603
/// @param pred is predicates.
36043604
///
36053605
/// @return A vector of the old values at the memory locations before the

sycl/test-e2e/ESIMD/lsc/lsc_slm_atomic_cmpxchg.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88
// This test checks LSC SLM atomic operations.
99
//===----------------------------------------------------------------------===//
1010
// REQUIRES: gpu-intel-pvc
11-
// XFAIL: gpu-intel-pvc
12-
// TODO: reenable the test once driver issue with cmpxchg is resolved
1311
// TODO: esimd_emulator fails due to random timeouts (_XFAIL_: esimd_emulator)
1412
// TODO: esimd_emulator doesn't support xchg operation
1513
// UNSUPPORTED: esimd_emulator

sycl/test-e2e/ESIMD/lsc/lsc_slm_atomic_smoke.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,10 +149,10 @@ bool test(queue q) {
149149
// arg0 and arg1 must provide values which guarantee the loop
150150
// is not endless:
151151
for (auto old_val = lsc_slm_atomic_update<op, T>(
152-
offsets, new_val, exp_val, m);
152+
offsets, exp_val, new_val, m);
153153
any(old_val < exp_val, !m);
154-
old_val = lsc_slm_atomic_update<op, T>(offsets, new_val,
155-
exp_val, m))
154+
old_val = lsc_slm_atomic_update<op, T>(offsets, exp_val,
155+
new_val, m))
156156
;
157157
}
158158
}

0 commit comments

Comments
 (0)