diff --git a/sycl/test-e2e/Graph/Inputs/compile_time_local_memory.cpp b/sycl/test-e2e/Graph/Inputs/compile_time_local_memory.cpp index 53401c073697b..4772b789ffd87 100644 --- a/sycl/test-e2e/Graph/Inputs/compile_time_local_memory.cpp +++ b/sycl/test-e2e/Graph/Inputs/compile_time_local_memory.cpp @@ -23,11 +23,13 @@ int main() { auto NodeA = add_node(Graph, Queue, [&](handler &CGH) { CGH.parallel_for(nd_range({Size}, {LocalSize}), [=](nd_item<1> Item) { multi_ptr - LocalMem = sycl::ext::oneapi::group_local_memory( - Item.get_group()); - *LocalMem[Item.get_local_linear_id()] = Item.get_global_linear_id() * 2; + LocalMemPtr = + sycl::ext::oneapi::group_local_memory( + Item.get_group()); + (*LocalMemPtr)[Item.get_local_linear_id()] = + Item.get_global_linear_id() * 2; PtrA[Item.get_global_linear_id()] += - *LocalMem[Item.get_local_linear_id()]; + (*LocalMemPtr)[Item.get_local_linear_id()]; }); }); @@ -37,12 +39,12 @@ int main() { depends_on_helper(CGH, NodeA); CGH.parallel_for(nd_range({Size}, {LocalSize}), [=](nd_item<1> Item) { multi_ptr - LocalMem = sycl::ext::oneapi::group_local_memory_for_overwrite< + LocalMemPtr = sycl::ext::oneapi::group_local_memory_for_overwrite< size_t[LocalSize]>(Item.get_group()); - *LocalMem[Item.get_local_linear_id()] = + (*LocalMemPtr)[Item.get_local_linear_id()] = Item.get_global_linear_id() + 4; PtrA[Item.get_global_linear_id()] *= - *LocalMem[Item.get_local_linear_id()]; + (*LocalMemPtr)[Item.get_local_linear_id()]; }); }, NodeA);