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/*
2Copyright (c) 2015 - 2024 Advanced Micro Devices, Inc. All rights reserved.
3
4Permission is hereby granted, free of charge, to any person obtaining a copy
5of this software and associated documentation files (the "Software"), to deal
6in the Software without restriction, including without limitation the rights
7to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8copies of the Software, and to permit persons to whom the Software is
9furnished to do so, subject to the following conditions:
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20THE SOFTWARE.
21*/
22
23#ifndef HIP_INCLUDE_HIP_DRIVER_TYPES_H
24#define HIP_INCLUDE_HIP_DRIVER_TYPES_H
25
26#if !defined(__HIPCC_RTC__)
27#include <hip/hip_common.h>
28#if __cplusplus
29#include <cstdlib>
30#else
31#include <stdlib.h> // size_t
32#endif
33#endif
34
35#if !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
36#include "driver_types.h"
37#elif defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
38
46typedef void* hipDeviceptr_t;
59typedef struct hipChannelFormatDesc {
60 int x;
61 int y;
62 int z;
63 int w;
67#define HIP_TRSA_OVERRIDE_FORMAT 0x01
69#define HIP_TRSF_READ_AS_INTEGER 0x01
71#define HIP_TRSF_NORMALIZED_COORDINATES 0x02
73#define HIP_TRSF_SRGB 0x10
74
75typedef struct hipArray* hipArray_t;
76typedef const struct hipArray* hipArray_const_t;
99
104 size_t Width;
105 size_t Height;
106 size_t Depth;
108 unsigned int NumChannels;
109 unsigned int Flags;
111#if !defined(__HIPCC_RTC__)
133#endif // !defined(__HIPCC_RTC__)
137typedef struct hipMipmappedArray {
138 void* data;
140 unsigned int type;
141 unsigned int width;
142 unsigned int height;
143 unsigned int depth;
144 unsigned int min_mipmap_level;
145 unsigned int max_mipmap_level;
146 unsigned int flags;
148 unsigned int num_channels;
153typedef struct hipMipmappedArray* hipMipmappedArray_t;
154typedef hipMipmappedArray_t hipmipmappedArray;
165typedef enum HIPresourcetype_enum {
170} HIPresourcetype,
184typedef enum HIPfilter_mode_enum {
191typedef struct HIP_TEXTURE_DESC_st {
192 HIPaddress_mode addressMode[3];
194 unsigned int flags;
195 unsigned int maxAnisotropy;
200 float borderColor[4];
201 int reserved[12];
246typedef enum HIPresourceViewFormat_enum {
286typedef struct hipResourceDesc {
288 union {
289 struct {
292 struct {
293 hipMipmappedArray_t mipmap;
295 struct {
296 void* devPtr;
298 size_t sizeInBytes;
300 struct {
301 void* devPtr;
303 size_t width;
304 size_t height;
309
313typedef struct HIP_RESOURCE_DESC_st {
314 HIPresourcetype resType;
315 union {
316 struct {
319 struct {
320 hipMipmappedArray_t hMipmappedArray;
321 } mipmap;
322 struct {
325 unsigned int numChannels;
326 size_t sizeInBytes;
327 } linear;
328 struct {
330 hipArray_Format format;
331 unsigned int numChannels;
332 size_t width;
333 size_t height;
335 } pitch2D;
336 struct {
337 int reserved[32];
338 } reserved;
339 } res;
340 unsigned int flags;
347 size_t width;
348 size_t height;
349 size_t depth;
350 unsigned int firstMipmapLevel;
351 unsigned int lastMipmapLevel;
352 unsigned int firstLayer;
353 unsigned int lastLayer;
354};
358typedef struct HIP_RESOURCE_VIEW_DESC_st {
360 size_t width;
361 size_t height;
362 size_t depth;
363 unsigned int firstMipmapLevel;
364 unsigned int lastMipmapLevel;
365 unsigned int firstLayer;
366 unsigned int lastLayer;
367 unsigned int reserved[16];
372#if !defined(__HIPCC_RTC__)
385typedef struct hipPitchedPtr {
386 void* ptr;
387 size_t pitch;
388 size_t xsize;
389 size_t ysize;
394typedef struct hipExtent {
395 size_t width; // Width in elements when referring to array memory, in bytes when referring to
396 // linear memory
397 size_t height;
398 size_t depth;
399} hipExtent;
403typedef struct hipPos {
404 size_t x;
405 size_t y;
406 size_t z;
407} hipPos;
470
478
493
512
516typedef struct hipOffset3D {
517 size_t x;
518 size_t y;
519 size_t z;
539
550
562
573static inline struct hipPitchedPtr make_hipPitchedPtr(void* d, size_t p, size_t xsz, size_t ysz) {
574 struct hipPitchedPtr s;
575 s.ptr = d;
576 s.pitch = p;
577 s.xsize = xsz;
578 s.ysize = ysz;
579 return s;
580}
590static inline struct hipPos make_hipPos(size_t x, size_t y, size_t z) {
591 struct hipPos p;
592 p.x = x;
593 p.y = y;
594 p.z = z;
595 return p;
596}
606static inline struct hipExtent make_hipExtent(size_t w, size_t h, size_t d) {
607 struct hipExtent e;
608 e.width = w;
609 e.height = h;
610 e.depth = d;
611 return e;
612}
633
671
672// doxygen end DriverTypes
677#endif // !defined(__HIPCC_RTC__)
678#else
679#error ("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
680#endif
681#endif
const struct texture< T, dim, readMode > const void * devPtr
Definition hip_runtime_api.h:9906
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:9926
readMode hipArray_const_t array
Definition hip_runtime_api.h:9986
hipChannelFormatKind
Definition driver_types.h:50
hipResourcetype
Definition driver_types.h:165
HIPfilter_mode
Definition driver_types.h:184
hipMemcpyKind
Definition driver_types.h:373
hipMemcpySrcAccessOrder
Definition driver_types.h:482
HIPresourceViewFormat
Definition driver_types.h:246
hipPointer_attribute
Definition driver_types.h:634
struct hipArray * hipArray_t
Definition driver_types.h:75
hipMipmappedArray_t hipmipmappedArray
Definition driver_types.h:154
void * hipDeviceptr_t
Definition driver_types.h:46
hipFunction_attribute
Definition driver_types.h:613
const struct hipArray * hipArray_const_t
Definition driver_types.h:76
hipResourceViewFormat
Definition driver_types.h:206
hipMemcpyFlags
Definition driver_types.h:474
hipArray_Format
Definition driver_types.h:80
hipResourceType
Definition driver_types.h:159
const struct hipMipmappedArray * hipMipmappedArray_const_t
Definition driver_types.h:155
HIPaddress_mode
Definition driver_types.h:175
hipMemcpy3DOperandType
Definition driver_types.h:507
hipMemLocationType
Definition driver_types.h:452
@ hipChannelFormatKindFloat
Float channel format.
Definition driver_types.h:53
@ hipChannelFormatKindNone
No channel format.
Definition driver_types.h:54
@ hipChannelFormatKindUnsigned
Unsigned channel format.
Definition driver_types.h:52
@ hipChannelFormatKindSigned
Signed channel format.
Definition driver_types.h:51
@ HIP_RESOURCE_TYPE_ARRAY
Array resource.
Definition driver_types.h:166
@ HIP_RESOURCE_TYPE_PITCH2D
Pitch 2D resource.
Definition driver_types.h:169
@ HIP_RESOURCE_TYPE_MIPMAPPED_ARRAY
Mipmapped array resource.
Definition driver_types.h:167
@ HIP_RESOURCE_TYPE_LINEAR
Linear resource.
Definition driver_types.h:168
@ HIP_TR_FILTER_MODE_POINT
Filter mode point.
Definition driver_types.h:185
@ HIP_TR_FILTER_MODE_LINEAR
Filter mode linear.
Definition driver_types.h:186
@ hipMemcpyDeviceToDeviceNoCU
Device-to-Device Copy without using compute units.
Definition driver_types.h:380
@ hipMemcpyDefault
Definition driver_types.h:378
@ hipMemcpyHostToHost
Host-to-Host Copy.
Definition driver_types.h:374
@ hipMemcpyDeviceToHost
Device-to-Host Copy.
Definition driver_types.h:376
@ hipMemcpyDeviceToDevice
Device-to-Device Copy.
Definition driver_types.h:377
@ hipMemcpyHostToDevice
Host-to-Device Copy.
Definition driver_types.h:375
@ hipMemcpySrcAccessOrderInvalid
Default Invalid.
Definition driver_types.h:483
@ hipMemcpySrcAccessOrderMax
Definition driver_types.h:491
@ hipMemcpySrcAccessOrderDuringApiCall
Definition driver_types.h:485
@ hipMemcpySrcAccessOrderAny
Definition driver_types.h:488
@ hipMemcpySrcAccessOrderStream
Access to source pointer must be in stream order.
Definition driver_types.h:484
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC1
Block-compressed 1.
Definition driver_types.h:272
@ HIP_RES_VIEW_FORMAT_UINT_1X8
1 channel, unsigned 8-bit integers
Definition driver_types.h:248
@ HIP_RES_VIEW_FORMAT_FLOAT_4X32
4 channels, 32-bit floating point
Definition driver_types.h:271
@ HIP_RES_VIEW_FORMAT_UINT_1X32
1 channel, unsigned 32-bit integers
Definition driver_types.h:260
@ HIP_RES_VIEW_FORMAT_UINT_1X16
1 channel, unsigned 16-bit integers
Definition driver_types.h:254
@ HIP_RES_VIEW_FORMAT_UINT_2X16
2 channels, unsigned 16-bit integers
Definition driver_types.h:255
@ HIP_RES_VIEW_FORMAT_SINT_2X16
2 channels, signed 16-bit integers
Definition driver_types.h:258
@ HIP_RES_VIEW_FORMAT_SINT_2X8
2 channels, signed 8-bit integers
Definition driver_types.h:252
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC6H
Block-compressed 6 unsigned half-float.
Definition driver_types.h:279
@ HIP_RES_VIEW_FORMAT_SINT_4X16
4 channels, signed 16-bit integers
Definition driver_types.h:259
@ HIP_RES_VIEW_FORMAT_UINT_2X8
2 channels, unsigned 8-bit integers
Definition driver_types.h:249
@ HIP_RES_VIEW_FORMAT_UINT_4X8
4 channels, unsigned 8-bit integers
Definition driver_types.h:250
@ HIP_RES_VIEW_FORMAT_SINT_1X32
1 channel, signed 32-bit integers
Definition driver_types.h:263
@ HIP_RES_VIEW_FORMAT_NONE
No resource view format (use underlying resource format)
Definition driver_types.h:247
@ HIP_RES_VIEW_FORMAT_SINT_2X32
2 channels, signed 32-bit integers
Definition driver_types.h:264
@ HIP_RES_VIEW_FORMAT_SINT_4X8
4 channels, signed 8-bit integers
Definition driver_types.h:253
@ HIP_RES_VIEW_FORMAT_SIGNED_BC4
Block-compressed 4 signed.
Definition driver_types.h:276
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC7
Block-compressed 7.
Definition driver_types.h:281
@ HIP_RES_VIEW_FORMAT_SIGNED_BC6H
Block-compressed 6 signed half-float.
Definition driver_types.h:280
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC4
Block-compressed 4 unsigned.
Definition driver_types.h:275
@ HIP_RES_VIEW_FORMAT_UINT_4X16
4 channels, unsigned 16-bit integers
Definition driver_types.h:256
@ HIP_RES_VIEW_FORMAT_FLOAT_4X16
4 channels, 16-bit floating point
Definition driver_types.h:268
@ HIP_RES_VIEW_FORMAT_SINT_1X8
1 channel, signed 8-bit integers
Definition driver_types.h:251
@ HIP_RES_VIEW_FORMAT_SIGNED_BC5
Block-compressed 5 signed.
Definition driver_types.h:278
@ HIP_RES_VIEW_FORMAT_FLOAT_2X32
2 channels, 32-bit floating point
Definition driver_types.h:270
@ HIP_RES_VIEW_FORMAT_SINT_1X16
1 channel, signed 16-bit integers
Definition driver_types.h:257
@ HIP_RES_VIEW_FORMAT_FLOAT_2X16
2 channels, 16-bit floating point
Definition driver_types.h:267
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC5
Block-compressed 5 unsigned.
Definition driver_types.h:277
@ HIP_RES_VIEW_FORMAT_UINT_4X32
4 channels, unsigned 32-bit integers
Definition driver_types.h:262
@ HIP_RES_VIEW_FORMAT_FLOAT_1X16
1 channel, 16-bit floating point
Definition driver_types.h:266
@ HIP_RES_VIEW_FORMAT_SINT_4X32
4 channels, signed 32-bit integers
Definition driver_types.h:265
@ HIP_RES_VIEW_FORMAT_UINT_2X32
2 channels, unsigned 32-bit integers
Definition driver_types.h:261
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC3
Block-compressed 3.
Definition driver_types.h:274
@ HIP_RES_VIEW_FORMAT_FLOAT_1X32
1 channel, 32-bit floating point
Definition driver_types.h:269
@ HIP_RES_VIEW_FORMAT_UNSIGNED_BC2
Block-compressed 2.
Definition driver_types.h:273
@ HIP_POINTER_ATTRIBUTE_DEVICE_ORDINAL
Definition driver_types.h:647
@ HIP_POINTER_ATTRIBUTE_IS_LEGACY_HIP_IPC_CAPABLE
Definition driver_types.h:649
@ HIP_POINTER_ATTRIBUTE_RANGE_SIZE
Size of the address range for this requested pointer.
Definition driver_types.h:654
@ HIP_POINTER_ATTRIBUTE_DEVICE_POINTER
Definition driver_types.h:638
@ HIP_POINTER_ATTRIBUTE_BUFFER_ID
Unique ID for an allocated memory region.
Definition driver_types.h:645
@ HIP_POINTER_ATTRIBUTE_MAPPED
Definition driver_types.h:655
@ HIP_POINTER_ATTRIBUTE_MEMPOOL_HANDLE
Definition driver_types.h:667
@ HIP_POINTER_ATTRIBUTE_CONTEXT
Definition driver_types.h:635
@ HIP_POINTER_ATTRIBUTE_HOST_POINTER
address at which the pointer is allocated on the host
Definition driver_types.h:640
@ HIP_POINTER_ATTRIBUTE_IS_GPU_DIRECT_RDMA_CAPABLE
Definition driver_types.h:660
@ HIP_POINTER_ATTRIBUTE_SYNC_MEMOPS
Definition driver_types.h:643
@ HIP_POINTER_ATTRIBUTE_P2P_TOKENS
Definition driver_types.h:641
@ HIP_POINTER_ATTRIBUTE_ACCESS_FLAGS
Definition driver_types.h:665
@ HIP_POINTER_ATTRIBUTE_IS_MANAGED
Indicates if the pointer points to managed memory.
Definition driver_types.h:646
@ HIP_POINTER_ATTRIBUTE_MEMORY_TYPE
memory type describing the location of a pointer
Definition driver_types.h:637
@ HIP_POINTER_ATTRIBUTE_RANGE_START_ADDR
Starting address for this requested pointer.
Definition driver_types.h:653
@ HIP_POINTER_ATTRIBUTE_ALLOWED_HANDLE_TYPES
Definition driver_types.h:657
@ HIP_FUNC_ATTRIBUTE_MAX
Definition driver_types.h:631
@ HIP_FUNC_ATTRIBUTE_BINARY_VERSION
Binary version.
Definition driver_types.h:624
@ HIP_FUNC_ATTRIBUTE_MAX_THREADS_PER_BLOCK
Definition driver_types.h:614
@ HIP_FUNC_ATTRIBUTE_CACHE_MODE_CA
Cache mode.
Definition driver_types.h:625
@ HIP_FUNC_ATTRIBUTE_PREFERRED_SHARED_MEMORY_CARVEOUT
Definition driver_types.h:628
@ HIP_FUNC_ATTRIBUTE_LOCAL_SIZE_BYTES
Definition driver_types.h:620
@ HIP_FUNC_ATTRIBUTE_SHARED_SIZE_BYTES
Definition driver_types.h:616
@ HIP_FUNC_ATTRIBUTE_NUM_REGS
The number of registers used by each thread of this function.
Definition driver_types.h:622
@ HIP_FUNC_ATTRIBUTE_CONST_SIZE_BYTES
Definition driver_types.h:618
@ HIP_FUNC_ATTRIBUTE_PTX_VERSION
PTX version.
Definition driver_types.h:623
@ HIP_FUNC_ATTRIBUTE_MAX_DYNAMIC_SHARED_SIZE_BYTES
Definition driver_types.h:626
@ hipResViewFormatSignedInt2
2 channels, signed 32-bit integers
Definition driver_types.h:224
@ hipResViewFormatSignedChar4
4 channels, signed 8-bit integers
Definition driver_types.h:213
@ hipResViewFormatFloat1
1 channel, 32-bit floating point
Definition driver_types.h:229
@ hipResViewFormatUnsignedBlockCompressed5
Block-compressed 5 unsigned.
Definition driver_types.h:237
@ hipResViewFormatNone
No resource view format (use underlying resource format)
Definition driver_types.h:207
@ hipResViewFormatUnsignedChar2
2 channels, unsigned 8-bit integers
Definition driver_types.h:209
@ hipResViewFormatSignedShort4
4 channels, signed 16-bit integers
Definition driver_types.h:219
@ hipResViewFormatUnsignedBlockCompressed4
Block-compressed 4 unsigned.
Definition driver_types.h:235
@ hipResViewFormatSignedInt4
4 channels, signed 32-bit integers
Definition driver_types.h:225
@ hipResViewFormatUnsignedInt2
2 channels, unsigned 32-bit integers
Definition driver_types.h:221
@ hipResViewFormatSignedShort2
2 channels, signed 16-bit integers
Definition driver_types.h:218
@ hipResViewFormatHalf4
4 channels, 16-bit floating point
Definition driver_types.h:228
@ hipResViewFormatFloat4
4 channels, 32-bit floating point
Definition driver_types.h:231
@ hipResViewFormatUnsignedBlockCompressed1
Block-compressed 1.
Definition driver_types.h:232
@ hipResViewFormatUnsignedInt1
1 channel, unsigned 32-bit integers
Definition driver_types.h:220
@ hipResViewFormatUnsignedChar4
4 channels, unsigned 8-bit integers
Definition driver_types.h:210
@ hipResViewFormatUnsignedInt4
4 channels, unsigned 32-bit integers
Definition driver_types.h:222
@ hipResViewFormatSignedBlockCompressed6H
Block-compressed 6 signed half-float.
Definition driver_types.h:240
@ hipResViewFormatUnsignedBlockCompressed2
Block-compressed 2.
Definition driver_types.h:233
@ hipResViewFormatHalf2
2 channels, 16-bit floating point
Definition driver_types.h:227
@ hipResViewFormatUnsignedShort1
1 channel, unsigned 16-bit integers
Definition driver_types.h:214
@ hipResViewFormatSignedBlockCompressed5
Block-compressed 5 signed.
Definition driver_types.h:238
@ hipResViewFormatSignedBlockCompressed4
Block-compressed 4 signed.
Definition driver_types.h:236
@ hipResViewFormatHalf1
1 channel, 16-bit floating point
Definition driver_types.h:226
@ hipResViewFormatSignedChar2
2 channels, signed 8-bit integers
Definition driver_types.h:212
@ hipResViewFormatFloat2
2 channels, 32-bit floating point
Definition driver_types.h:230
@ hipResViewFormatUnsignedBlockCompressed3
Block-compressed 3.
Definition driver_types.h:234
@ hipResViewFormatUnsignedChar1
1 channel, unsigned 8-bit integers
Definition driver_types.h:208
@ hipResViewFormatSignedChar1
1 channel, signed 8-bit integers
Definition driver_types.h:211
@ hipResViewFormatUnsignedBlockCompressed6H
Block-compressed 6 unsigned half-float.
Definition driver_types.h:239
@ hipResViewFormatUnsignedBlockCompressed7
Block-compressed 7.
Definition driver_types.h:241
@ hipResViewFormatSignedShort1
1 channel, signed 16-bit integers
Definition driver_types.h:217
@ hipResViewFormatUnsignedShort2
2 channels, unsigned 16-bit integers
Definition driver_types.h:215
@ hipResViewFormatUnsignedShort4
4 channels, unsigned 16-bit integers
Definition driver_types.h:216
@ hipResViewFormatSignedInt1
1 channel, signed 32-bit integers
Definition driver_types.h:223
@ hipMemcpyFlagPreferOverlapWithCompute
Tries to overlap copy with compute work.
Definition driver_types.h:476
@ hipMemcpyFlagDefault
Default flag.
Definition driver_types.h:475
@ HIP_AD_FORMAT_UNSIGNED_INT16
Unsigned 16-bit array format.
Definition driver_types.h:82
@ HIP_AD_FORMAT_HALF
Half array format.
Definition driver_types.h:87
@ HIP_AD_FORMAT_UNSIGNED_INT32
Unsigned 32-bit array format.
Definition driver_types.h:83
@ HIP_AD_FORMAT_UNSIGNED_INT8
Unsigned 8-bit array format.
Definition driver_types.h:81
@ HIP_AD_FORMAT_SIGNED_INT8
Signed 8-bit array format.
Definition driver_types.h:84
@ HIP_AD_FORMAT_SIGNED_INT32
Signed 32-bit array format.
Definition driver_types.h:86
@ HIP_AD_FORMAT_SIGNED_INT16
Signed 16-bit array format.
Definition driver_types.h:85
@ HIP_AD_FORMAT_FLOAT
Float array format.
Definition driver_types.h:88
@ hipResourceTypeArray
Array resource.
Definition driver_types.h:160
@ hipResourceTypeMipmappedArray
Mipmapped array resource.
Definition driver_types.h:161
@ hipResourceTypePitch2D
Pitch 2D resource.
Definition driver_types.h:163
@ hipResourceTypeLinear
Linear resource.
Definition driver_types.h:162
@ HIP_TR_ADDRESS_MODE_WRAP
Wrap address mode.
Definition driver_types.h:176
@ HIP_TR_ADDRESS_MODE_BORDER
Border address mode.
Definition driver_types.h:179
@ HIP_TR_ADDRESS_MODE_MIRROR
Mirror address mode.
Definition driver_types.h:178
@ HIP_TR_ADDRESS_MODE_CLAMP
Clamp address mode.
Definition driver_types.h:177
@ hipMemcpyOperandTypeArray
Memcpy operand is a valid hipArray.
Definition driver_types.h:509
@ hipMemcpyOperandTypeMax
Definition driver_types.h:510
@ hipMemcpyOperandTypePointer
Mempcy operand is a valid pointer.
Definition driver_types.h:508
@ hipMemLocationTypeHostNumaCurrent
Host NUMA node closest to current thread’s CPU, id is ignored.
Definition driver_types.h:458
@ hipMemLocationTypeHostNuma
Host NUMA node location, id is host NUMA node id.
Definition driver_types.h:457
@ hipMemLocationTypeInvalid
Definition driver_types.h:453
@ hipMemLocationTypeHost
Host location, id is ignored.
Definition driver_types.h:456
@ hipMemLocationTypeDevice
Device location, thus it's HIP device ID.
Definition driver_types.h:455
@ hipMemLocationTypeNone
Definition driver_types.h:454
hipMemoryType
Definition hip_runtime_api.h:263
Definition driver_types.h:103
size_t Width
Width of the array.
Definition driver_types.h:104
size_t Depth
Depth of the array.
Definition driver_types.h:106
size_t Height
Height of the array.
Definition driver_types.h:105
enum hipArray_Format Format
Format of the array.
Definition driver_types.h:107
unsigned int NumChannels
Number of channels of the array.
Definition driver_types.h:108
unsigned int Flags
Flags of the array.
Definition driver_types.h:109
Definition driver_types.h:93
size_t Width
Width of the array.
Definition driver_types.h:94
unsigned int NumChannels
Number of channels of the array.
Definition driver_types.h:97
enum hipArray_Format Format
Format of the array.
Definition driver_types.h:96
size_t Height
Height of the array.
Definition driver_types.h:95
Definition driver_types.h:424
hipArray_t srcArray
Source array.
Definition driver_types.h:432
size_t srcXInBytes
Source X in bytes.
Definition driver_types.h:425
size_t srcLOD
Source LOD.
Definition driver_types.h:428
size_t srcZ
Source Z.
Definition driver_types.h:427
hipDeviceptr_t dstDevice
Destination device.
Definition driver_types.h:441
hipDeviceptr_t srcDevice
Source device.
Definition driver_types.h:431
size_t srcY
Source Y.
Definition driver_types.h:426
size_t dstHeight
Destination height.
Definition driver_types.h:444
size_t dstXInBytes
Destination X in bytes.
Definition driver_types.h:435
size_t Depth
Depth in bytes of 3D memory copy.
Definition driver_types.h:447
size_t dstPitch
Destination pitch.
Definition driver_types.h:443
size_t WidthInBytes
Width in bytes of 3D memory copy.
Definition driver_types.h:445
hipMemoryType dstMemoryType
Destination memory type.
Definition driver_types.h:439
hipArray_t dstArray
Destination array.
Definition driver_types.h:442
size_t Height
Height in bytes of 3D memory copy.
Definition driver_types.h:446
size_t dstY
Destination Y.
Definition driver_types.h:436
size_t dstLOD
Destination LOD.
Definition driver_types.h:438
hipMemoryType srcMemoryType
Source memory type.
Definition driver_types.h:429
size_t dstZ
Destination Z.
Definition driver_types.h:437
void * dstHost
Destination host pointer.
Definition driver_types.h:440
size_t srcHeight
Source height.
Definition driver_types.h:434
const void * srcHost
Source host pointer.
Definition driver_types.h:430
size_t srcPitch
Source pitch.
Definition driver_types.h:433
Definition driver_types.h:313
unsigned int flags
Flags (must be zero)
Definition driver_types.h:340
size_t height
Height of the array in elements.
Definition driver_types.h:333
hipArray_t hArray
HIP array.
Definition driver_types.h:317
size_t pitchInBytes
Pitch between two rows in bytes.
Definition driver_types.h:334
HIPresourcetype resType
Resource type.
Definition driver_types.h:314
hipDeviceptr_t devPtr
Device pointer.
Definition driver_types.h:323
hipMipmappedArray_t hMipmappedArray
HIP mipmapped array.
Definition driver_types.h:320
hipArray_Format format
Array format.
Definition driver_types.h:324
size_t width
Width of the array in elements.
Definition driver_types.h:332
unsigned int numChannels
Channels per array element.
Definition driver_types.h:325
size_t sizeInBytes
Size in bytes.
Definition driver_types.h:326
Definition driver_types.h:358
size_t width
Width of the resource view.
Definition driver_types.h:360
unsigned int firstMipmapLevel
First defined mipmap level.
Definition driver_types.h:363
unsigned int lastMipmapLevel
Last defined mipmap level.
Definition driver_types.h:364
unsigned int firstLayer
First layer index.
Definition driver_types.h:365
size_t depth
Depth of the resource view.
Definition driver_types.h:362
size_t height
Height of the resource view.
Definition driver_types.h:361
HIPresourceViewFormat format
Resource view format.
Definition driver_types.h:359
unsigned int lastLayer
Last layer index.
Definition driver_types.h:366
Definition driver_types.h:191
float maxMipmapLevelClamp
Mipmap maximum level clamp.
Definition driver_types.h:199
unsigned int flags
Flags.
Definition driver_types.h:194
float mipmapLevelBias
Mipmap level bias.
Definition driver_types.h:197
float minMipmapLevelClamp
Mipmap minimum level clamp.
Definition driver_types.h:198
unsigned int maxAnisotropy
Maximum anisotropy ratio.
Definition driver_types.h:195
HIPfilter_mode filterMode
Filter mode.
Definition driver_types.h:193
HIPfilter_mode mipmapFilterMode
Mipmap filter mode.
Definition driver_types.h:196
Definition driver_types.h:115
void * dstHost
Destination pointer.
Definition driver_types.h:126
size_t srcXInBytes
Source width in bytes.
Definition driver_types.h:116
size_t WidthInBytes
Width in bytes of the 2D memory copy.
Definition driver_types.h:130
size_t dstPitch
Destination pitch.
Definition driver_types.h:129
size_t dstY
Destination height.
Definition driver_types.h:124
hipMemoryType dstMemoryType
Destination memory type.
Definition driver_types.h:125
hipArray_t srcArray
Source array.
Definition driver_types.h:121
hipDeviceptr_t srcDevice
Source device.
Definition driver_types.h:120
hipDeviceptr_t dstDevice
Destination device.
Definition driver_types.h:127
hipMemoryType srcMemoryType
Source memory type.
Definition driver_types.h:118
size_t srcY
Source height.
Definition driver_types.h:117
size_t Height
Height of the 2D memory copy.
Definition driver_types.h:131
const void * srcHost
Source pointer.
Definition driver_types.h:119
size_t dstXInBytes
Destination width in bytes.
Definition driver_types.h:123
hipArray_t dstArray
Destination array.
Definition driver_types.h:128
size_t srcPitch
Source pitch.
Definition driver_types.h:122
Definition driver_types.h:59
int y
Definition driver_types.h:61
enum hipChannelFormatKind f
Channel format kind.
Definition driver_types.h:64
int w
Definition driver_types.h:63
int z
Definition driver_types.h:62
int x
Definition driver_types.h:60
Definition driver_types.h:394
size_t depth
Definition driver_types.h:398
size_t width
Definition driver_types.h:395
size_t height
Definition driver_types.h:397
Definition driver_types.h:466
int id
Identifier for the provided location type hipMemLocationType.
Definition driver_types.h:468
hipMemLocationType type
Specifies the location type, which describes the meaning of id.
Definition driver_types.h:467
Definition driver_types.h:543
unsigned int flags
Definition driver_types.h:548
hipMemcpySrcAccessOrder srcAccessOrder
Definition driver_types.h:547
hipExtent extent
Definition driver_types.h:546
hipMemcpy3DOperand src
Definition driver_types.h:544
hipMemcpy3DOperand dst
Definition driver_types.h:545
Definition driver_types.h:524
hipOffset3D offset
Offset into array in elements.
Definition driver_types.h:535
hipArray_t array
Array struct for hipMemcpyOperandTypeArray.
Definition driver_types.h:534
hipMemLocation locHint
Location Hint for the operand.
Definition driver_types.h:531
union hipMemcpy3DOperand::@11 op
size_t rowLength
Length of each row in elements.
Definition driver_types.h:529
void * ptr
Definition driver_types.h:528
size_t layerHeight
Height of each layer in elements.
Definition driver_types.h:530
hipMemcpy3DOperandType type
Definition driver_types.h:525
Definition driver_types.h:411
struct hipPitchedPtr srcPtr
Source pointer.
Definition driver_types.h:414
struct hipPitchedPtr dstPtr
Destination pointer.
Definition driver_types.h:417
hipArray_t srcArray
Source array.
Definition driver_types.h:412
enum hipMemcpyKind kind
Kind of 3D memory copy.
Definition driver_types.h:419
hipArray_t dstArray
Destination array.
Definition driver_types.h:415
struct hipPos srcPos
Source position.
Definition driver_types.h:413
struct hipPos dstPos
Destination position.
Definition driver_types.h:416
struct hipExtent extent
Extent of 3D memory copy.
Definition driver_types.h:418
Definition driver_types.h:551
hipExtent extent
Requested memory copy size.
Definition driver_types.h:560
int srcDevice
Source device.
Definition driver_types.h:555
hipPitchedPtr dstPtr
Pitched destination memory address.
Definition driver_types.h:558
int dstDevice
Destination device.
Definition driver_types.h:559
hipPitchedPtr srcPtr
Pitched source memory address.
Definition driver_types.h:554
hipPos dstPos
Destination position offset.
Definition driver_types.h:557
hipPos srcPos
Source position offset.
Definition driver_types.h:553
hipArray_t srcArray
Source memory address.
Definition driver_types.h:552
hipArray_t dstArray
Destination memory address.
Definition driver_types.h:556
Definition driver_types.h:497
unsigned int flags
Additional Flags for copies. See hipMemcpyFlags.
Definition driver_types.h:502
hipMemcpySrcAccessOrder srcAccessOrder
Source access ordering to be observed for copies with this attribute.
Definition driver_types.h:499
hipMemLocation srcLocHint
Location hint for src operand.
Definition driver_types.h:500
hipMemLocation dstLocHint
Location hint for destination operand.
Definition driver_types.h:501
Definition driver_types.h:137
unsigned int depth
Depth of the mipmapped array.
Definition driver_types.h:143
unsigned int height
Height of the mipmapped array.
Definition driver_types.h:142
unsigned int num_channels
Number of channels of the mipmapped array.
Definition driver_types.h:148
unsigned int flags
Flags of the mipmapped array.
Definition driver_types.h:146
unsigned int max_mipmap_level
Maximum level of the mipmapped array.
Definition driver_types.h:145
void * data
Data pointer of the mipmapped array.
Definition driver_types.h:138
enum hipArray_Format format
Format of the mipmapped array.
Definition driver_types.h:147
unsigned int type
Type of the mipmapped array.
Definition driver_types.h:140
unsigned int min_mipmap_level
Minimum level of the mipmapped array.
Definition driver_types.h:144
unsigned int width
Width of the mipmapped array.
Definition driver_types.h:141
Definition driver_types.h:516
size_t x
Definition driver_types.h:517
size_t y
Definition driver_types.h:518
size_t z
Definition driver_types.h:519
Definition driver_types.h:385
void * ptr
Pointer to the allocated memory.
Definition driver_types.h:386
size_t ysize
Logical size of the second dimension of allocation in elements.
Definition driver_types.h:389
size_t pitch
Pitch in bytes.
Definition driver_types.h:387
size_t xsize
Logical size of the first dimension of allocation in elements.
Definition driver_types.h:388
Definition driver_types.h:403
size_t z
Z coordinate.
Definition driver_types.h:406
size_t x
X coordinate.
Definition driver_types.h:404
size_t y
Y coordinate.
Definition driver_types.h:405
Definition driver_types.h:286
struct hipResourceDesc::@0::@4 pitch2D
size_t height
Height of the array in elements.
Definition driver_types.h:304
enum hipResourceType resType
Resource type.
Definition driver_types.h:287
void * devPtr
Device pointer.
Definition driver_types.h:296
struct hipResourceDesc::@0::@3 linear
struct hipChannelFormatDesc desc
Channel format description.
Definition driver_types.h:297
size_t pitchInBytes
Pitch between two rows in bytes.
Definition driver_types.h:305
size_t sizeInBytes
Size in bytes.
Definition driver_types.h:298
size_t width
Width of the array in elements.
Definition driver_types.h:303
hipMipmappedArray_t mipmap
HIP mipmapped array.
Definition driver_types.h:293
hipArray_t array
HIP array.
Definition driver_types.h:290
union hipResourceDesc::@0 res
Definition driver_types.h:345
unsigned int firstMipmapLevel
First defined mipmap level.
Definition driver_types.h:350
size_t depth
Depth of the resource view.
Definition driver_types.h:349
enum hipResourceViewFormat format
Resource view format.
Definition driver_types.h:346
size_t height
Height of the resource view.
Definition driver_types.h:348
unsigned int lastMipmapLevel
Last defined mipmap level.
Definition driver_types.h:351
unsigned int firstLayer
First layer index.
Definition driver_types.h:352
size_t width
Width of the resource view.
Definition driver_types.h:347
unsigned int lastLayer
Last layer index.
Definition driver_types.h:353