Skip to content

Commit a374258

Browse files
authored
clean up legacy implementation form backend (#2115)
* clean up legacy statistics * remove cov from dpnp_iface.hpp * clean up legacy sqrt * clean up legacy backend * remove functions from dpnp/backend/src/dpnp_utils.hpp
1 parent da64a4b commit a374258

File tree

11 files changed

+0
-1225
lines changed

11 files changed

+0
-1225
lines changed

dpnp/backend/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ set(DPNP_SRC
3030
kernels/dpnp_krnl_indexing.cpp
3131
kernels/dpnp_krnl_mathematical.cpp
3232
kernels/dpnp_krnl_random.cpp
33-
kernels/dpnp_krnl_reduction.cpp
34-
kernels/dpnp_krnl_searching.cpp
3533
kernels/dpnp_krnl_sorting.cpp
3634
kernels/dpnp_krnl_statistics.cpp
3735
src/constants.cpp

dpnp/backend/examples/example8.cpp

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

dpnp/backend/examples/example9.cpp

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

dpnp/backend/include/dpnp_iface.hpp

Lines changed: 0 additions & 189 deletions
Original file line numberDiff line numberDiff line change
@@ -163,52 +163,6 @@ INP_DLLEXPORT void dpnp_dot_c(void *result_out,
163163
const shape_elem_type *input2_shape,
164164
const shape_elem_type *input2_strides);
165165

166-
/**
167-
* @ingroup BACKEND_API
168-
* @brief Compute summary of input array elements.
169-
*
170-
* Input array is expected as @ref _DataType_input type and assume result as
171-
* @ref _DataType_output type. The function creates no memory.
172-
*
173-
* Empty @ref input_shape means scalar.
174-
*
175-
* @param [in] q_ref Reference to SYCL queue.
176-
* @param [out] result_out Output array pointer. @ref _DataType_output
177-
* type is expected
178-
* @param [in] input_in Input array pointer. @ref _DataType_input type
179-
* is expected
180-
* @param [in] input_shape Shape of @ref input_in
181-
* @param [in] input_shape_ndim Number of elements in @ref input_shape
182-
* @param [in] axes Array of axes to apply to @ref input_shape
183-
* @param [in] axes_ndim Number of elements in @ref axes
184-
* @param [in] initial Pointer to initial value for the algorithm.
185-
* @ref _DataType_input is expected
186-
* @param [in] where mask array
187-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
188-
*/
189-
template <typename _DataType_output, typename _DataType_input>
190-
INP_DLLEXPORT DPCTLSyclEventRef
191-
dpnp_sum_c(DPCTLSyclQueueRef q_ref,
192-
void *result_out,
193-
const void *input_in,
194-
const shape_elem_type *input_shape,
195-
const size_t input_shape_ndim,
196-
const shape_elem_type *axes,
197-
const size_t axes_ndim,
198-
const void *initial,
199-
const long *where,
200-
const DPCTLEventVectorRef dep_event_vec_ref);
201-
202-
template <typename _DataType_output, typename _DataType_input>
203-
INP_DLLEXPORT void dpnp_sum_c(void *result_out,
204-
const void *input_in,
205-
const shape_elem_type *input_shape,
206-
const size_t input_shape_ndim,
207-
const shape_elem_type *axes,
208-
const size_t axes_ndim,
209-
const void *initial,
210-
const long *where);
211-
212166
/**
213167
* @ingroup BACKEND_API
214168
* @brief Return a partitioned copy of an array.
@@ -241,107 +195,6 @@ INP_DLLEXPORT void dpnp_partition_c(void *array,
241195
const shape_elem_type *shape,
242196
const size_t ndim);
243197

244-
/**
245-
* @ingroup BACKEND_API
246-
* @brief Compute Product of input array elements.
247-
*
248-
* Input array is expected as @ref _DataType_input type and assume result as
249-
* @ref _DataType_output type. The function creates no memory.
250-
*
251-
* Empty @ref input_shape means scalar.
252-
*
253-
* @param [in] q_ref Reference to SYCL queue.
254-
* @param [out] result_out Output array pointer. @ref _DataType_output
255-
* type is expected
256-
* @param [in] input_in Input array pointer. @ref _DataType_input type
257-
* is expected
258-
* @param [in] input_shape Shape of @ref input_in
259-
* @param [in] input_shape_ndim Number of elements in @ref input_shape
260-
* @param [in] axes Array of axes to apply to @ref input_shape
261-
* @param [in] axes_ndim Number of elements in @ref axes
262-
* @param [in] initial Pointer to initial value for the algorithm.
263-
* @ref _DataType_input is expected
264-
* @param [in] where mask array
265-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
266-
*/
267-
template <typename _DataType_output, typename _DataType_input>
268-
INP_DLLEXPORT DPCTLSyclEventRef
269-
dpnp_prod_c(DPCTLSyclQueueRef q_ref,
270-
void *result_out,
271-
const void *input_in,
272-
const shape_elem_type *input_shape,
273-
const size_t input_shape_ndim,
274-
const shape_elem_type *axes,
275-
const size_t axes_ndim,
276-
const void *initial,
277-
const long *where,
278-
const DPCTLEventVectorRef dep_event_vec_ref);
279-
280-
template <typename _DataType_output, typename _DataType_input>
281-
INP_DLLEXPORT void dpnp_prod_c(void *result_out,
282-
const void *input_in,
283-
const shape_elem_type *input_shape,
284-
const size_t input_shape_ndim,
285-
const shape_elem_type *axes,
286-
const size_t axes_ndim,
287-
const void *initial,
288-
const long *where);
289-
290-
/**
291-
* @ingroup BACKEND_API
292-
293-
* @brief math library implementation of argsort function
294-
*
295-
* @param [in] q_ref Reference to SYCL queue.
296-
* @param [in] array Input array with data.
297-
* @param [out] result Output array with indices.
298-
* @param [in] size Number of elements in input arrays.
299-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
300-
*/
301-
template <typename _DataType, typename _idx_DataType>
302-
INP_DLLEXPORT DPCTLSyclEventRef
303-
dpnp_argsort_c(DPCTLSyclQueueRef q_ref,
304-
void *array,
305-
void *result,
306-
size_t size,
307-
const DPCTLEventVectorRef dep_event_vec_ref);
308-
309-
template <typename _DataType, typename _idx_DataType>
310-
INP_DLLEXPORT void dpnp_argsort_c(void *array, void *result, size_t size);
311-
312-
/**
313-
* @ingroup BACKEND_API
314-
* @brief math library implementation of searchsorted function
315-
*
316-
* @param [in] q_ref Reference to SYCL queue.
317-
* @param [out] result Output array.
318-
* @param [in] array Input array with data.
319-
* @param [in] v Input values to insert into array.
320-
* @param [in] side Param for choosing a case of searching for
321-
* elements.
322-
* @param [in] arr_size Number of elements in input arrays.
323-
* @param [in] v_size Number of elements in input values arrays.
324-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
325-
*/
326-
template <typename _DataType, typename _IndexingType>
327-
INP_DLLEXPORT DPCTLSyclEventRef
328-
dpnp_searchsorted_c(DPCTLSyclQueueRef q_ref,
329-
void *result,
330-
const void *array,
331-
const void *v,
332-
bool side,
333-
const size_t arr_size,
334-
const size_t v_size,
335-
const DPCTLEventVectorRef dep_event_vec_ref);
336-
337-
template <typename _DataType, typename _IndexingType>
338-
INP_DLLEXPORT void dpnp_searchsorted_c(void *result,
339-
const void *array,
340-
const void *v,
341-
bool side,
342-
const size_t arr_size,
343-
const size_t v_size);
344-
345198
/**
346199
* @ingroup BACKEND_API
347200
* @brief math library implementation of sort function
@@ -497,48 +350,6 @@ INP_DLLEXPORT void dpnp_median_c(void *array,
497350
const shape_elem_type *axis,
498351
size_t naxis);
499352

500-
/**
501-
* @ingroup BACKEND_API
502-
* @brief math library implementation of argmax function
503-
*
504-
* @param [in] q_ref Reference to SYCL queue.
505-
* @param [in] array Input array with data.
506-
* @param [out] result Output array with indices.
507-
* @param [in] size Number of elements in input array.
508-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
509-
*/
510-
template <typename _DataType, typename _idx_DataType>
511-
INP_DLLEXPORT DPCTLSyclEventRef
512-
dpnp_argmax_c(DPCTLSyclQueueRef q_ref,
513-
void *array,
514-
void *result,
515-
size_t size,
516-
const DPCTLEventVectorRef dep_event_vec_ref);
517-
518-
template <typename _DataType, typename _idx_DataType>
519-
INP_DLLEXPORT void dpnp_argmax_c(void *array, void *result, size_t size);
520-
521-
/**
522-
* @ingroup BACKEND_API
523-
* @brief math library implementation of argmin function
524-
*
525-
* @param [in] q_ref Reference to SYCL queue.
526-
* @param [in] array Input array with data.
527-
* @param [out] result Output array with indices.
528-
* @param [in] size Number of elements in input array.
529-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
530-
*/
531-
template <typename _DataType, typename _idx_DataType>
532-
INP_DLLEXPORT DPCTLSyclEventRef
533-
dpnp_argmin_c(DPCTLSyclQueueRef q_ref,
534-
void *array,
535-
void *result,
536-
size_t size,
537-
const DPCTLEventVectorRef dep_event_vec_ref);
538-
539-
template <typename _DataType, typename _idx_DataType>
540-
INP_DLLEXPORT void dpnp_argmin_c(void *array, void *result, size_t size);
541-
542353
#define MACRO_1ARG_1TYPE_OP(__name__, __operation1__, __operation2__) \
543354
template <typename _DataType> \
544355
INP_DLLEXPORT DPCTLSyclEventRef __name__( \

dpnp/backend/include/dpnp_iface_fptr.hpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@
5959
enum class DPNPFuncName : size_t
6060
{
6161
DPNP_FN_NONE, /**< Very first element of the enumeration */
62-
DPNP_FN_ARGMAX, /**< Used in numpy.argmax() impl */
63-
DPNP_FN_ARGMIN, /**< Used in numpy.argmin() impl */
64-
DPNP_FN_ARGSORT, /**< Used in numpy.argsort() impl */
6562
DPNP_FN_CHOOSE, /**< Used in numpy.choose() impl */
6663
DPNP_FN_CHOOSE_EXT, /**< Used in numpy.choose() impl, requires extra
6764
parameters */
@@ -89,7 +86,6 @@ enum class DPNPFuncName : size_t
8986
DPNP_FN_PARTITION, /**< Used in numpy.partition() impl */
9087
DPNP_FN_PARTITION_EXT, /**< Used in numpy.partition() impl, requires extra
9188
parameters */
92-
DPNP_FN_PROD, /**< Used in numpy.prod() impl */
9389
DPNP_FN_RNG_BETA, /**< Used in numpy.random.beta() impl */
9490
DPNP_FN_RNG_BETA_EXT, /**< Used in numpy.random.beta() impl, requires extra
9591
parameters */
@@ -207,9 +203,7 @@ enum class DPNPFuncName : size_t
207203
DPNP_FN_RNG_ZIPF, /**< Used in numpy.random.zipf() impl */
208204
DPNP_FN_RNG_ZIPF_EXT, /**< Used in numpy.random.zipf() impl, requires extra
209205
parameters */
210-
DPNP_FN_SEARCHSORTED, /**< Used in numpy.searchsorted() impl */
211206
DPNP_FN_SORT, /**< Used in numpy.sort() impl */
212-
DPNP_FN_SUM, /**< Used in numpy.sum() impl */
213207
DPNP_FN_ZEROS, /**< Used in numpy.zeros() impl */
214208
DPNP_FN_ZEROS_LIKE, /**< Used in numpy.zeros_like() impl */
215209
DPNP_FN_LAST, /**< The latest element of the enumeration */

0 commit comments

Comments
 (0)