4#include "dpnp_iterator.hpp"
8using dpnpc_value_t = dpnpc_it_t::value_type;
9using dpnpc_index_t = dpnpc_it_t::size_type;
11template <
typename _DataType>
12vector<_DataType> get_input_data(
const vector<dpnpc_index_t> &shape)
14 const dpnpc_index_t size =
15 accumulate(shape.begin(), shape.end(), dpnpc_index_t(1),
16 multiplies<dpnpc_index_t>());
18 vector<_DataType> input_data(size);
19 iota(input_data.begin(), input_data.end(),
25template <
typename _DataType>
26_DataType *get_shared_data(
const vector<_DataType> &input_data)
28 const size_t data_size_in_bytes = input_data.size() *
sizeof(_DataType);
29 _DataType *shared_data =
31 copy(input_data.begin(), input_data.end(), shared_data);
Iterator for DPNPC_id type.
char * dpnp_memory_alloc_c(DPCTLSyclQueueRef q_ref, size_t size_in_bytes)
SYCL queue memory allocation.