Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SYCL Include Name #53

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading