From e9d308e5fc70fd4ca80dfb47a72fbc0b375c11ee Mon Sep 17 00:00:00 2001 From: Vyacheslav Klochkov <34946562+v-klochkov@users.noreply.github.com> Date: Wed, 21 Jul 2021 00:18:27 -0700 Subject: [PATCH] [SYCL] Fix the error with namespaces caused during rebase of #4014 (#4151) During rebase of #4014 one of calls to ONEAPI::detail::reduSaveFinalResultToUserMem was left as is, while the implementation was moved to ext::oneapi::detail namespace. That caused errors during compilation of parallel_for(range,reduction,func) Fixed it here. Signed-off-by: Vyacheslav N Klochkov --- sycl/include/CL/sycl/handler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sycl/include/CL/sycl/handler.hpp b/sycl/include/CL/sycl/handler.hpp index 39412ceb4179c..cb07824aaee77 100644 --- a/sycl/include/CL/sycl/handler.hpp +++ b/sycl/include/CL/sycl/handler.hpp @@ -1396,8 +1396,8 @@ class __SYCL_EXPORT handler { this->finalize(); handler CopyHandler(QueueCopy, MIsHost); CopyHandler.saveCodeLoc(MCodeLoc); - ONEAPI::detail::reduSaveFinalResultToUserMem(CopyHandler, - Redu); + ext::oneapi::detail::reduSaveFinalResultToUserMem(CopyHandler, + Redu); MLastEvent = CopyHandler.finalize(); } }