Struct HostMacroProperty_MetaData
Defined in File HostMacroProperty.cuh
Struct Documentation
-
struct HostMacroProperty_MetaData
Public Functions
-
inline HostMacroProperty_MetaData(void *_d_base_ptr, const std::array<unsigned int, 4> &_dims, size_t _type_size, bool _device_read_flag, const std::string &name, cudaStream_t _stream)
Constructor
-
inline ~HostMacroProperty_MetaData()
-
inline void download()
Download data
See also
Note
Only works first time
-
inline void force_download()
Downloads data from device to host (allocating host buffer if required) Sets has_changed flag to false, as host is current to device
-
inline void upload()
Upload data
-
inline HostMacroProperty_MetaData(void *_d_base_ptr, const std::array<unsigned int, 4> &_dims, size_t _type_size, bool _device_read_flag, const std::string &name, cudaStream_t _stream)