Skip to content

Commit 92d2332

Browse files
committed
Remove the old modf implementation from legacy backend
1 parent c856c25 commit 92d2332

File tree

11 files changed

+5
-300
lines changed

11 files changed

+5
-300
lines changed

dpnp/backend/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
set(DPNP_SRC
3131
kernels/dpnp_krnl_arraycreation.cpp
3232
kernels/dpnp_krnl_common.cpp
33-
kernels/dpnp_krnl_mathematical.cpp
3433
kernels/dpnp_krnl_random.cpp
3534
kernels/dpnp_krnl_sorting.cpp
3635
src/dpnp_iface_fptr.cpp

dpnp/backend/include/dpnp_iface.hpp

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -156,32 +156,6 @@ INP_DLLEXPORT DPCTLSyclEventRef
156156
template <typename _DataType>
157157
INP_DLLEXPORT void dpnp_initval_c(void *result1, void *value, size_t size);
158158

159-
/**
160-
* @ingroup BACKEND_API
161-
* @brief modf function.
162-
*
163-
* @param [in] q_ref Reference to SYCL queue.
164-
* @param [in] array1_in Input array.
165-
* @param [out] result1_out Output array 1.
166-
* @param [out] result2_out Output array 2.
167-
* @param [in] size Number of elements in input arrays.
168-
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
169-
*/
170-
template <typename _DataType_input, typename _DataType_output>
171-
INP_DLLEXPORT DPCTLSyclEventRef
172-
dpnp_modf_c(DPCTLSyclQueueRef q_ref,
173-
void *array1_in,
174-
void *result1_out,
175-
void *result2_out,
176-
size_t size,
177-
const DPCTLEventVectorRef dep_event_vec_ref);
178-
179-
template <typename _DataType_input, typename _DataType_output>
180-
INP_DLLEXPORT void dpnp_modf_c(void *array1_in,
181-
void *result1_out,
182-
void *result2_out,
183-
size_t size);
184-
185159
/**
186160
* @ingroup BACKEND_API
187161
* @brief Implementation of ones function

dpnp/backend/include/dpnp_iface_fptr.hpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,11 @@ enum class DPNPFuncName : size_t
6464
DPNP_FN_NONE, /**< Very first element of the enumeration */
6565
DPNP_FN_INITVAL, /**< Used in numpy ones, ones_like, zeros, zeros_like impls
6666
*/
67-
DPNP_FN_INITVAL_EXT, /**< Used in numpy ones, ones_like, zeros, zeros_like
68-
impls */
69-
DPNP_FN_MODF, /**< Used in numpy.modf() impl */
70-
DPNP_FN_MODF_EXT, /**< Used in numpy.modf() impl, requires extra parameters
71-
*/
72-
DPNP_FN_ONES, /**< Used in numpy.ones() impl */
73-
DPNP_FN_ONES_LIKE, /**< Used in numpy.ones_like() impl */
74-
DPNP_FN_PARTITION, /**< Used in numpy.partition() impl */
67+
DPNP_FN_INITVAL_EXT, /**< Used in numpy ones, ones_like, zeros, zeros_like
68+
impls */
69+
DPNP_FN_ONES, /**< Used in numpy.ones() impl */
70+
DPNP_FN_ONES_LIKE, /**< Used in numpy.ones_like() impl */
71+
DPNP_FN_PARTITION, /**< Used in numpy.partition() impl */
7572
DPNP_FN_PARTITION_EXT, /**< Used in numpy.partition() impl, requires extra
7673
parameters */
7774
DPNP_FN_RNG_BETA, /**< Used in numpy.random.beta() impl */

dpnp/backend/kernels/dpnp_krnl_mathematical.cpp

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

dpnp/backend/src/dpnp_fptr.hpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@ class dpnp_less_comp
161161
*/
162162
void func_map_init_arraycreation(func_map_t &fmap);
163163
void func_map_init_linalg(func_map_t &fmap);
164-
void func_map_init_mathematical(func_map_t &fmap);
165164
void func_map_init_random(func_map_t &fmap);
166165
void func_map_init_sorting(func_map_t &fmap);
167166

dpnp/backend/src/dpnp_iface_fptr.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,6 @@ static func_map_t func_map_init()
100100

101101
func_map_init_arraycreation(fmap);
102102
func_map_init_linalg(fmap);
103-
func_map_init_mathematical(fmap);
104103
func_map_init_random(fmap);
105104
func_map_init_sorting(fmap);
106105

dpnp/backend/src/dpnp_utils.hpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,6 @@
4141

4242
#include <dpnp_iface_fptr.hpp>
4343

44-
/**
45-
* Version of SYCL DPC++ 2023 compiler where a return type of sycl::abs() is
46-
* changed from unsigned integer to signed one of input vector.
47-
*/
48-
#ifndef __SYCL_COMPILER_VECTOR_ABS_CHANGED
49-
#define __SYCL_COMPILER_VECTOR_ABS_CHANGED 20230503L
50-
#endif
51-
5244
/**
5345
* Version of Intel MKL at which transition to OneMKL release 2023.0.0 occurs.
5446
*/

dpnp/dpnp_algo/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929

3030
set(dpnp_algo_pyx_deps
3131
${CMAKE_CURRENT_SOURCE_DIR}/dpnp_algo_sorting.pxi
32-
${CMAKE_CURRENT_SOURCE_DIR}/dpnp_algo_mathematical.pxi
3332
${CMAKE_CURRENT_SOURCE_DIR}/dpnp_algo_indexing.pxi
3433
)
3534

dpnp/dpnp_algo/dpnp_algo.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
cdef extern from "dpnp_iface_fptr.hpp" namespace "DPNPFuncName": # need this namespace for Enum import
3333
cdef enum DPNPFuncName "DPNPFuncName":
34-
DPNP_FN_MODF_EXT
3534
DPNP_FN_PARTITION_EXT
3635
DPNP_FN_RNG_BETA_EXT
3736
DPNP_FN_RNG_BINOMIAL_EXT

dpnp/dpnp_algo/dpnp_algo.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ __all__ = [
4949

5050

5151
include "dpnp_algo_indexing.pxi"
52-
include "dpnp_algo_mathematical.pxi"
5352
include "dpnp_algo_sorting.pxi"
5453

5554

0 commit comments

Comments
 (0)