DPNP C++ backend kernel library 0.18.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 45 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 65 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 115 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 153 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 164 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 170 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 148 of file dpnpc_memory_adapter.hpp.
|
inline |
Definition at line 133 of file dpnpc_memory_adapter.hpp.