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

oneAPI 2024.1.0 Support, main branch (2024.04.11.) #115

Merged
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
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/** Algebra plugins library, part of the ACTS project
*
* (c) 2022 CERN for the benefit of the ACTS project
* (c) 2022-2024 CERN for the benefit of the ACTS project
*
* Mozilla Public License Version 2.0
*/

#pragma once

// Project include(s).
#include "algebra/math/common.hpp"
#include "algebra/qualifiers.hpp"

// System include(s).
Expand Down Expand Up @@ -74,7 +75,7 @@ struct partial_pivot_lud {
max_idx = i;

for (size_type k = i; k < N; k++) {
abs_val = std::abs(element_getter()(lu, k, i));
abs_val = math::fabs(element_getter()(lu, k, i));

if (abs_val > max_val) {

Expand Down
8 changes: 7 additions & 1 deletion math/common/include/algebra/math/common.hpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/** Algebra plugins library, part of the ACTS project
*
* (c) 2022 CERN for the benefit of the ACTS project
* (c) 2022-2024 CERN for the benefit of the ACTS project
*
* Mozilla Public License Version 2.0
*/
Expand All @@ -27,6 +27,12 @@ namespace math_ns = cl::sycl;
namespace math_ns = std;
#endif // SYCL

/// Absolute value of arg
template <typename scalar_t>
ALGEBRA_HOST_DEVICE inline scalar_t fabs(scalar_t arg) {
return math_ns::fabs(arg);
}

/// Arc tangent of y/x
template <typename scalar_t>
ALGEBRA_HOST_DEVICE inline scalar_t atan2(scalar_t y, scalar_t x) {
Expand Down
Loading