43#ifndef BACKEND_IFACE_H
44#define BACKEND_IFACE_H
50#define INP_DLLEXPORT __declspec(dllexport)
57typedef SSIZE_T ssize_t;
60typedef ssize_t shape_elem_type;
62#include <dpctl_sycl_interface.h>
64#include "dpnp_iface_random.hpp"
93 size_t size_in_bytes);
96INP_DLLEXPORT
void dpnp_memory_free_c(DPCTLSyclQueueRef q_ref,
void *ptr);
97INP_DLLEXPORT
void dpnp_memory_free_c(
void *ptr);
99INP_DLLEXPORT
void dpnp_memory_memcpy_c(DPCTLSyclQueueRef q_ref,
102 size_t size_in_bytes);
104 dpnp_memory_memcpy_c(
void *dst,
const void *src,
size_t size_in_bytes);
119template <
typename _DataType>
120INP_DLLEXPORT DPCTLSyclEventRef
126 const shape_elem_type *shape,
128 const DPCTLEventVectorRef dep_event_vec_ref);
130template <
typename _DataType>
135 const shape_elem_type *shape,
148template <
typename _DataType>
149INP_DLLEXPORT DPCTLSyclEventRef
154 const DPCTLEventVectorRef dep_event_vec_ref);
156template <
typename _DataType>
157INP_DLLEXPORT
void dpnp_initval_c(
void *result1,
void *value,
size_t size);
168template <
typename _DataType>
169INP_DLLEXPORT DPCTLSyclEventRef
173 const DPCTLEventVectorRef dep_event_vec_ref);
175template <
typename _DataType>
176INP_DLLEXPORT
void dpnp_ones_c(
void *result,
size_t size);
187template <
typename _DataType>
188INP_DLLEXPORT DPCTLSyclEventRef
192 const DPCTLEventVectorRef dep_event_vec_ref);
194template <
typename _DataType>
206template <
typename _DataType>
207INP_DLLEXPORT DPCTLSyclEventRef
211 const DPCTLEventVectorRef dep_event_vec_ref);
213template <
typename _DataType>
214INP_DLLEXPORT
void dpnp_zeros_c(
void *result,
size_t size);
225template <
typename _DataType>
226INP_DLLEXPORT DPCTLSyclEventRef
230 const DPCTLEventVectorRef dep_event_vec_ref);
232template <
typename _DataType>
DPCTLSyclEventRef dpnp_initval_c(DPCTLSyclQueueRef q_ref, void *result1, void *value, size_t size, const DPCTLEventVectorRef dep_event_vec_ref)
implementation of creating filled with value array function
size_t dpnp_queue_is_cpu_c()
SYCL queue device status.
DPCTLSyclEventRef dpnp_zeros_like_c(DPCTLSyclQueueRef q_ref, void *result, size_t size, const DPCTLEventVectorRef dep_event_vec_ref)
Implementation of zeros_like function.
DPCTLSyclEventRef dpnp_ones_c(DPCTLSyclQueueRef q_ref, void *result, size_t size, const DPCTLEventVectorRef dep_event_vec_ref)
Implementation of ones function.
DPCTLSyclEventRef dpnp_ones_like_c(DPCTLSyclQueueRef q_ref, void *result, size_t size, const DPCTLEventVectorRef dep_event_vec_ref)
Implementation of ones_like function.
char * dpnp_memory_alloc_c(DPCTLSyclQueueRef q_ref, size_t size_in_bytes)
SYCL queue memory allocation.
DPCTLSyclEventRef dpnp_zeros_c(DPCTLSyclQueueRef q_ref, void *result, size_t size, const DPCTLEventVectorRef dep_event_vec_ref)
Implementation of zeros function.
DPCTLSyclEventRef dpnp_partition_c(DPCTLSyclQueueRef q_ref, void *array, void *array2, void *result, const size_t kth, const shape_elem_type *shape, const size_t ndim, const DPCTLEventVectorRef dep_event_vec_ref)
Return a partitioned copy of an array.