HCC
HCC is a single-source, C/C++ compiler for heterogeneous computing. It's optimized with HSA (http://www.hsafoundation.com/).
Public Member Functions | Public Attributes | List of all members
hc::AmPointerInfo Class Reference
Collaboration diagram for hc::AmPointerInfo:
Collaboration graph

Public Member Functions

 AmPointerInfo (void *hostPointer, void *devicePointer, void *unalignedDevicePointer, std::size_t sizeBytes, hc::accelerator &acc, bool isInDeviceMem=false, bool isAmManaged=false)
 
AmPointerInfooperator= (const AmPointerInfo &other)
 

Public Attributes

void * _hostPointer
 Host pointer. If host access is not allowed, NULL.
 
void * _devicePointer
 Device pointer.
 
void * _unalignedDevicePointer
 Unaligned device pointer.
 
std::size_t _sizeBytes
 Size of allocation.
 
hc::accelerator _acc
 Accelerator where allocation is physically located.
 
bool _isInDeviceMem
 Memory is physically resident on a device (if false, memory is located on host)
 
bool _isAmManaged
 Memory was allocated by AM and should be freed when am_reset is called.
 
uint64_t _allocSeqNum
 Sequence number of allocation.
 
int _appId
 App-specific storage. (Used by HIP to store deviceID)
 
unsigned _appAllocationFlags
 App-specific allocation flags. (Used by HIP to store allocation flags)
 
void * _appPtr
 App-specific pointer to additional information.
 

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