Skip to content

Commit 1531fa1

Browse files
[SYCL] Update some SYCL FPGA tests after #8874 (#10284)
This patch fixes compilation error in fpga_lsu.cpp and fpga_latency_control_lsu.cpp. Tested locally with open-source and closed-source compilers. Currently there is no external testing with the accelerator device in open source.
1 parent 601a7de commit 1531fa1

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

sycl/test-e2e/Basic/fpga_tests/fpga_latency_control_lsu.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ int test_latency_control(queue Queue) {
3838
auto output_accessor = output_buffer.get_access<access::mode::write>(cgh);
3939

4040
cgh.single_task<class kernel>([=] {
41-
auto in_ptr = input_accessor.get_pointer();
42-
auto out_ptr = output_accessor.get_pointer();
41+
auto in_ptr =
42+
input_accessor.get_multi_ptr<sycl::access::decorated::no>();
43+
auto out_ptr =
44+
output_accessor.get_multi_ptr<sycl::access::decorated::no>();
4345

4446
float value = PrefetchingLSU::load(
4547
in_ptr, ext::oneapi::experimental::properties(

sycl/test-e2e/Basic/fpga_tests/fpga_lsu.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,10 @@ int test_lsu(sycl::queue Queue) {
3535
input_buffer.get_access<sycl::access::mode::read>(cgh);
3636

3737
cgh.single_task<class kernel>([=] {
38-
auto input_ptr = input_accessor.get_pointer();
39-
auto output_ptr = output_accessor.get_pointer();
38+
auto input_ptr =
39+
input_accessor.get_multi_ptr<sycl::access::decorated::no>();
40+
auto output_ptr =
41+
output_accessor.get_multi_ptr<sycl::access::decorated::no>();
4042

4143
using PrefetchingLSU =
4244
sycl::ext::intel::lsu<sycl::ext::intel::prefetch<true>,

0 commit comments

Comments
 (0)