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);
116template <
typename _DataType>
117INP_DLLEXPORT DPCTLSyclEventRef
122 const DPCTLEventVectorRef dep_event_vec_ref);
124template <
typename _DataType>
125INP_DLLEXPORT
void dpnp_initval_c(
void *result1,
void *value,
size_t size);
136template <
typename _DataType>
137INP_DLLEXPORT DPCTLSyclEventRef
141 const DPCTLEventVectorRef dep_event_vec_ref);
143template <
typename _DataType>
144INP_DLLEXPORT
void dpnp_ones_c(
void *result,
size_t size);
155template <
typename _DataType>
156INP_DLLEXPORT DPCTLSyclEventRef
160 const DPCTLEventVectorRef dep_event_vec_ref);
162template <
typename _DataType>
174template <
typename _DataType>
175INP_DLLEXPORT DPCTLSyclEventRef
179 const DPCTLEventVectorRef dep_event_vec_ref);
181template <
typename _DataType>
182INP_DLLEXPORT
void dpnp_zeros_c(
void *result,
size_t size);
193template <
typename _DataType>
194INP_DLLEXPORT DPCTLSyclEventRef
198 const DPCTLEventVectorRef dep_event_vec_ref);
200template <
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.