OpenLB 1.7
|
Maintain on-device structure for dynamic field access. More...
#include <registry.h>
Classes | |
struct | Data |
Public Member Functions | |
FieldTypeRegistry () | |
~FieldTypeRegistry () | |
template<typename FIELD_TYPE > | |
bool | provides () const |
template<typename FIELD_TYPE > | |
AnyFieldType< T, DESCRIPTOR, Platform::GPU_CUDA > * | get () |
template<typename FIELD_TYPE > | |
void | track (AnyFieldType< T, DESCRIPTOR, Platform::GPU_CUDA > *fieldType) |
void *** | deviceData () |
template<typename FIELD > | |
void | refreshDeviceFieldArray (FieldArrayD< T, DESCRIPTOR, Platform::GPU_CUDA, FIELD > &fieldArray) |
gpu::cuda::AnyDeviceFieldArrayD | deviceFieldArray (std::type_index field) |
std::vector< gpu::cuda::AnyDeviceFieldArrayD > | deviceFieldArrays (const std::vector< std::type_index > &fields) |
Maintain on-device structure for dynamic field access.
Used to enable access to fields that are dynamically allocated instead of being declared by the descriptor.
Definition at line 62 of file registry.h.
olb::FieldTypeRegistry< T, DESCRIPTOR, Platform::GPU_CUDA >::FieldTypeRegistry | ( | ) |
Definition at line 67 of file registry.hh.
olb::FieldTypeRegistry< T, DESCRIPTOR, Platform::GPU_CUDA >::~FieldTypeRegistry | ( | ) |
Definition at line 72 of file registry.hh.
void *** olb::FieldTypeRegistry< T, DESCRIPTOR, Platform::GPU_CUDA >::deviceData | ( | ) |
Definition at line 118 of file registry.hh.
References olb::gpu::cuda::device::copyToDevice().
gpu::cuda::AnyDeviceFieldArrayD olb::FieldTypeRegistry< T, DESCRIPTOR, Platform::GPU_CUDA >::deviceFieldArray | ( | std::type_index | field | ) |
Definition at line 147 of file registry.hh.
References olb::gpu::cuda::AnyDeviceFieldArrayD::data.
std::vector< gpu::cuda::AnyDeviceFieldArrayD > olb::FieldTypeRegistry< T, DESCRIPTOR, Platform::GPU_CUDA >::deviceFieldArrays | ( | const std::vector< std::type_index > & | fields | ) |
Definition at line 160 of file registry.hh.
|
inline |
Definition at line 82 of file registry.h.
|
inline |
Definition at line 77 of file registry.h.
void olb::FieldTypeRegistry< T, DESCRIPTOR, Platform::GPU_CUDA >::refreshDeviceFieldArray | ( | FieldArrayD< T, DESCRIPTOR, Platform::GPU_CUDA, FIELD > & | fieldArray | ) |
Definition at line 132 of file registry.hh.
References olb::gpu::cuda::device::copyToDevice().
void olb::FieldTypeRegistry< T, DESCRIPTOR, Platform::GPU_CUDA >::track | ( | AnyFieldType< T, DESCRIPTOR, Platform::GPU_CUDA > * | fieldType | ) |
Definition at line 77 of file registry.hh.
References olb::gpu::cuda::device::check(), and olb::gpu::cuda::device::copyToDevice().