Skip to content

Commit a058791

Browse files
committed
Adapt to get_pointer() return type change
1 parent 8178099 commit a058791

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/experimental/latency_control/src/latency_control.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,10 @@ void KernelRun(const std::vector<int> &in_data, std::vector<int> &out_data,
4545
sycl::no_init);
4646

4747
h.single_task<LatencyControl>([=]() [[intel::kernel_args_restrict]] {
48-
auto in_ptr = in_accessor.get_pointer();
49-
auto out_ptr = out_accessor.get_pointer();
48+
auto in_ptr =
49+
in_accessor.template get_multi_ptr<access::decorated::no>();
50+
auto out_ptr =
51+
out_accessor.template get_multi_ptr<access::decorated::no>();
5052

5153
for (size_t i = 0; i < size; i++) {
5254
// The following load has a label 0.

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/lsu_control/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ using PrefetchingLSU = ext::intel::lsu<ext::intel::prefetch<true>,
105105
q.submit([&](handler &h) {
106106
h.single_task<Kernel>([=] {
107107
//Pointer to external memory
108-
auto input_ptr = input_accessor.get_pointer();
108+
auto input_ptr = input_accessor.template get_multi_ptr<access::decorated::no>();
109109

110110
//Compiler will use a Prefetch LSU for this load
111111
int in_data = PrefetchingLSU::load(input_ptr);

DirectProgramming/C++SYCL_FPGA/Tutorials/Features/lsu_control/src/lsu_control.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ void KernelRun(const std::vector<int> &input_data, const size_t &input_size,
7979

8080
// Kernel that uses the prefetch LSU
8181
h.single_task<KernelPrefetch>([=]() [[intel::kernel_args_restrict]] {
82-
auto input_ptr = input_a.get_pointer();
82+
auto input_ptr =
83+
input_a.template get_multi_ptr<access::decorated::no>();
8384
auto output_ptr = output_a.get_pointer();
8485

8586
int total = 0;
@@ -96,7 +97,8 @@ void KernelRun(const std::vector<int> &input_data, const size_t &input_size,
9697

9798
// Kernel that uses the burst-coalesced LSU
9899
h.single_task<KernelBurst>([=]() [[intel::kernel_args_restrict]] {
99-
auto input_ptr = input_a.get_pointer();
100+
auto input_ptr =
101+
input_a.template get_multi_ptr<access::decorated::no>();
100102
auto output_ptr = output_a.get_pointer();
101103

102104
int total = 0;

0 commit comments

Comments
 (0)