Skip to content

Commit 2953588

Browse files
Remove constant.hpp and other review comments
1 parent dbfcf47 commit 2953588

File tree

7 files changed

+0
-147
lines changed

7 files changed

+0
-147
lines changed

dpnp/backend/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ set(DPNP_SRC
3131
kernels/dpnp_krnl_mathematical.cpp
3232
kernels/dpnp_krnl_random.cpp
3333
kernels/dpnp_krnl_sorting.cpp
34-
src/constants.cpp
3534
src/dpnp_iface_fptr.cpp
3635
src/memory_sycl.cpp
3736
src/queue_sycl.cpp

dpnp/backend/kernels/dpnp_krnl_common.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,6 @@
3535
#include "queue_sycl.hpp"
3636
#include <dpnp_iface.hpp>
3737

38-
/**
39-
* Version of SYCL DPC++ 2025.1 compiler where support of
40-
* sycl::ext::oneapi::experimental::properties was added.
41-
*/
42-
#ifndef __SYCL_COMPILER_REDUCTION_PROPERTIES_SUPPORT
43-
#define __SYCL_COMPILER_REDUCTION_PROPERTIES_SUPPORT 20241208L
44-
#endif
45-
4638
template <typename _DataType>
4739
class dpnp_initval_c_kernel;
4840

dpnp/backend/src/constants.cpp

Lines changed: 0 additions & 43 deletions
This file was deleted.

dpnp/backend/src/constants.hpp

Lines changed: 0 additions & 54 deletions
This file was deleted.

dpnp/backend/src/dpnp_fptr.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -156,12 +156,6 @@ static auto dpnp_vec_cast(const sycl::vec<srcT, N> &s)
156156
s, Indices{});
157157
}
158158

159-
/**
160-
* Removes parentheses for a passed list of types separated by comma.
161-
* It's intended to be used in operations macro.
162-
*/
163-
#define MACRO_UNPACK_TYPES(...) __VA_ARGS__
164-
165159
/**
166160
* Implements std::is_same<> with variadic number of types to compare with
167161
* and when type T has to match only one of types Ts.

dpnp/backend/src/dpnp_utils.hpp

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -115,37 +115,6 @@ void get_shape_offsets_inkernel(const _DataType *shape,
115115
return;
116116
}
117117

118-
/**
119-
* @ingroup BACKEND_UTILS
120-
* @brief Calculation of indices in array
121-
*
122-
* Calculates indices of element in array with given linear position
123-
* for example:
124-
* idx = 5, shape = (2, 3), ndim = 2,
125-
* indices xyz should be [1, 1]
126-
*
127-
* @param [in] idx linear index of the element in multy-D array.
128-
* @param [in] ndim number of dimensions.
129-
* @param [in] shape offsets of array.
130-
* @param [out] xyz indices.
131-
*/
132-
template <typename _DataType>
133-
void get_xyz_by_id(size_t idx,
134-
size_t ndim,
135-
const _DataType *offsets,
136-
_DataType *xyz)
137-
{
138-
size_t quotient;
139-
size_t remainder = idx;
140-
141-
for (size_t i = 0; i < ndim; ++i) {
142-
quotient = remainder / offsets[i];
143-
remainder = remainder - quotient * offsets[i];
144-
xyz[i] = quotient;
145-
}
146-
return;
147-
}
148-
149118
/**
150119
* @ingroup BACKEND_UTILS
151120
* @brief Calculate xyz id for given axis from linear index

dpnp/dpnp_algo/dpnp_algo.pxd

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,6 @@ cdef extern from "dpnp_iface_fptr.hpp":
9595

9696
DPNPFuncData get_dpnp_function_ptr(DPNPFuncName name, DPNPFuncType first_type, DPNPFuncType second_type) except +
9797

98-
99-
cdef extern from "constants.hpp":
100-
void dpnp_python_constants_initialize_c(void * py_none, void * py_nan)
101-
10298
cdef extern from "dpnp_iface.hpp":
10399

104100
char * dpnp_memory_alloc_c(size_t size_in_bytes) except +

0 commit comments

Comments
 (0)