DPNP C++ backend kernel library 0.20.0dev0
Data Parallel Extension for NumPy*
|
Adapter for the memory given by parameters in the DPNPC functions. More...
#include <dpnpc_memory_adapter.hpp>
Public Member Functions | |
DPNPC_ptr_adapter (DPCTLSyclQueueRef q_ref, const void *src_ptr, const size_t size, bool target_no_sycl=false, bool copy_back_request=false) | |
bool | is_memcpy_required (sycl::usm::alloc src_ptr_type) |
_DataType * | get_ptr () const |
void | copy_data_back () const |
void | depends_on (const std::vector< sycl::event > &new_deps) |
void | depends_on (const sycl::event &new_dep) |
Adapter for the memory given by parameters in the DPNPC functions.
This type should be used to accommodate memory in the function. For example, if the kernel must be executed in "queue_1" which is host based, but input arrays are located on other "queue_2" or unknown place.
Also, some functions completely host based and has no SYCL environment.
Definition at line 48 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 68 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 118 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 156 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 167 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 173 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 151 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 136 of file dpnpc_memory_adapter.hpp.