include/hip/driver_types.h Source File#
driver_types.h
Go to the documentation of this file.
121typedef struct hipMipmappedArray {
154} HIPresourcetype,
632static inline struct hipPitchedPtr make_hipPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) {
const struct texture< T, dim, readMode > const void size_t int enum hipTextureReadMode readMode const struct texture< T, dim, readMode > const void const struct hipChannelFormatDesc size_t int enum hipTextureReadMode readMode const struct texture< T, dim, readMode > const void size_t size_t height
Definition hip_runtime_api.h:11104
const struct texture< T, dim, readMode > const void * devPtr
Definition hip_runtime_api.h:11063
const struct texture< T, dim, readMode > const void size_t int enum hipTextureReadMode readMode const struct texture< T, dim, readMode > const void const struct hipChannelFormatDesc & desc
Definition hip_runtime_api.h:11083
const struct texture< T, dim, readMode > const void size_t int enum hipTextureReadMode readMode const struct texture< T, dim, readMode > const void const struct hipChannelFormatDesc size_t int enum hipTextureReadMode readMode const struct texture< T, dim, readMode > const void size_t width
Definition hip_runtime_api.h:11104
uint32_t reserved[8]
Reserved; must be 0 (future use).
Definition driver_types.h:561
hipExtent extent
Requested memory copy size.
Definition driver_types.h:619
float maxMipmapLevelClamp
Mipmap maximum level clamp.
Definition driver_types.h:183
unsigned int flags
Additional Flags for copies. See hipMemcpyFlags.
Definition driver_types.h:549
void * addr
GPU address to signal; NULL iff signalOp is None.
Definition driver_types.h:519
struct hipPitchedPtr dstPtr
Destination pointer.
Definition driver_types.h:401
hipMemcpySrcAccessOrder srcAccessOrder
Source access ordering to be observed for copies with this attribute.
Definition driver_types.h:546
hipMemLocation srcLocHint
Location hint for src operand.
Definition driver_types.h:547
uint32_t signalOp
Atomic operation; see hipExtMemcpySignalOp.
Definition driver_types.h:521
unsigned int firstMipmapLevel
First defined mipmap level.
Definition driver_types.h:334
int id
Identifier for the provided location type hipMemLocationType.
Definition driver_types.h:452
unsigned int depth
Depth of the mipmapped array.
Definition driver_types.h:127
hipPitchedPtr dstPtr
Pitched destination memory address.
Definition driver_types.h:617
uint64_t reserved[4]
Reserved; must be 0 (future use)
Definition driver_types.h:501
unsigned int height
Height of the mipmapped array.
Definition driver_types.h:126
size_t WidthInBytes
Width in bytes of the 2D memory copy.
Definition driver_types.h:114
unsigned int NumChannels
Number of channels of the array.
Definition driver_types.h:81
hipMemcpySrcAccessOrder srcAccessOrder
Definition driver_types.h:606
hipMemLocation srcLocHint
Location hint for src operand.
Definition driver_types.h:558
union hipMemcpy3DOperand::@11 op
unsigned int firstMipmapLevel
First defined mipmap level.
Definition driver_types.h:347
hipPitchedPtr srcPtr
Pitched source memory address.
Definition driver_types.h:613
hipMemoryType dstMemoryType
Destination memory type.
Definition driver_types.h:109
hipMemLocationType type
Specifies the location type, which describes the meaning of id.
Definition driver_types.h:451
uint32_t compareOp
Comparison function; see hipExtMemcpyWaitOp.
Definition driver_types.h:499
float mipmapLevelBias
Mipmap level bias.
Definition driver_types.h:181
float minMipmapLevelClamp
Mipmap minimum level clamp.
Definition driver_types.h:182
hipMemcpySrcAccessOrder srcAccessOrder
Source access ordering; see hipMemcpySrcAccessOrder.
Definition driver_types.h:557
unsigned int maxAnisotropy
Maximum anisotropy ratio.
Definition driver_types.h:179
unsigned int lastMipmapLevel
Last defined mipmap level.
Definition driver_types.h:348
uint64_t reserved[5]
Reserved; must be 0 (future use)
Definition driver_types.h:523
enum hipResourceViewFormat format
Resource view format.
Definition driver_types.h:330
unsigned int lastMipmapLevel
Last defined mipmap level.
Definition driver_types.h:335
unsigned int num_channels
Number of channels of the mipmapped array.
Definition driver_types.h:132
size_t WidthInBytes
Width in bytes of 3D memory copy.
Definition driver_types.h:429
hipMemoryType dstMemoryType
Destination memory type.
Definition driver_types.h:423
HIPfilter_mode mipmapFilterMode
Mipmap filter mode.
Definition driver_types.h:180
unsigned int flags
Flags of the mipmapped array.
Definition driver_types.h:130
unsigned int flags
Op selection and hints; see hipMemcpyFlags.
Definition driver_types.h:560
size_t ysize
Logical size of the second dimension of allocation in elements.
Definition driver_types.h:373
uint64_t data
Data value for the atomic operation.
Definition driver_types.h:520
unsigned int firstLayer
First layer index.
Definition driver_types.h:349
enum hipArray_Format Format
Format of the array.
Definition driver_types.h:91
enum hipArray_Format Format
Format of the array.
Definition driver_types.h:80
hipMemoryType srcMemoryType
Source memory type.
Definition driver_types.h:102
unsigned int firstLayer
First layer index.
Definition driver_types.h:336
hipMemoryType srcMemoryType
Source memory type.
Definition driver_types.h:413
size_t height
Height of the resource view.
Definition driver_types.h:345
HIPresourceViewFormat format
Resource view format.
Definition driver_types.h:343
unsigned int max_mipmap_level
Maximum level of the mipmapped array.
Definition driver_types.h:129
void * addr
GPU address to poll; NULL iff compareOp is None.
Definition driver_types.h:496
unsigned int NumChannels
Number of channels of the array.
Definition driver_types.h:92
unsigned int lastLayer
Last layer index.
Definition driver_types.h:350
hipMemLocation dstLocHint
Location hint for destination operand.
Definition driver_types.h:559
uint64_t mask
AND mask applied before comparison (0 = full 64-bit word)
Definition driver_types.h:498
enum hipArray_Format format
Format of the mipmapped array.
Definition driver_types.h:131
struct hipExtent extent
Extent of 3D memory copy.
Definition driver_types.h:402
hipMemLocation dstLocHint
Location hint for destination operand.
Definition driver_types.h:548
union hipResourceDesc::@0 res
unsigned int min_mipmap_level
Minimum level of the mipmapped array.
Definition driver_types.h:128
hipArray_t srcArray
Source memory address.
Definition driver_types.h:611
size_t xsize
Logical size of the first dimension of allocation in elements.
Definition driver_types.h:372
hipArray_t dstArray
Destination memory address.
Definition driver_types.h:615
unsigned int width
Width of the mipmapped array.
Definition driver_types.h:125
const struct hipMipmappedArray * hipMipmappedArray_const_t
Definition driver_types.h:139
@ hipChannelFormatKindFloat
Float channel format.
Definition driver_types.h:37
@ hipChannelFormatKindUnsigned
Unsigned channel format.
Definition driver_types.h:36
@ hipChannelFormatKindSigned
Signed channel format.
Definition driver_types.h:35
@ HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY
Mipmapped array resource.
Definition driver_types.h:151
@ HIP_TR_FILTER_MODE_LINEAR
Filter mode linear.
Definition driver_types.h:170
@ hipMemcpyDeviceToDeviceNoCU
Device-to-Device Copy without using compute units.
Definition driver_types.h:364
@ hipMemcpySrcAccessOrderInvalid
Default Invalid.
Definition driver_types.h:530
@ hipMemcpySrcAccessOrderDuringApiCall
Definition driver_types.h:532
@ hipMemcpySrcAccessOrderStream
Access to source pointer must be in stream order.
Definition driver_types.h:531
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC1
Block-compressed 1.
Definition driver_types.h:256
@ HIP_RES_VIEW_FORMAT_UINT_1X8
1 channel, unsigned 8-bit integers
Definition driver_types.h:232
@ HIP_RES_VIEW_FORMAT_FLOAT_4X32
4 channels, 32-bit floating point
Definition driver_types.h:255
@ HIP_RES_VIEW_FORMAT_UINT_1X32
1 channel, unsigned 32-bit integers
Definition driver_types.h:244
@ HIP_RES_VIEW_FORMAT_UINT_1X16
1 channel, unsigned 16-bit integers
Definition driver_types.h:238
@ HIP_RES_VIEW_FORMAT_UINT_2X16
2 channels, unsigned 16-bit integers
Definition driver_types.h:239
@ HIP_RES_VIEW_FORMAT_SINT_2X16
2 channels, signed 16-bit integers
Definition driver_types.h:242
@ HIP_RES_VIEW_FORMAT_SINT_2X8
2 channels, signed 8-bit integers
Definition driver_types.h:236
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC6H
Block-compressed 6 unsigned half-float.
Definition driver_types.h:263
@ HIP_RES_VIEW_FORMAT_SINT_4X16
4 channels, signed 16-bit integers
Definition driver_types.h:243
@ HIP_RES_VIEW_FORMAT_UINT_2X8
2 channels, unsigned 8-bit integers
Definition driver_types.h:233
@ HIP_RES_VIEW_FORMAT_UINT_4X8
4 channels, unsigned 8-bit integers
Definition driver_types.h:234
@ HIP_RES_VIEW_FORMAT_SINT_1X32
1 channel, signed 32-bit integers
Definition driver_types.h:247
@ HIP_RES_VIEW_FORMAT_NONE
No resource view format (use underlying resource format)
Definition driver_types.h:231
@ HIP_RES_VIEW_FORMAT_SINT_2X32
2 channels, signed 32-bit integers
Definition driver_types.h:248
@ HIP_RES_VIEW_FORMAT_SINT_4X8
4 channels, signed 8-bit integers
Definition driver_types.h:237
@ HIP_RES_VIEW_FORMAT_SIGNED_BC4
Block-compressed 4 signed.
Definition driver_types.h:260
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC7
Block-compressed 7.
Definition driver_types.h:265
@ HIP_RES_VIEW_FORMAT_SIGNED_BC6H
Block-compressed 6 signed half-float.
Definition driver_types.h:264
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC4
Block-compressed 4 unsigned.
Definition driver_types.h:259
@ HIP_RES_VIEW_FORMAT_UINT_4X16
4 channels, unsigned 16-bit integers
Definition driver_types.h:240
@ HIP_RES_VIEW_FORMAT_FLOAT_4X16
4 channels, 16-bit floating point
Definition driver_types.h:252
@ HIP_RES_VIEW_FORMAT_SINT_1X8
1 channel, signed 8-bit integers
Definition driver_types.h:235
@ HIP_RES_VIEW_FORMAT_SIGNED_BC5
Block-compressed 5 signed.
Definition driver_types.h:262
@ HIP_RES_VIEW_FORMAT_FLOAT_2X32
2 channels, 32-bit floating point
Definition driver_types.h:254
@ HIP_RES_VIEW_FORMAT_SINT_1X16
1 channel, signed 16-bit integers
Definition driver_types.h:241
@ HIP_RES_VIEW_FORMAT_FLOAT_2X16
2 channels, 16-bit floating point
Definition driver_types.h:251
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC5
Block-compressed 5 unsigned.
Definition driver_types.h:261
@ HIP_RES_VIEW_FORMAT_UINT_4X32
4 channels, unsigned 32-bit integers
Definition driver_types.h:246
@ HIP_RES_VIEW_FORMAT_FLOAT_1X16
1 channel, 16-bit floating point
Definition driver_types.h:250
@ HIP_RES_VIEW_FORMAT_SINT_4X32
4 channels, signed 32-bit integers
Definition driver_types.h:249
@ HIP_RES_VIEW_FORMAT_UINT_2X32
2 channels, unsigned 32-bit integers
Definition driver_types.h:245
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC3
Block-compressed 3.
Definition driver_types.h:258
@ HIP_RES_VIEW_FORMAT_FLOAT_1X32
1 channel, 32-bit floating point
Definition driver_types.h:253
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC2
Block-compressed 2.
Definition driver_types.h:257
@ HIP_POINTER_ATTRIBUTE_DEVICE_ORDINAL
Definition driver_types.h:713
@ HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE
Definition driver_types.h:715
@ HIP_POINTER_ATTRIBUTE_RANGE_SIZE
Size of the address range for this requested pointer.
Definition driver_types.h:720
@ HIP_POINTER_ATTRIBUTE_DEVICE_POINTER
Definition driver_types.h:704
@ HIP_POINTER_ATTRIBUTE_BUFFER_ID
Unique ID for an allocated memory region.
Definition driver_types.h:711
@ HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE
Definition driver_types.h:733
@ HIP_POINTER_ATTRIBUTE_HOST_POINTER
address at which the pointer is allocated on the host
Definition driver_types.h:706
@ HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE
Definition driver_types.h:726
@ HIP_POINTER_ATTRIBUTE_IS_MANAGED
Indicates if the pointer points to managed memory.
Definition driver_types.h:712
@ HIP_POINTER_ATTRIBUTE_MEMORY_TYPE
memory type describing the location of a pointer
Definition driver_types.h:703
@ HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR
Starting address for this requested pointer.
Definition driver_types.h:719
@ HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES
Definition driver_types.h:723
@ HIP_FUNC_ATTRIBUTE_NON_PORTABLE_CLUSTER_SIZE_ALLOWED
Is the function allowed to launch with non-portable cluster size.
Definition driver_types.h:695
@ HIP_FUNC_ATTRIBUTE_BINARY_VERSION
Binary version.
Definition driver_types.h:684
@ HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK
Definition driver_types.h:674
@ HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA
Cache mode.
Definition driver_types.h:685
@ HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT
Definition driver_types.h:688
@ HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES
Definition driver_types.h:680
@ HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_WIDTH
The required cluster width in blocks.
Definition driver_types.h:692
@ HIP_FUNC_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE
The block scheduling policy of a function.
Definition driver_types.h:696
@ HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_DEPTH
The required cluster depth in blocks.
Definition driver_types.h:694
@ HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES
Definition driver_types.h:676
@ HIP_FUNC_ATTRIBUTE_NUM_REGS
The number of registers used by each thread of this function.
Definition driver_types.h:682
@ HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES
Definition driver_types.h:678
@ HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_HEIGHT
The required cluster height in blocks.
Definition driver_types.h:693
@ HIP_FUNC_ATTRIBUTE_PTX_VERSION
PTX version.
Definition driver_types.h:683
@ HIP_FUNC_ATTRIBUTE_CLUSTER_DIM_MUST_BE_SET
the kernel must launch with a valid cluster size specified.
Definition driver_types.h:691
@ HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES
Definition driver_types.h:686
@ hipExtMemcpySignalNone
No signal; addr must be NULL.
Definition driver_types.h:508
@ hipResViewFormatSignedInt2
2 channels, signed 32-bit integers
Definition driver_types.h:208
@ hipResViewFormatSignedChar4
4 channels, signed 8-bit integers
Definition driver_types.h:197
@ hipResViewFormatFloat1
1 channel, 32-bit floating point
Definition driver_types.h:213
@ hipResViewFormatUnsignedBlockCompressed5
Block-compressed 5 unsigned.
Definition driver_types.h:221
@ hipResViewFormatNone
No resource view format (use underlying resource format)
Definition driver_types.h:191
@ hipResViewFormatUnsignedChar2
2 channels, unsigned 8-bit integers
Definition driver_types.h:193
@ hipResViewFormatSignedShort4
4 channels, signed 16-bit integers
Definition driver_types.h:203
@ hipResViewFormatUnsignedBlockCompressed4
Block-compressed 4 unsigned.
Definition driver_types.h:219
@ hipResViewFormatSignedInt4
4 channels, signed 32-bit integers
Definition driver_types.h:209
@ hipResViewFormatUnsignedInt2
2 channels, unsigned 32-bit integers
Definition driver_types.h:205
@ hipResViewFormatSignedShort2
2 channels, signed 16-bit integers
Definition driver_types.h:202
@ hipResViewFormatHalf4
4 channels, 16-bit floating point
Definition driver_types.h:212
@ hipResViewFormatFloat4
4 channels, 32-bit floating point
Definition driver_types.h:215
@ hipResViewFormatUnsignedBlockCompressed1
Block-compressed 1.
Definition driver_types.h:216
@ hipResViewFormatUnsignedInt1
1 channel, unsigned 32-bit integers
Definition driver_types.h:204
@ hipResViewFormatUnsignedChar4
4 channels, unsigned 8-bit integers
Definition driver_types.h:194
@ hipResViewFormatUnsignedInt4
4 channels, unsigned 32-bit integers
Definition driver_types.h:206
@ hipResViewFormatSignedBlockCompressed6H
Block-compressed 6 signed half-float.
Definition driver_types.h:224
@ hipResViewFormatUnsignedBlockCompressed2
Block-compressed 2.
Definition driver_types.h:217
@ hipResViewFormatHalf2
2 channels, 16-bit floating point
Definition driver_types.h:211
@ hipResViewFormatUnsignedShort1
1 channel, unsigned 16-bit integers
Definition driver_types.h:198
@ hipResViewFormatSignedBlockCompressed5
Block-compressed 5 signed.
Definition driver_types.h:222
@ hipResViewFormatSignedBlockCompressed4
Block-compressed 4 signed.
Definition driver_types.h:220
@ hipResViewFormatHalf1
1 channel, 16-bit floating point
Definition driver_types.h:210
@ hipResViewFormatSignedChar2
2 channels, signed 8-bit integers
Definition driver_types.h:196
@ hipResViewFormatFloat2
2 channels, 32-bit floating point
Definition driver_types.h:214
@ hipResViewFormatUnsignedBlockCompressed3
Block-compressed 3.
Definition driver_types.h:218
@ hipResViewFormatUnsignedChar1
1 channel, unsigned 8-bit integers
Definition driver_types.h:192
@ hipResViewFormatSignedChar1
1 channel, signed 8-bit integers
Definition driver_types.h:195
@ hipResViewFormatUnsignedBlockCompressed6H
Block-compressed 6 unsigned half-float.
Definition driver_types.h:223
@ hipResViewFormatUnsignedBlockCompressed7
Block-compressed 7.
Definition driver_types.h:225
@ hipResViewFormatSignedShort1
1 channel, signed 16-bit integers
Definition driver_types.h:201
@ hipResViewFormatUnsignedShort2
2 channels, unsigned 16-bit integers
Definition driver_types.h:199
@ hipResViewFormatUnsignedShort4
4 channels, unsigned 16-bit integers
Definition driver_types.h:200
@ hipResViewFormatSignedInt1
1 channel, signed 32-bit integers
Definition driver_types.h:207
@ hipMemcpyFlagExtOpIndirectDst
Same as IndirectSrc, but for the dst pointer.
Definition driver_types.h:466
@ hipMemcpyFlagExtPreferComputeEngine
Definition driver_types.h:467
@ hipMemcpyFlagExtOpSwap
Swap contents of src and dst.
Definition driver_types.h:462
@ hipMemcpyFlagPreferOverlapWithCompute
Tries to overlap copy with compute work.
Definition driver_types.h:460
@ hipMemcpyFlagExtPreferCE
Prefer copy engine over compute engine.
Definition driver_types.h:461
@ HIP_AD_FORMAT_UNSIGNED_INT16
Unsigned 16-bit array format.
Definition driver_types.h:66
@ HIP_AD_FORMAT_UNSIGNED_INT32
Unsigned 32-bit array format.
Definition driver_types.h:67
@ HIP_AD_FORMAT_UNSIGNED_INT8
Unsigned 8-bit array format.
Definition driver_types.h:65
@ HIP_AD_FORMAT_SIGNED_INT8
Signed 8-bit array format.
Definition driver_types.h:68
@ HIP_AD_FORMAT_SIGNED_INT32
Signed 32-bit array format.
Definition driver_types.h:70
@ HIP_AD_FORMAT_SIGNED_INT16
Signed 16-bit array format.
Definition driver_types.h:69
@ hipResourceTypeMipmappedArray
Mipmapped array resource.
Definition driver_types.h:145
@ HIP_TR_ADDRESS_MODE_BORDER
Border address mode.
Definition driver_types.h:163
@ HIP_TR_ADDRESS_MODE_MIRROR
Mirror address mode.
Definition driver_types.h:162
@ HIP_TR_ADDRESS_MODE_CLAMP
Clamp address mode.
Definition driver_types.h:161
@ hipMemcpyOperandTypeArray
Memcpy operand is a valid hipArray.
Definition driver_types.h:568
@ hipMemcpyOperandTypePointer
Mempcy operand is a valid pointer.
Definition driver_types.h:567
@ hipMemLocationTypeHostNumaCurrent
Host NUMA node closest to current thread’s CPU, id is ignored.
Definition driver_types.h:442
@ hipMemLocationTypeHostNuma
Host NUMA node location, id is host NUMA node id.
Definition driver_types.h:441
@ hipMemLocationTypeHost
Host location, id is ignored.
Definition driver_types.h:440
@ hipMemLocationTypeDevice
Device location, thus it's HIP device ID.
Definition driver_types.h:439
Definition driver_types.h:87
Definition driver_types.h:77
Definition driver_types.h:408
Definition driver_types.h:297
Definition driver_types.h:342
Definition driver_types.h:175
Definition driver_types.h:99
Definition driver_types.h:43
Definition driver_types.h:556
Definition driver_types.h:518
Definition driver_types.h:495
Definition driver_types.h:378
Definition driver_types.h:450
Definition driver_types.h:602
Definition driver_types.h:583
Definition driver_types.h:395
Definition driver_types.h:610
Definition driver_types.h:544
Definition driver_types.h:121
Definition driver_types.h:575
Definition driver_types.h:369
Definition driver_types.h:387
Definition driver_types.h:270
Definition driver_types.h:329