Skip to content

Commit

Permalink
Fix SYCL Include Name (#53)
Browse files Browse the repository at this point in the history
* Fix SYCL Include Name

Evolved from `<CL/sycl.hpp>` to `<sycl/sycl.hpp>`.

* SYCL Update Namespaces too

modernize
  • Loading branch information
ax3l authored Aug 19, 2024
1 parent aa54e98 commit 44a2dfd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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
6 changes: 3 additions & 3 deletions multi_physics/QED/include/picsar_qed/math/cmath_overloads.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <cmath>

#ifdef PXRMP_DPCPP_FIX
#include <CL/sycl.hpp>
#include <sycl/sycl.hpp>
#endif

namespace picsar{
Expand Down 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 44a2dfd

Please sign in to comment.