diff --git a/CHANGELOG.md b/CHANGELOG.md index f3e49a10e25a..9ed9491d0ecc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -33,6 +33,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Updated `dpnp.size` to accept tuple of ints for `axes` argument [#2536](https://github.com/IntelPython/dpnp/pull/2536) * Replaced `ci` section in `.pre-commit-config.yaml` with a new GitHub workflow with scheduled run to autoupdate the `pre-commit` configuration [#2542](https://github.com/IntelPython/dpnp/pull/2542) * FFT module is updated to perform in-place FFT in intermediate steps of ND FFT [#2543](https://github.com/IntelPython/dpnp/pull/2543) +* Reused dpctl tensor include to enable experimental SYCL namespace for complex types [#2546](https://github.com/IntelPython/dpnp/pull/2546) ### Deprecated diff --git a/dpnp/backend/kernels/elementwise_functions/sinc.hpp b/dpnp/backend/kernels/elementwise_functions/sinc.hpp index 1de5953a19bc..c21a7888760f 100644 --- a/dpnp/backend/kernels/elementwise_functions/sinc.hpp +++ b/dpnp/backend/kernels/elementwise_functions/sinc.hpp @@ -25,16 +25,15 @@ #pragma once -#define SYCL_EXT_ONEAPI_COMPLEX -#if __has_include() -#include -#else -#include -#endif +#include +#include +#include +#include #include // dpctl tensor headers +#include "kernels/elementwise_functions/sycl_complex.hpp" #include "utils/type_utils.hpp" namespace dpnp::kernels::sinc @@ -43,8 +42,6 @@ namespace tu_ns = dpctl::tensor::type_utils; namespace impl { -namespace exprm_ns = sycl::ext::oneapi::experimental; - template inline Tp sin(const Tp &in) {