|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
Concrete DeviceHostSingleAllocationBase using std::vector<uint8_t> for host memory and DeviceStorage for device memory.
More...
#include <Vector.hpp>
Public Member Functions | |
| DeviceHostSingleAllocationDirect ()=default | |
| ~DeviceHostSingleAllocationDirect () override | |
| void | allocate (size_t bytes, DeviceBackend B=DeviceBackend::Unknown) override |
Allocate bytes on backend B (or on the host when Unknown). | |
| void | free () override |
| Release the allocation. | |
| size_t | bytes () const override |
| Allocation size in bytes. | |
| uint8_t * | get () override |
| Typed byte pointer to the current allocation. | |
| DeviceBackend | device () override |
| Which backend currently owns the allocation. | |
| void | copy_to_host (uint8_t *host_dst, size_t n) override |
Copy n bytes from this allocation into host_dst. | |
| void | copy_from_host (uint8_t *host_src, size_t n) override |
Copy n bytes from host_src into this allocation. | |
| std::unique_ptr< DeviceHostSingleAllocationBase > | clone () override |
| Deep copy; returns a new allocation containing the same bytes. | |
Public Member Functions inherited from DNDS::DeviceHostSingleAllocationBase | |
| DeviceHostSingleAllocationBase ()=default | |
| virtual | ~DeviceHostSingleAllocationBase () |
Concrete DeviceHostSingleAllocationBase using std::vector<uint8_t> for host memory and DeviceStorage for device memory.
Definition at line 52 of file Vector.hpp.
|
default |
|
inlineoverride |
Definition at line 64 of file Vector.hpp.
|
inlineoverridevirtual |
Allocate bytes on backend B (or on the host when Unknown).
Implements DNDS::DeviceHostSingleAllocationBase.
Definition at line 66 of file Vector.hpp.
|
inlineoverridevirtual |
Allocation size in bytes.
Implements DNDS::DeviceHostSingleAllocationBase.
Definition at line 84 of file Vector.hpp.
|
inlineoverridevirtual |
Deep copy; returns a new allocation containing the same bytes.
Implements DNDS::DeviceHostSingleAllocationBase.
Definition at line 121 of file Vector.hpp.
|
inlineoverridevirtual |
Copy n bytes from host_src into this allocation.
Implements DNDS::DeviceHostSingleAllocationBase.
Definition at line 109 of file Vector.hpp.
|
inlineoverridevirtual |
Copy n bytes from this allocation into host_dst.
Implements DNDS::DeviceHostSingleAllocationBase.
Definition at line 97 of file Vector.hpp.
|
inlineoverridevirtual |
Which backend currently owns the allocation.
Implements DNDS::DeviceHostSingleAllocationBase.
Definition at line 95 of file Vector.hpp.
|
inlineoverridevirtual |
Release the allocation.
Implements DNDS::DeviceHostSingleAllocationBase.
Definition at line 77 of file Vector.hpp.
|
inlineoverridevirtual |
Typed byte pointer to the current allocation.
Implements DNDS::DeviceHostSingleAllocationBase.
Definition at line 85 of file Vector.hpp.