Driver Types#
Data Structures | |
| struct | hipChannelFormatDesc |
| struct | HIP_ARRAY_DESCRIPTOR |
| struct | HIP_ARRAY3D_DESCRIPTOR |
| struct | hip_Memcpy2D |
| struct | hipMipmappedArray_t |
| struct | HIP_TEXTURE_DESC |
| struct | hipResourceDesc |
| struct | HIP_RESOURCE_DESC |
| struct | hipResourceViewDesc |
| struct | HIP_RESOURCE_VIEW_DESC |
| struct | hipPitchedPtr |
| struct | hipExtent |
| struct | hipPos |
| struct | hipMemcpy3DParms |
| struct | HIP_MEMCPY3D |
| struct | hipMemLocation |
| struct | hipMemcpyAttributes |
| struct | hipOffset3D |
| struct | hipMemcpy3DOperand |
| struct | hipMemcpy3DBatchOp |
| struct | hipMemcpy3DPeerParms |
| union | hipResourceDesc.res |
| struct | hipResourceDesc.res.array |
| struct | hipResourceDesc.res.mipmap |
| struct | hipResourceDesc.res.linear |
| struct | hipResourceDesc.res.pitch2D |
| union | HIP_RESOURCE_DESC.res |
| struct | HIP_RESOURCE_DESC.res.array |
| struct | HIP_RESOURCE_DESC.res.mipmap |
| struct | HIP_RESOURCE_DESC.res.linear |
| struct | HIP_RESOURCE_DESC.res.pitch2D |
| struct | HIP_RESOURCE_DESC.res.reserved |
| union | hipMemcpy3DOperand.op |
| struct | hipMemcpy3DOperand.op.ptr |
| struct | hipMemcpy3DOperand.op.array |
Macros | |
| #define | HIP_TRSA_OVERRIDE_FORMAT 0x01 |
| The hipTexRefSetArray function flags parameter override format value. | |
| #define | HIP_TRSF_READ_AS_INTEGER 0x01 |
| The hipTexRefSetFlags function flags parameter read as integer value. | |
| #define | HIP_TRSF_NORMALIZED_COORDINATES 0x02 |
| The hipTexRefSetFlags function flags parameter normalized coordinate value. | |
| #define | HIP_TRSF_SRGB 0x10 |
| The hipTexRefSetFlags function flags parameter srgb value. | |
Typedefs | |
| typedef void * | hipDeviceptr_t |
| typedef struct hipArray * | hipArray_t |
| typedef const struct hipArray * | hipArray_const_t |
| typedef hipMipmappedArray_t | hipmipmappedArray |
| typedef const struct hipMipmappedArray * | hipMipmappedArray_const_t |
Detailed Description
This section describes the driver data types.
Data Structure Documentation
◆ hipChannelFormatDesc
| struct hipChannelFormatDesc |
HIP channel format descriptor
| Data Fields | ||
|---|---|---|
| enum hipChannelFormatKind | f | Channel format kind. |
| int | w | |
| int | x | |
| int | y | |
| int | z | |
◆ HIP_ARRAY_DESCRIPTOR
| struct HIP_ARRAY_DESCRIPTOR |
HIP array descriptor
| Data Fields | ||
|---|---|---|
| enum hipArray_Format | Format | Format of the array. |
| size_t | Height | Height of the array. |
| unsigned int | NumChannels | Number of channels of the array. |
| size_t | Width | Width of the array. |
◆ HIP_ARRAY3D_DESCRIPTOR
| struct HIP_ARRAY3D_DESCRIPTOR |
HIP 3D array descriptor
| Data Fields | ||
|---|---|---|
| size_t | Depth | Depth of the array. |
| unsigned int | Flags | Flags of the array. |
| enum hipArray_Format | Format | Format of the array. |
| size_t | Height | Height of the array. |
| unsigned int | NumChannels | Number of channels of the array. |
| size_t | Width | Width of the array. |
◆ hip_Memcpy2D
| struct hip_Memcpy2D |
HIP 2D memory copy parameters
| Data Fields | ||
|---|---|---|
| hipArray_t | dstArray | Destination array. |
| hipDeviceptr_t | dstDevice | Destination device. |
| void * | dstHost | Destination pointer. |
| hipMemoryType | dstMemoryType | Destination memory type. |
| size_t | dstPitch | Destination pitch. |
| size_t | dstXInBytes | Destination width in bytes. |
| size_t | dstY | Destination height. |
| size_t | Height | Height of the 2D memory copy. |
| hipArray_t | srcArray | Source array. |
| hipDeviceptr_t | srcDevice | Source device. |
| const void * | srcHost | Source pointer. |
| hipMemoryType | srcMemoryType | Source memory type. |
| size_t | srcPitch | Source pitch. |
| size_t | srcXInBytes | Source width in bytes. |
| size_t | srcY | Source height. |
| size_t | WidthInBytes | Width in bytes of the 2D memory copy. |
◆ hipMipmappedArray
| struct hipMipmappedArray |
HIP mipmapped array
HIP mipmapped array pointer
| Data Fields | ||
|---|---|---|
| void * | data | Data pointer of the mipmapped array. |
| unsigned int | depth | Depth of the mipmapped array. |
| struct hipChannelFormatDesc | desc | Description of the mipmapped array. |
| unsigned int | flags | Flags of the mipmapped array. |
| enum hipArray_Format | format | Format of the mipmapped array. |
| unsigned int | height | Height of the mipmapped array. |
| unsigned int | max_mipmap_level | Maximum level of the mipmapped array. |
| unsigned int | min_mipmap_level | Minimum level of the mipmapped array. |
| unsigned int | num_channels | Number of channels of the mipmapped array. |
| unsigned int | type | Type of the mipmapped array. |
| unsigned int | width | Width of the mipmapped array. |
◆ HIP_TEXTURE_DESC
| struct HIP_TEXTURE_DESC |
HIP texture descriptor
| Data Fields | ||
|---|---|---|
| HIPaddress_mode | addressMode[3] | Address modes. |
| float | borderColor[4] | Border Color. |
| HIPfilter_mode | filterMode | Filter mode. |
| unsigned int | flags | Flags. |
| unsigned int | maxAnisotropy | Maximum anisotropy ratio. |
| float | maxMipmapLevelClamp | Mipmap maximum level clamp. |
| float | minMipmapLevelClamp | Mipmap minimum level clamp. |
| HIPfilter_mode | mipmapFilterMode | Mipmap filter mode. |
| float | mipmapLevelBias | Mipmap level bias. |
| int | reserved[12] | |
◆ hipResourceDesc
| struct hipResourceDesc |
HIP resource descriptor
| Data Fields | ||
|---|---|---|
| union hipResourceDesc.res | res | |
| enum hipResourceType | resType | Resource type. |
◆ HIP_RESOURCE_DESC
| struct HIP_RESOURCE_DESC |
HIP resource view descriptor struct
| Data Fields | ||
|---|---|---|
| unsigned int | flags | Flags (must be zero) |
| union HIP_RESOURCE_DESC.res | res | |
| HIPresourcetype | resType | Resource type. |
◆ hipResourceViewDesc
| struct hipResourceViewDesc |
HIP resource view descriptor
| Data Fields | ||
|---|---|---|
| size_t | depth | Depth of the resource view. |
| unsigned int | firstLayer | First layer index. |
| unsigned int | firstMipmapLevel | First defined mipmap level. |
| enum hipResourceViewFormat | format | Resource view format. |
| size_t | height | Height of the resource view. |
| unsigned int | lastLayer | Last layer index. |
| unsigned int | lastMipmapLevel | Last defined mipmap level. |
| size_t | width | Width of the resource view. |
◆ HIP_RESOURCE_VIEW_DESC
| struct HIP_RESOURCE_VIEW_DESC |
Resource view descriptor
| Data Fields | ||
|---|---|---|
| size_t | depth | Depth of the resource view. |
| unsigned int | firstLayer | First layer index. |
| unsigned int | firstMipmapLevel | First defined mipmap level. |
| HIPresourceViewFormat | format | Resource view format. |
| size_t | height | Height of the resource view. |
| unsigned int | lastLayer | Last layer index. |
| unsigned int | lastMipmapLevel | Last defined mipmap level. |
| unsigned int | reserved[16] | |
| size_t | width | Width of the resource view. |
◆ hipPitchedPtr
| struct hipPitchedPtr |
◆ hipExtent
◆ hipPos
| struct hipPos |
◆ hipMemcpy3DParms
| struct hipMemcpy3DParms |
HIP 3D memory copy parameters
| Data Fields | ||
|---|---|---|
| hipArray_t | dstArray | Destination array. |
| struct hipPos | dstPos | Destination position. |
| struct hipPitchedPtr | dstPtr | Destination pointer. |
| struct hipExtent | extent | Extent of 3D memory copy. |
| enum hipMemcpyKind | kind | Kind of 3D memory copy. |
| hipArray_t | srcArray | Source array. |
| struct hipPos | srcPos | Source position. |
| struct hipPitchedPtr | srcPtr | Source pointer. |
◆ HIP_MEMCPY3D
| struct HIP_MEMCPY3D |
HIP 3D memory copy
| Data Fields | ||
|---|---|---|
| size_t | Depth | Depth in bytes of 3D memory copy. |
| hipArray_t | dstArray | Destination array. |
| hipDeviceptr_t | dstDevice | Destination device. |
| size_t | dstHeight | Destination height. |
| void * | dstHost | Destination host pointer. |
| size_t | dstLOD | Destination LOD. |
| hipMemoryType | dstMemoryType | Destination memory type. |
| size_t | dstPitch | Destination pitch. |
| size_t | dstXInBytes | Destination X in bytes. |
| size_t | dstY | Destination Y. |
| size_t | dstZ | Destination Z. |
| size_t | Height | Height in bytes of 3D memory copy. |
| hipArray_t | srcArray | Source array. |
| hipDeviceptr_t | srcDevice | Source device. |
| size_t | srcHeight | Source height. |
| const void * | srcHost | Source host pointer. |
| size_t | srcLOD | Source LOD. |
| hipMemoryType | srcMemoryType | Source memory type. |
| size_t | srcPitch | Source pitch. |
| size_t | srcXInBytes | Source X in bytes. |
| size_t | srcY | Source Y. |
| size_t | srcZ | Source Z. |
| size_t | WidthInBytes | Width in bytes of 3D memory copy. |
◆ hipMemLocation
| struct hipMemLocation |
Specifies a memory location.
To specify a gpu, set type = hipMemLocationTypeDevice and set id = the gpu's device ID
| Data Fields | ||
|---|---|---|
| int | id |
Identifier for the provided location type hipMemLocationType. |
| hipMemLocationType | type | Specifies the location type, which describes the meaning of id. |
◆ hipMemcpyAttributes
| struct hipMemcpyAttributes |
Attributes for copies within a batch.
| Data Fields | ||
|---|---|---|
| hipMemLocation | dstLocHint | Location hint for destination operand. |
| unsigned int | flags | Additional Flags for copies. See hipMemcpyFlags. |
| hipMemcpySrcAccessOrder | srcAccessOrder | Source access ordering to be observed for copies with this attribute. |
| hipMemLocation | srcLocHint | Location hint for src operand. |
◆ hipOffset3D
| struct hipOffset3D |
◆ hipMemcpy3DOperand
| struct hipMemcpy3DOperand |
Struct representing an operand for copy with hipMemcpy3DBatchAsync.
| Data Fields | ||
|---|---|---|
| union hipMemcpy3DOperand.op | op | |
| hipMemcpy3DOperandType | type | |
◆ hipMemcpy3DBatchOp
| struct hipMemcpy3DBatchOp |
HIP 3D Batch Op
| Data Fields | ||
|---|---|---|
| hipMemcpy3DOperand | dst | |
| hipExtent | extent | |
| unsigned int | flags | |
| hipMemcpy3DOperand | src | |
| hipMemcpySrcAccessOrder | srcAccessOrder | |
◆ hipMemcpy3DPeerParms
| struct hipMemcpy3DPeerParms |
| Data Fields | ||
|---|---|---|
| hipArray_t | dstArray | Destination memory address. |
| int | dstDevice | Destination device. |
| hipPos | dstPos | Destination position offset. |
| hipPitchedPtr | dstPtr | Pitched destination memory address. |
| hipExtent | extent | Requested memory copy size. |
| hipArray_t | srcArray | Source memory address. |
| int | srcDevice | Source device. |
| hipPos | srcPos | Source position offset. |
| hipPitchedPtr | srcPtr | Pitched source memory address. |
◆ hipResourceDesc.res
| union hipResourceDesc.res |
| Data Fields | ||
|---|---|---|
| struct hipResourceDesc.res.array | array | |
| struct hipResourceDesc.res.linear | linear | |
| struct hipResourceDesc.res.mipmap | mipmap | |
| struct hipResourceDesc.res.pitch2D | pitch2D | |
◆ hipResourceDesc.res.array
| struct hipResourceDesc.res.array |
| Data Fields | ||
|---|---|---|
| hipArray_t | array | HIP array. |
◆ hipResourceDesc.res.mipmap
◆ hipResourceDesc.res.linear
| struct hipResourceDesc.res.linear |
| Data Fields | ||
|---|---|---|
| struct hipChannelFormatDesc | desc | Channel format description. |
| void * | devPtr | Device pointer. |
| size_t | sizeInBytes | Size in bytes. |
◆ hipResourceDesc.res.pitch2D
| struct hipResourceDesc.res.pitch2D |
| Data Fields | ||
|---|---|---|
| struct hipChannelFormatDesc | desc | Channel format description. |
| void * | devPtr | Device pointer. |
| size_t | height | Height of the array in elements. |
| size_t | pitchInBytes | Pitch between two rows in bytes. |
| size_t | width | Width of the array in elements. |
◆ HIP_RESOURCE_DESC.res
| union HIP_RESOURCE_DESC.res |
| Data Fields | ||
|---|---|---|
| struct HIP_RESOURCE_DESC.res.array | array | |
| struct HIP_RESOURCE_DESC.res.linear | linear | |
| struct HIP_RESOURCE_DESC.res.mipmap | mipmap | |
| struct HIP_RESOURCE_DESC.res.pitch2D | pitch2D | |
| struct HIP_RESOURCE_DESC.res.reserved | reserved | |
◆ HIP_RESOURCE_DESC.res.array
| struct HIP_RESOURCE_DESC.res.array |
| Data Fields | ||
|---|---|---|
| hipArray_t | hArray | HIP array. |
◆ HIP_RESOURCE_DESC.res.mipmap
| struct HIP_RESOURCE_DESC.res.mipmap |
◆ HIP_RESOURCE_DESC.res.linear
| struct HIP_RESOURCE_DESC.res.linear |
| Data Fields | ||
|---|---|---|
| hipDeviceptr_t | devPtr | Device pointer. |
| hipArray_Format | format | Array format. |
| unsigned int | numChannels | Channels per array element. |
| size_t | sizeInBytes | Size in bytes. |
◆ HIP_RESOURCE_DESC.res.pitch2D
| struct HIP_RESOURCE_DESC.res.pitch2D |
| Data Fields | ||
|---|---|---|
| hipDeviceptr_t | devPtr | Device pointer. |
| hipArray_Format | format | Array format. |
| size_t | height | Height of the array in elements. |
| unsigned int | numChannels | Channels per array element. |
| size_t | pitchInBytes | Pitch between two rows in bytes. |
| size_t | width | Width of the array in elements. |
◆ HIP_RESOURCE_DESC.res.reserved
◆ hipMemcpy3DOperand.op
| union hipMemcpy3DOperand.op |
| Data Fields | ||
|---|---|---|
| struct hipMemcpy3DOperand.op.array | array | |
| struct hipMemcpy3DOperand.op.ptr | ptr | |
◆ hipMemcpy3DOperand.op.ptr
| struct hipMemcpy3DOperand.op.ptr |
| Data Fields | ||
|---|---|---|
| size_t | layerHeight | Height of each layer in elements. |
| hipMemLocation | locHint | Location Hint for the operand. |
| void * | ptr | |
| size_t | rowLength | Length of each row in elements. |
◆ hipMemcpy3DOperand.op.array
| struct hipMemcpy3DOperand.op.array |
| Data Fields | ||
|---|---|---|
| hipArray_t | array | Array struct for hipMemcpyOperandTypeArray. |
| hipOffset3D | offset | Offset into array in elements. |
Macro Definition Documentation
◆ HIP_TRSA_OVERRIDE_FORMAT
| #define HIP_TRSA_OVERRIDE_FORMAT 0x01 |
The hipTexRefSetArray function flags parameter override format value.
◆ HIP_TRSF_NORMALIZED_COORDINATES
| #define HIP_TRSF_NORMALIZED_COORDINATES 0x02 |
The hipTexRefSetFlags function flags parameter normalized coordinate value.
◆ HIP_TRSF_READ_AS_INTEGER
| #define HIP_TRSF_READ_AS_INTEGER 0x01 |
The hipTexRefSetFlags function flags parameter read as integer value.
◆ HIP_TRSF_SRGB
| #define HIP_TRSF_SRGB 0x10 |
The hipTexRefSetFlags function flags parameter srgb value.
Typedef Documentation
◆ hipArray_const_t
| typedef const struct hipArray* hipArray_const_t |
◆ hipArray_t
| typedef struct hipArray* hipArray_t |
◆ hipDeviceptr_t
| typedef void* hipDeviceptr_t |
◆ hipmipmappedArray
| typedef hipMipmappedArray_t hipmipmappedArray |
◆ hipMipmappedArray_const_t
| typedef const struct hipMipmappedArray* hipMipmappedArray_const_t |
Enumeration Type Documentation
◆ HIPaddress_mode
| enum HIPaddress_mode |
◆ hipArray_Format
| enum hipArray_Format |
HIP array format
◆ hipChannelFormatKind
| enum hipChannelFormatKind |
◆ HIPfilter_mode
| enum HIPfilter_mode |
◆ hipFunction_attribute
◆ hipMemcpy3DOperandType
◆ hipMemcpyFlags
| enum hipMemcpyFlags |
Flags to specify for copies within a batch. Used with hipMemcpyBatchAsync
◆ hipMemcpyKind
| enum hipMemcpyKind |
Memory copy types
◆ hipMemcpySrcAccessOrder
Flags to specify order in which source pointer is accessed by Batch memcpy
◆ hipMemLocationType
| enum hipMemLocationType |
Specifies the type of location
◆ hipPointer_attribute
| enum hipPointer_attribute |
◆ hipResourceType
| enum hipResourceType |
◆ hipResourcetype
| enum hipResourcetype |
◆ hipResourceViewFormat
HIP texture resource view formats
◆ HIPresourceViewFormat
HIP texture resource view formats