DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
Loading...
Searching...
No Matches
DNDS::DeviceStorage< DeviceBackend::Host > Class Reference

how to resolve int-rowsize duplicate? More...

Inheritance diagram for DNDS::DeviceStorage< DeviceBackend::Host >:
[legend]
Collaboration diagram for DNDS::DeviceStorage< DeviceBackend::Host >:
[legend]

Public Member Functions

 DeviceStorage (size_t n)
 
uint8_t * raw_ptr () override
 Raw byte pointer to the underlying storage.
 
void copy_host_to_device (uint8_t *host_ptr, size_t n_bytes) override
 Copy n_bytes from host_ptr into this device buffer.
 
void copy_device_to_host (uint8_t *host_ptr, size_t n_bytes) override
 Copy n_bytes from this device buffer into host_ptr.
 
void copy_to_device (uint8_t *device_ptr_dst, size_t n_bytes) override
 Device-to-device copy of n_bytes into device_ptr_dst.
 
size_t bytes () const override
 Buffer size in bytes.
 
DeviceBackend backend () const override
 Which backend the buffer lives on.
 
- Public Member Functions inherited from DNDS::DeviceStorageBase
virtual ~DeviceStorageBase ()
 

Detailed Description

how to resolve int-rowsize duplicate?

Definition at line 34 of file DeviceStorage.cpp.

Constructor & Destructor Documentation

◆ DeviceStorage()

DNDS::DeviceStorage< DeviceBackend::Host >::DeviceStorage ( size_t  n)
inlineexplicit

Definition at line 42 of file DeviceStorage.cpp.

Member Function Documentation

◆ backend()

DeviceBackend DNDS::DeviceStorage< DeviceBackend::Host >::backend ( ) const
inlineoverridevirtual

Which backend the buffer lives on.

Implements DNDS::DeviceStorageBase.

Definition at line 83 of file DeviceStorage.cpp.

◆ bytes()

size_t DNDS::DeviceStorage< DeviceBackend::Host >::bytes ( ) const
inlineoverridevirtual

Buffer size in bytes.

=0 is a definition and all virtual functions must be defined to have vtable never omit =0 or use {}

Implements DNDS::DeviceStorageBase.

Definition at line 77 of file DeviceStorage.cpp.

◆ copy_device_to_host()

void DNDS::DeviceStorage< DeviceBackend::Host >::copy_device_to_host ( uint8_t *  host_ptr,
size_t  n_bytes 
)
inlineoverridevirtual

Copy n_bytes from this device buffer into host_ptr.

Implements DNDS::DeviceStorageBase.

Definition at line 61 of file DeviceStorage.cpp.

◆ copy_host_to_device()

void DNDS::DeviceStorage< DeviceBackend::Host >::copy_host_to_device ( uint8_t *  host_ptr,
size_t  n_bytes 
)
inlineoverridevirtual

Copy n_bytes from host_ptr into this device buffer.

Implements DNDS::DeviceStorageBase.

Definition at line 53 of file DeviceStorage.cpp.

◆ copy_to_device()

void DNDS::DeviceStorage< DeviceBackend::Host >::copy_to_device ( uint8_t *  device_ptr_dst,
size_t  n_bytes 
)
inlineoverridevirtual

Device-to-device copy of n_bytes into device_ptr_dst.

Implements DNDS::DeviceStorageBase.

Definition at line 69 of file DeviceStorage.cpp.

◆ raw_ptr()

uint8_t * DNDS::DeviceStorage< DeviceBackend::Host >::raw_ptr ( )
inlineoverridevirtual

Raw byte pointer to the underlying storage.

Implements DNDS::DeviceStorageBase.

Definition at line 47 of file DeviceStorage.cpp.


The documentation for this class was generated from the following file: