Skip to content

Commit

Permalink
SYCL Update Namespaces too
Browse files Browse the repository at this point in the history
modernize
  • Loading branch information
ax3l committed Aug 18, 2024
1 parent 3a871ee commit 27b6a51
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion multi_physics/QED/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down
4 changes: 2 additions & 2 deletions multi_physics/QED/include/picsar_qed/math/cmath_overloads.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 27b6a51

Please sign in to comment.