Skip to content

Commit f448631

Browse files
authored
[SYCL][ESIMD][E2E] Fix compile fail for lsc_gather_scatter_stateless_64.cpp test (#9816)
This never compiled since I added it but we didn't catch it since it only runs on PVC. We need to provide more template arguments for the conversion operator to kick in for the host compile. Signed-off-by: Sarnie, Nick <[email protected]>
1 parent ed57d4a commit f448631

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

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

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,26 @@ int main() {
4040
uint64_t offsetStart = (Size - VL) * sizeof(uint64_t);
4141
simd<uint64_t, VL> offset(offsetStart, sizeof(uint64_t));
4242
simd<uint64_t, VL> beginning(0, sizeof(uint64_t));
43-
simd<uint64_t, VL> va = lsc_gather<uint64_t>(PA, beginning);
43+
simd<uint64_t, VL> va =
44+
lsc_gather<uint64_t, 1, lsc_data_size::default_size,
45+
cache_hint::none, cache_hint::none, VL>(PA, beginning);
4446
simd_mask<VL> pred = 1;
4547
simd<uint64_t, VL> old_values = 0;
4648
lsc_prefetch<uint64_t, 1, lsc_data_size::default_size,
47-
cache_hint::cached, cache_hint::cached>(PA, offset);
49+
cache_hint::cached, cache_hint::cached, VL>(PA, offset);
4850
simd<uint64_t, VL> vb =
49-
lsc_gather<uint64_t>(PA, offset, pred, old_values);
50-
simd<uint64_t, VL> vc = lsc_gather<uint64_t>(PA, offset);
51+
lsc_gather<uint64_t, 1, lsc_data_size::default_size,
52+
cache_hint::none, cache_hint::none, VL>(
53+
PA, offset, pred, old_values);
54+
simd<uint64_t, VL> vc =
55+
lsc_gather<uint64_t, 1, lsc_data_size::default_size,
56+
cache_hint::none, cache_hint::none, VL>(PA, offset);
5157
va *= 5;
5258
vb += vc;
53-
lsc_scatter<uint64_t>(PA, beginning, va);
54-
lsc_scatter<uint64_t>(PA, offset, vb);
59+
lsc_scatter<uint64_t, 1, lsc_data_size::default_size, cache_hint::none,
60+
cache_hint::none, VL>(PA, beginning, va);
61+
lsc_scatter<uint64_t, 1, lsc_data_size::default_size, cache_hint::none,
62+
cache_hint::none, VL>(PA, offset, vb);
5563
});
5664
}).wait();
5765
} catch (sycl::exception const &e) {

0 commit comments

Comments
 (0)