Skip to content

Commit efcd7e1

Browse files
committed
Fix initialization of local accessors (now both opencl:cpu and opencl:gpu) pass testing
Signed-off-by: Vyacheslav N Klochkov <[email protected]>
1 parent 623630a commit efcd7e1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sycl/include/CL/sycl/ONEAPI/reduction.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,9 @@ void initReduLocalAccs(size_t LID, size_t GID, size_t NWorkItems, size_t WGSize,
11781178
if (UniformPow2WG || GID < NWorkItems)
11791179
std::tie(std::get<Is>(LocalAccs)[LID]...) =
11801180
std::make_tuple(std::get<Is>(InputAccs)[GID]...);
1181+
else
1182+
std::tie(std::get<Is>(LocalAccs)[LID]...) =
1183+
std::make_tuple(std::get<Is>(Identities)...);
11811184
if (!UniformPow2WG)
11821185
std::tie(std::get<Is>(LocalAccs)[WGSize]...) =
11831186
std::make_tuple(std::get<Is>(Identities)...);

0 commit comments

Comments
 (0)