include/hip/driver_types.h Source File

include/hip/driver_types.h Source File#

HIP Runtime API Reference: include/hip/driver_types.h Source File
driver_types.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Advanced Micro Devices, Inc., or its affiliates.
3 *
4 * SPDX-License-Identifier: MIT
5 */
6
7#ifndef HIP_INCLUDE_HIP_DRIVER_TYPES_H
8#define HIP_INCLUDE_HIP_DRIVER_TYPES_H
9
10#if !defined(__HIPCC_RTC__)
11#include <hip/hip_common.h>
12#if __cplusplus
13#include <cstdlib>
14#else
15#include <stdlib.h> // size_t
16#endif
17#endif
18
19#if !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
20#include "driver_types.h"
21#elif defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
22
30typedef void* hipDeviceptr_t;
43typedef struct hipChannelFormatDesc {
44 int x;
45 int y;
46 int z;
47 int w;
51#define HIP_TRSA_OVERRIDE_FORMAT 0x01
53#define HIP_TRSF_READ_AS_INTEGER 0x01
55#define HIP_TRSF_NORMALIZED_COORDINATES 0x02
57#define HIP_TRSF_SRGB 0x10
58
59typedef struct hipArray* hipArray_t;
60typedef const struct hipArray* hipArray_const_t;
83
87typedef struct HIP_ARRAY3D_DESCRIPTOR {
88 size_t Width;
89 size_t Height;
90 size_t Depth;
92 unsigned int NumChannels;
93 unsigned int Flags;
95#if !defined(__HIPCC_RTC__)
117#endif // !defined(__HIPCC_RTC__)
121typedef struct hipMipmappedArray {
122 void* data;
124 unsigned int type;
125 unsigned int width;
126 unsigned int height;
127 unsigned int depth;
128 unsigned int min_mipmap_level;
129 unsigned int max_mipmap_level;
130 unsigned int flags;
132 unsigned int num_channels;
137typedef struct hipMipmappedArray* hipMipmappedArray_t;
138typedef hipMipmappedArray_t hipmipmappedArray;
149typedef enum HIPresourcetype_enum {
154} HIPresourcetype,
168typedef enum HIPfilter_mode_enum {
175typedef struct HIP_TEXTURE_DESC_st {
176 HIPaddress_mode addressMode[3];
178 unsigned int flags;
179 unsigned int maxAnisotropy;
184 float borderColor[4];
185 int reserved[12];
230typedef enum HIPresourceViewFormat_enum {
270typedef struct hipResourceDesc {
272 union {
273 struct {
275 } array;
276 struct {
277 hipMipmappedArray_t mipmap;
278 } mipmap;
279 struct {
280 void* devPtr;
282 size_t sizeInBytes;
283 } linear;
284 struct {
285 void* devPtr;
287 size_t width;
288 size_t height;
289 size_t pitchInBytes;
290 } pitch2D;
293
297typedef struct HIP_RESOURCE_DESC_st {
298 HIPresourcetype resType;
299 union {
300 struct {
301 hipArray_t hArray;
302 } array;
303 struct {
304 hipMipmappedArray_t hMipmappedArray;
305 } mipmap;
306 struct {
308 hipArray_Format format;
309 unsigned int numChannels;
310 size_t sizeInBytes;
311 } linear;
312 struct {
314 hipArray_Format format;
315 unsigned int numChannels;
316 size_t width;
317 size_t height;
318 size_t pitchInBytes;
319 } pitch2D;
320 struct {
321 int reserved[32];
322 } reserved;
323 } res;
324 unsigned int flags;
331 size_t width;
332 size_t height;
333 size_t depth;
334 unsigned int firstMipmapLevel;
335 unsigned int lastMipmapLevel;
336 unsigned int firstLayer;
337 unsigned int lastLayer;
338};
342typedef struct HIP_RESOURCE_VIEW_DESC_st {
344 size_t width;
345 size_t height;
346 size_t depth;
347 unsigned int firstMipmapLevel;
348 unsigned int lastMipmapLevel;
349 unsigned int firstLayer;
350 unsigned int lastLayer;
351 unsigned int reserved[16];
356#if !defined(__HIPCC_RTC__)
369typedef struct hipPitchedPtr {
370 void* ptr;
371 size_t pitch;
372 size_t xsize;
373 size_t ysize;
378typedef struct hipExtent {
379 size_t width; // Width in elements when referring to array memory, in bytes when referring to
380 // linear memory
381 size_t height;
382 size_t depth;
383} hipExtent;
387typedef struct hipPos {
388 size_t x;
389 size_t y;
390 size_t z;
391} hipPos;
454
468
483
502
506typedef struct hipOffset3D {
507 size_t x;
508 size_t y;
509 size_t z;
514typedef struct hipMemcpy3DOperand {
516 union {
517 struct {
518 void* ptr;
519 size_t rowLength;
520 size_t layerHeight;
521 hipMemLocation locHint;
522 } ptr;
523 struct {
525 hipOffset3D offset;
526 } array;
527 } op;
529
540
552
563static inline struct hipPitchedPtr make_hipPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) {
564 struct hipPitchedPtr s;
565 s.ptr = d;
566 s.pitch = p;
567 s.xsize = xsz;
568 s.ysize = ysz;
569 return s;
570}
580static inline struct hipPos make_hipPos(size_t x, size_t y, size_t z) {
581 struct hipPos p;
582 p.x = x;
583 p.y = y;
584 p.z = z;
585 return p;
586}
596static inline struct hipExtent make_hipExtent(size_t w, size_t h, size_t d) {
597 struct hipExtent e;
598 e.width = w;
599 e.height = h;
600 e.depth = d;
601 return e;
602}
603
630
668
669// doxygen end DriverTypes
674#endif // !defined(__HIPCC_RTC__)
675#else
676#error ("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
677#endif
678#endif
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:10517
const struct texture< T, dim, readMode > const void * devPtr
Definition hip_runtime_api.h:10476
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:10496
readMode hipArray_const_t array
Definition hip_runtime_api.h:10556
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:10517
unsigned int flags
Flags (must be zero)
Definition driver_types.h:324
hipExtent extent
Requested memory copy size.
Definition driver_types.h:550
struct hipPitchedPtr srcPtr
Source pointer.
Definition driver_types.h:398
hipArray_t srcArray
Source array.
Definition driver_types.h:416
float maxMipmapLevelClamp
Mipmap maximum level clamp.
Definition driver_types.h:183
unsigned int flags
Additional Flags for copies. See hipMemcpyFlags.
Definition driver_types.h:492
void * dstHost
Destination pointer.
Definition driver_types.h:110
int srcDevice
Source device.
Definition driver_types.h:545
size_t x
Definition driver_types.h:507
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:489
hipMemLocation srcLocHint
Location hint for src operand.
Definition driver_types.h:490
size_t Width
Width of the array.
Definition driver_types.h:88
size_t srcXInBytes
Source X in bytes.
Definition driver_types.h:409
unsigned int firstMipmapLevel
First defined mipmap level.
Definition driver_types.h:334
size_t width
Width of the resource view.
Definition driver_types.h:344
int id
Identifier for the provided location type hipMemLocationType.
Definition driver_types.h:452
size_t srcLOD
Source LOD.
Definition driver_types.h:412
unsigned int depth
Depth of the mipmapped array.
Definition driver_types.h:127
size_t srcZ
Source Z.
Definition driver_types.h:411
hipPitchedPtr dstPtr
Pitched destination memory address.
Definition driver_types.h:548
size_t Depth
Depth of the array.
Definition driver_types.h:90
size_t srcXInBytes
Source width in bytes.
Definition driver_types.h:100
unsigned int flags
Definition driver_types.h:538
unsigned int height
Height of the mipmapped array.
Definition driver_types.h:126
size_t Width
Width of the array.
Definition driver_types.h:78
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
hipDeviceptr_t dstDevice
Destination device.
Definition driver_types.h:425
hipMemcpySrcAccessOrder srcAccessOrder
Definition driver_types.h:537
size_t dstPitch
Destination pitch.
Definition driver_types.h:113
hipArray_t srcArray
Source array.
Definition driver_types.h:396
enum hipResourceType resType
Resource type.
Definition driver_types.h:271
size_t dstY
Destination height.
Definition driver_types.h:108
hipDeviceptr_t srcDevice
Source device.
Definition driver_types.h:415
size_t srcY
Source Y.
Definition driver_types.h:410
union hipMemcpy3DOperand::@11 op
int y
Definition driver_types.h:45
unsigned int firstMipmapLevel
First defined mipmap level.
Definition driver_types.h:347
int dstDevice
Destination device.
Definition driver_types.h:549
size_t dstHeight
Destination height.
Definition driver_types.h:428
hipPitchedPtr srcPtr
Pitched source memory address.
Definition driver_types.h:544
hipMemoryType dstMemoryType
Destination memory type.
Definition driver_types.h:109
hipArray_t srcArray
Source array.
Definition driver_types.h:105
hipPos dstPos
Destination position offset.
Definition driver_types.h:547
size_t Height
Height of the array.
Definition driver_types.h:89
hipMemLocationType type
Specifies the location type, which describes the meaning of id.
Definition driver_types.h:451
size_t dstXInBytes
Destination X in bytes.
Definition driver_types.h:419
size_t Depth
Depth in bytes of 3D memory copy.
Definition driver_types.h:431
unsigned int flags
Flags.
Definition driver_types.h:178
float mipmapLevelBias
Mipmap level bias.
Definition driver_types.h:181
float minMipmapLevelClamp
Mipmap minimum level clamp.
Definition driver_types.h:182
unsigned int maxAnisotropy
Maximum anisotropy ratio.
Definition driver_types.h:179
unsigned int lastMipmapLevel
Last defined mipmap level.
Definition driver_types.h:348
hipDeviceptr_t srcDevice
Source device.
Definition driver_types.h:104
hipDeviceptr_t dstDevice
Destination device.
Definition driver_types.h:111
HIPfilter_mode filterMode
Filter mode.
Definition driver_types.h:177
size_t depth
Depth of the resource view.
Definition driver_types.h:333
void * ptr
Pointer to the allocated memory.
Definition driver_types.h:370
enum hipResourceViewFormat format
Resource view format.
Definition driver_types.h:330
size_t dstPitch
Destination pitch.
Definition driver_types.h:427
size_t height
Height of the resource view.
Definition driver_types.h:332
unsigned int lastMipmapLevel
Last defined mipmap level.
Definition driver_types.h:335
enum hipMemcpyKind kind
Kind of 3D memory copy.
Definition driver_types.h:403
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
enum hipChannelFormatKind f
Channel format kind.
Definition driver_types.h:48
size_t z
Z coordinate.
Definition driver_types.h:390
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
size_t ysize
Logical size of the second dimension of allocation in elements.
Definition driver_types.h:373
hipPos srcPos
Source position offset.
Definition driver_types.h:543
hipMemcpy3DOperandType type
Definition driver_types.h:515
hipArray_t dstArray
Destination array.
Definition driver_types.h:426
unsigned int firstLayer
First layer index.
Definition driver_types.h:349
enum hipArray_Format Format
Format of the array.
Definition driver_types.h:91
size_t Height
Height in bytes of 3D memory copy.
Definition driver_types.h:430
enum hipArray_Format Format
Format of the array.
Definition driver_types.h:80
size_t y
Definition driver_types.h:508
size_t dstY
Destination Y.
Definition driver_types.h:420
hipArray_t dstArray
Destination array.
Definition driver_types.h:399
size_t dstLOD
Destination LOD.
Definition driver_types.h:422
size_t depth
Definition driver_types.h:382
hipMemoryType srcMemoryType
Source memory type.
Definition driver_types.h:102
unsigned int firstLayer
First layer index.
Definition driver_types.h:336
HIPresourcetype resType
Resource type.
Definition driver_types.h:298
size_t width
Width of the resource view.
Definition driver_types.h:331
size_t x
X coordinate.
Definition driver_types.h:388
size_t depth
Depth of the resource view.
Definition driver_types.h:346
hipMemoryType srcMemoryType
Source memory type.
Definition driver_types.h:413
hipExtent extent
Definition driver_types.h:536
size_t dstZ
Destination Z.
Definition driver_types.h:421
size_t height
Height of the resource view.
Definition driver_types.h:345
size_t srcY
Source height.
Definition driver_types.h:101
HIPresourceViewFormat format
Resource view format.
Definition driver_types.h:343
void * dstHost
Destination host pointer.
Definition driver_types.h:424
unsigned int max_mipmap_level
Maximum level of the mipmapped array.
Definition driver_types.h:129
size_t y
Y coordinate.
Definition driver_types.h:389
struct hipPos srcPos
Source position.
Definition driver_types.h:397
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
size_t srcHeight
Source height.
Definition driver_types.h:418
size_t Height
Height of the 2D memory copy.
Definition driver_types.h:115
size_t width
Definition driver_types.h:379
size_t z
Definition driver_types.h:509
const void * srcHost
Source pointer.
Definition driver_types.h:103
struct hipPos dstPos
Destination position.
Definition driver_types.h:400
void * data
Data pointer of the mipmapped array.
Definition driver_types.h:122
size_t dstXInBytes
Destination width in bytes.
Definition driver_types.h:107
size_t Height
Height of the array.
Definition driver_types.h:79
hipMemcpy3DOperand src
Definition driver_types.h:534
enum hipArray_Format format
Format of the mipmapped array.
Definition driver_types.h:131
int w
Definition driver_types.h:47
unsigned int type
Type of the mipmapped array.
Definition driver_types.h:124
struct hipExtent extent
Extent of 3D memory copy.
Definition driver_types.h:402
hipMemLocation dstLocHint
Location hint for destination operand.
Definition driver_types.h:491
hipMemcpy3DOperand dst
Definition driver_types.h:535
const void * srcHost
Source host pointer.
Definition driver_types.h:414
size_t height
Definition driver_types.h:381
hipArray_t dstArray
Destination array.
Definition driver_types.h:112
size_t pitch
Pitch in bytes.
Definition driver_types.h:371
size_t srcPitch
Source pitch.
Definition driver_types.h:417
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:542
size_t xsize
Logical size of the first dimension of allocation in elements.
Definition driver_types.h:372
int z
Definition driver_types.h:46
unsigned int Flags
Flags of the array.
Definition driver_types.h:93
size_t srcPitch
Source pitch.
Definition driver_types.h:106
hipArray_t dstArray
Destination memory address.
Definition driver_types.h:546
unsigned int lastLayer
Last layer index.
Definition driver_types.h:337
int x
Definition driver_types.h:44
unsigned int width
Width of the mipmapped array.
Definition driver_types.h:125
hipChannelFormatKind
Definition driver_types.h:34
hipResourcetype
Definition driver_types.h:149
HIPfilter_mode
Definition driver_types.h:168
hipMemcpyKind
Definition driver_types.h:357
hipMemcpySrcAccessOrder
Definition driver_types.h:472
HIPresourceViewFormat
Definition driver_types.h:230
hipPointer_attribute
Definition driver_types.h:631
struct hipArray * hipArray_t
Definition driver_types.h:59
hipMipmappedArray_t hipmipmappedArray
Definition driver_types.h:138
void * hipDeviceptr_t
Definition driver_types.h:30
hipFunction_attribute
Definition driver_types.h:604
const struct hipArray * hipArray_const_t
Definition driver_types.h:60
hipResourceViewFormat
Definition driver_types.h:190
hipMemcpyFlags
Definition driver_types.h:458
hipArray_Format
Definition driver_types.h:64
hipResourceType
Definition driver_types.h:143
const struct hipMipmappedArray * hipMipmappedArray_const_t
Definition driver_types.h:139
HIPaddress_mode
Definition driver_types.h:159
hipMemcpy3DOperandType
Definition driver_types.h:497
hipMemLocationType
Definition driver_types.h:436
@ hipChannelFormatKindFloat
Float channel format.
Definition driver_types.h:37
@ hipChannelFormatKindNone
No channel format.
Definition driver_types.h:38
@ hipChannelFormatKindUnsigned
Unsigned channel format.
Definition driver_types.h:36
@ hipChannelFormatKindSigned
Signed channel format.
Definition driver_types.h:35
@ HIP_RESOURCE_TYPE_ARRAY
Array resource.
Definition driver_types.h:150
@ HIP_RESOURCE_TYPE_PITCH2D
Pitch 2D resource.
Definition driver_types.h:153
@ HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY
Mipmapped array resource.
Definition driver_types.h:151
@ HIP_RESOURCE_TYPE_LINEAR
Linear resource.
Definition driver_types.h:152
@ HIP_TR_FILTER_MODE_POINT
Filter mode point.
Definition driver_types.h:169
@ 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
@ hipMemcpyDefault
Definition driver_types.h:362
@ hipMemcpyHostToHost
Host-to-Host Copy.
Definition driver_types.h:358
@ hipMemcpyDeviceToHost
Device-to-Host Copy.
Definition driver_types.h:360
@ hipMemcpyDeviceToDevice
Device-to-Device Copy.
Definition driver_types.h:361
@ hipMemcpyHostToDevice
Host-to-Device Copy.
Definition driver_types.h:359
@ hipMemcpySrcAccessOrderInvalid
Default Invalid.
Definition driver_types.h:473
@ hipMemcpySrcAccessOrderMax
Definition driver_types.h:481
@ hipMemcpySrcAccessOrderDuringApiCall
Definition driver_types.h:475
@ hipMemcpySrcAccessOrderAny
Definition driver_types.h:478
@ hipMemcpySrcAccessOrderStream
Access to source pointer must be in stream order.
Definition driver_types.h:474
@ 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:644
@ HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE
Definition driver_types.h:646
@ HIP_POINTER_ATTRIBUTE_RANGE_SIZE
Size of the address range for this requested pointer.
Definition driver_types.h:651
@ HIP_POINTER_ATTRIBUTE_DEVICE_POINTER
Definition driver_types.h:635
@ HIP_POINTER_ATTRIBUTE_BUFFER_ID
Unique ID for an allocated memory region.
Definition driver_types.h:642
@ HIP_POINTER_ATTRIBUTE_MAPPED
Definition driver_types.h:652
@ HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE
Definition driver_types.h:664
@ HIP_POINTER_ATTRIBUTE_CONTEXT
Definition driver_types.h:632
@ HIP_POINTER_ATTRIBUTE_HOST_POINTER
address at which the pointer is allocated on the host
Definition driver_types.h:637
@ HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE
Definition driver_types.h:657
@ HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS
Definition driver_types.h:640
@ HIP_POINTER_ATTRIBUTE_P2P_TOKENS
Definition driver_types.h:638
@ HIP_POINTER_ATTRIBUTE_ACCESS_FLAGS
Definition driver_types.h:662
@ HIP_POINTER_ATTRIBUTE_IS_MANAGED
Indicates if the pointer points to managed memory.
Definition driver_types.h:643
@ HIP_POINTER_ATTRIBUTE_MEMORY_TYPE
memory type describing the location of a pointer
Definition driver_types.h:634
@ HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR
Starting address for this requested pointer.
Definition driver_types.h:650
@ HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES
Definition driver_types.h:654
@ HIP_FUNC_ATTRIBUTE_NON_PORTABLE_CLUSTER_SIZE_ALLOWED
Is the function allowed to launch with non-portable cluster size.
Definition driver_types.h:626
@ HIP_FUNC_ATTRIBUTE_MAX
Definition driver_types.h:628
@ HIP_FUNC_ATTRIBUTE_BINARY_VERSION
Binary version.
Definition driver_types.h:615
@ HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK
Definition driver_types.h:605
@ HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA
Cache mode.
Definition driver_types.h:616
@ HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT
Definition driver_types.h:619
@ HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES
Definition driver_types.h:611
@ HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_WIDTH
The required cluster width in blocks.
Definition driver_types.h:623
@ HIP_FUNC_ATTRIBUTE_CLUSTER_SCHEDULING_POLICY_PREFERENCE
The block scheduling policy of a function.
Definition driver_types.h:627
@ HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_DEPTH
The required cluster depth in blocks.
Definition driver_types.h:625
@ HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES
Definition driver_types.h:607
@ HIP_FUNC_ATTRIBUTE_NUM_REGS
The number of registers used by each thread of this function.
Definition driver_types.h:613
@ HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES
Definition driver_types.h:609
@ HIP_FUNC_ATTRIBUTE_REQUIRED_CLUSTER_HEIGHT
The required cluster height in blocks.
Definition driver_types.h:624
@ HIP_FUNC_ATTRIBUTE_PTX_VERSION
PTX version.
Definition driver_types.h:614
@ HIP_FUNC_ATTRIBUTE_CLUSTER_DIM_MUST_BE_SET
the kernel must launch with a valid cluster size specified.
Definition driver_types.h:622
@ HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES
Definition driver_types.h:617
@ 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
@ hipMemcpyFlagExtOpSwap
Swap contents of src and dst.
Definition driver_types.h:462
@ hipMemcpyFlagExtOpIndirectSrc
Definition driver_types.h:463
@ 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
@ hipMemcpyFlagDefault
Default flag.
Definition driver_types.h:459
@ HIP_AD_FORMAT_UNSIGNED_INT16
Unsigned 16-bit array format.
Definition driver_types.h:66
@ HIP_AD_FORMAT_HALF
Half array format.
Definition driver_types.h:71
@ 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
@ HIP_AD_FORMAT_FLOAT
Float array format.
Definition driver_types.h:72
@ hipResourceTypeArray
Array resource.
Definition driver_types.h:144
@ hipResourceTypeMipmappedArray
Mipmapped array resource.
Definition driver_types.h:145
@ hipResourceTypePitch2D
Pitch 2D resource.
Definition driver_types.h:147
@ hipResourceTypeLinear
Linear resource.
Definition driver_types.h:146
@ HIP_TR_ADDRESS_MODE_WRAP
Wrap address mode.
Definition driver_types.h:160
@ 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:499
@ hipMemcpyOperandTypeMax
Definition driver_types.h:500
@ hipMemcpyOperandTypePointer
Mempcy operand is a valid pointer.
Definition driver_types.h:498
@ 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
@ hipMemLocationTypeInvalid
Definition driver_types.h:437
@ 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
@ hipMemLocationTypeNone
Definition driver_types.h:438
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:378
Definition driver_types.h:450
Definition driver_types.h:533
Definition driver_types.h:514
Definition driver_types.h:395
Definition driver_types.h:541
Definition driver_types.h:487
Definition driver_types.h:121
Definition driver_types.h:506
Definition driver_types.h:369
Definition driver_types.h:387
Definition driver_types.h:270
Definition driver_types.h:329
hipMemoryType
Definition hip_runtime_api.h:247