Skip to content

Commit

Permalink
Remove dot and multiply from backend
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderKalistratov committed Nov 20, 2024
1 parent 8256472 commit 2f51c9e
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 1,243 deletions.
121 changes: 0 additions & 121 deletions dpnp/backend/include/dpnp_gen_2arg_3type_tbl.hpp

This file was deleted.

94 changes: 0 additions & 94 deletions dpnp/backend/include/dpnp_iface.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,69 +100,6 @@ INP_DLLEXPORT void dpnp_memory_memcpy_c(DPCTLSyclQueueRef q_ref,
INP_DLLEXPORT void
dpnp_memory_memcpy_c(void *dst, const void *src, size_t size_in_bytes);

/**
* @ingroup BACKEND_API
* @brief Custom implementation of dot function
*
* @param [in] q_ref Reference to SYCL queue.
* @param [out] result_out Output array.
* @param [in] result_size Size of output array.
* @param [in] result_ndim Number of output array dimensions.
* @param [in] result_shape Shape of output array.
* @param [in] result_strides Strides of output array.
* @param [in] input1_in First input array.
* @param [in] input1_size Size of first input array.
* @param [in] input1_ndim Number of first input array dimensions.
* @param [in] input1_shape Shape of first input array.
* @param [in] input1_strides Strides of first input array.
* @param [in] input2_in Second input array.
* @param [in] input2_size Size of second input array.
* @param [in] input2_ndim Number of second input array dimensions.
* @param [in] input2_shape Shape of second input array.
* @param [in] input2_strides Strides of second input array.
* @param [in] dep_event_vec_ref Reference to vector of SYCL events.
*/
template <typename _DataType_output,
typename _DataType_input1,
typename _DataType_input2>
INP_DLLEXPORT DPCTLSyclEventRef
dpnp_dot_c(DPCTLSyclQueueRef q_ref,
void *result_out,
const size_t result_size,
const size_t result_ndim,
const shape_elem_type *result_shape,
const shape_elem_type *result_strides,
const void *input1_in,
const size_t input1_size,
const size_t input1_ndim,
const shape_elem_type *input1_shape,
const shape_elem_type *input1_strides,
const void *input2_in,
const size_t input2_size,
const size_t input2_ndim,
const shape_elem_type *input2_shape,
const shape_elem_type *input2_strides,
const DPCTLEventVectorRef dep_event_vec_ref);

template <typename _DataType_output,
typename _DataType_input1,
typename _DataType_input2>
INP_DLLEXPORT void dpnp_dot_c(void *result_out,
const size_t result_size,
const size_t result_ndim,
const shape_elem_type *result_shape,
const shape_elem_type *result_strides,
const void *input1_in,
const size_t input1_size,
const size_t input1_ndim,
const shape_elem_type *input1_shape,
const shape_elem_type *input1_strides,
const void *input2_in,
const size_t input2_size,
const size_t input2_ndim,
const shape_elem_type *input2_shape,
const shape_elem_type *input2_strides);

/**
* @ingroup BACKEND_API
* @brief Return a partitioned copy of an array.
Expand Down Expand Up @@ -271,37 +208,6 @@ INP_DLLEXPORT void dpnp_initval_c(void *result1, void *value, size_t size);

#include <dpnp_gen_1arg_1type_tbl.hpp>

#define MACRO_2ARG_3TYPES_OP(__name__, __operation__, __vec_operation__, \
__vec_types__, __mkl_operation__, __mkl_types__) \
template <typename _DataType_output, typename _DataType_input1, \
typename _DataType_input2> \
INP_DLLEXPORT DPCTLSyclEventRef __name__( \
DPCTLSyclQueueRef q_ref, void *result_out, const size_t result_size, \
const size_t result_ndim, const shape_elem_type *result_shape, \
const shape_elem_type *result_strides, const void *input1_in, \
const size_t input1_size, const size_t input1_ndim, \
const shape_elem_type *input1_shape, \
const shape_elem_type *input1_strides, const void *input2_in, \
const size_t input2_size, const size_t input2_ndim, \
const shape_elem_type *input2_shape, \
const shape_elem_type *input2_strides, const size_t *where, \
const DPCTLEventVectorRef dep_event_vec_ref); \
\
template <typename _DataType_output, typename _DataType_input1, \
typename _DataType_input2> \
INP_DLLEXPORT void __name__( \
void *result_out, const size_t result_size, const size_t result_ndim, \
const shape_elem_type *result_shape, \
const shape_elem_type *result_strides, const void *input1_in, \
const size_t input1_size, const size_t input1_ndim, \
const shape_elem_type *input1_shape, \
const shape_elem_type *input1_strides, const void *input2_in, \
const size_t input2_size, const size_t input2_ndim, \
const shape_elem_type *input2_shape, \
const shape_elem_type *input2_strides, const size_t *where);

#include <dpnp_gen_2arg_3type_tbl.hpp>

/**
* @ingroup BACKEND_API
* @brief modf function.
Expand Down
Loading

0 comments on commit 2f51c9e

Please sign in to comment.