5#include <rexlib/core/ndarray/array.hpp>
6#include <rexlib/core/ndarray/const_array_ref.hpp>
8#include <rexlib/core/hardware/memory_resource_affinity.hpp>
13class execution_context;
Container for multidimensional numeric data.
Definition array.hpp:31
Non-owning read-only reference to an array.
Definition const_array_ref.hpp:36
Pairs the hardware resources and the dispatch strategy used to run operations.
Definition execution_context.hpp:43
Arrays, the operations on them and the devices that run those operations.
Definition cpu_device.hpp:10
array to_device_copy(const_array_ref input, const execution_context &context, array *out=nullptr)
Transfer an array to device memory enforcing a copy.
memory_resource_affinity
Enumeration to query memory_resource according to its intended usage.
Definition memory_resource_affinity.hpp:12
array to_host(array &input, const execution_context &context)
Transfer an array to host accessible memory.
array transfer(array &input, memory_resource_affinity affinity, const execution_context &context)
Transfer an array to memory with the requested affinity.
@ input
Fixed by the data type of an input operand.
array to_host_copy(const_array_ref input, const execution_context &context, array *out=nullptr)
Transfer an array to host accessible memory enforcing a copy.
array to_device(array &input, const execution_context &context)
Transfer an array from host to device memory.
array transfer_copy(const_array_ref input, memory_resource_affinity affinity, const execution_context &context, array *out=nullptr)
Transfer an array to memory with the requested affinity enforcing a copy.