From 2a98833fd44253651a0b27e69c9f355b81a25cad Mon Sep 17 00:00:00 2001 From: Vyacheslav N Klochkov Date: Tue, 20 Jul 2021 22:29:38 -0700 Subject: [PATCH] [SYCL] Fix the error with namespaces caused during rebase of #4014 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(); } }