HIP: Heterogenous-computing Interface for Portability
|
#include <hip_runtime_api.h>
Public Attributes | ||
hipResourceType | resourceType | |
Resource type. | ||
union { | ||
hipMipmappedArray mipmap | ||
hipArray_t array | ||
} | resource | |
hipArraySparseSubresourceType | subresourceType | |
Sparse subresource type. | ||
union { | ||
struct { | ||
unsigned int level | ||
For mipmapped arrays must be a valid mipmap level. For arrays must be zero. | ||
unsigned int layer | ||
For layered arrays must be a valid layer index. Otherwise, must be zero. | ||
unsigned int offsetX | ||
X offset in elements. | ||
unsigned int offsetY | ||
Y offset in elements. | ||
unsigned int offsetZ | ||
Z offset in elements. | ||
unsigned int extentWidth | ||
Width in elements. | ||
unsigned int extentHeight | ||
Height in elements. | ||
unsigned int extentDepth | ||
Depth in elements. | ||
} sparseLevel | ||
struct { | ||
unsigned int layer | ||
For layered arrays must be a valid layer index. Otherwise, must be zero. | ||
unsigned long long offset | ||
Offset within mip tail. | ||
unsigned long long size | ||
Extent in bytes. | ||
} miptail | ||
} | subresource | |
hipMemOperationType | memOperationType | |
Memory operation type. | ||
hipMemHandleType | memHandleType | |
Memory handle type. | ||
union { | ||
hipMemGenericAllocationHandle_t memHandle | ||
} | memHandle | |
unsigned int | deviceBitMask | |
Device ordinal bit mask. | ||
unsigned int | flags | |
flags for future use, must be zero now. | ||
unsigned int | reserved [2] | |
Reserved for future use, must be zero now. | ||
Map info for arrays
unsigned long long hipArrayMapInfo::offset |
Offset within mip tail.
Offset within the memory.