From 27b6a51ec46fe6fb5ed73cc4f36c189a1dc86f1a Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Sun, 18 Aug 2024 15:40:14 -0700 Subject: [PATCH] SYCL Update Namespaces too modernize --- multi_physics/QED/CMakeLists.txt | 2 +- multi_physics/QED/include/picsar_qed/math/cmath_overloads.hpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/multi_physics/QED/CMakeLists.txt b/multi_physics/QED/CMakeLists.txt index 68220ea1b..0630f3d71 100644 --- a/multi_physics/QED/CMakeLists.txt +++ b/multi_physics/QED/CMakeLists.txt @@ -22,7 +22,7 @@ option(PXRMP_QED_TEST "Build PICSAR QED tests " ${IS_TOPLEVEL}) option(PXRMP_QED_TOOLS "Build PICSAR QED tools " ${IS_TOPLEVEL}) option(PXRMP_QED_PYTHON_BINDINGS "Build PICSAR QED python bindings " ${IS_TOPLEVEL}) option(PXRMP_BOOST_TEST_DYN_LINK "Link against the Boost Unit Test Framework shared library" ON) -option(PXRMP_DPCPP_FIX "Use cl::sycl::floor cl::sycl::floorf on device" OFF) +option(PXRMP_DPCPP_FIX "Use sycl::floor sycl::floorf on device" OFF) option(PXRMP_KOKKOS_EXAMPLE "Build examples using Kokkos" OFF) diff --git a/multi_physics/QED/include/picsar_qed/math/cmath_overloads.hpp b/multi_physics/QED/include/picsar_qed/math/cmath_overloads.hpp index 49e3ef6cd..5f7e35063 100644 --- a/multi_physics/QED/include/picsar_qed/math/cmath_overloads.hpp +++ b/multi_physics/QED/include/picsar_qed/math/cmath_overloads.hpp @@ -205,7 +205,7 @@ namespace math{ float m_floor(const float x) noexcept { #ifdef PXRMP_DPCPP_FIX - return cl::sycl::floorf(x); + return sycl::floorf(x); #else return floorf(x); #endif @@ -331,7 +331,7 @@ namespace math{ RealType m_floor(const RealType x) noexcept { #ifdef PXRMP_DPCPP_FIX - return cl::sycl::floor(x); + return sycl::floor(x); #else return std::floor(x); #endif