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

Commit ba74a04

Browse files
committed
Fix test failures
1 parent 3b5ae18 commit ba74a04

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

SYCL/ESIMD/histogram_256_slm.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,11 @@ ESIMD_INLINE void histogram_atomic(const uint32_t *input_ptr, uint32_t *output,
6363
simd<uint, 16> local_histogram;
6464
local_histogram = slm_gather<uint32_t, 16>(slm_offset);
6565
atomic_update<atomic_op::add, uint32_t, 8>(
66-
output, slm_offset.select<8, 1>(0), local_histogram.select<8, 1>(0), 1);
66+
output, simd<uint, 8>(slm_offset.select<8, 1>(0)),
67+
local_histogram.select<8, 1>(0), 1);
6768
atomic_update<atomic_op::add, uint32_t, 8>(
68-
output, slm_offset.select<8, 1>(8), local_histogram.select<8, 1>(8), 1);
69+
output, simd<uint, 8>(slm_offset.select<8, 1>(8)),
70+
local_histogram.select<8, 1>(8), 1);
6971
}
7072

7173
// This function calculates histogram of the image with the CPU.

SYCL/ESIMD/histogram_256_slm_spec_2020.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,11 @@ ESIMD_INLINE void histogram_atomic(const uint32_t *input_ptr, uint32_t *output,
6060
simd<uint, 16> local_histogram;
6161
local_histogram = slm_gather<uint32_t, 16>(slm_offset);
6262
atomic_update<atomic_op::add, uint32_t, 8>(
63-
output, slm_offset.select<8, 1>(0), local_histogram.select<8, 1>(0), 1);
63+
output, simd<uint, 8>(slm_offset.select<8, 1>(0)),
64+
local_histogram.select<8, 1>(0), 1);
6465
atomic_update<atomic_op::add, uint32_t, 8>(
65-
output, slm_offset.select<8, 1>(8), local_histogram.select<8, 1>(8), 1);
66+
output, simd<uint, 8>(slm_offset.select<8, 1>(8)),
67+
local_histogram.select<8, 1>(8), 1);
6668
}
6769

6870
// This function calculates histogram of the image with the CPU.

0 commit comments

Comments
 (0)