/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-6.0.2/include/hip/hip_runtime_api.h Source File

/home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-6.0.2/include/hip/hip_runtime_api.h Source File#

HIP Runtime API Reference: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/docs-6.0.2/include/hip/hip_runtime_api.h Source File
hip_runtime_api.h
Go to the documentation of this file.
1/*
2Copyright (c) 2015 - 2023 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
30#ifndef HIP_INCLUDE_HIP_HIP_RUNTIME_API_H
31#define HIP_INCLUDE_HIP_HIP_RUNTIME_API_H
32
33#include <string.h> // for getDeviceProp
34#include <hip/hip_version.h>
35#include <hip/hip_common.h>
36
37enum {
42};
43// hack to get these to show up in Doxygen:
53typedef struct {
54 // 32-bit Atomics
55 unsigned hasGlobalInt32Atomics : 1;
57 unsigned hasSharedInt32Atomics : 1;
59 unsigned hasFloatAtomicAdd : 1;
60
61 // 64-bit Atomics
62 unsigned hasGlobalInt64Atomics : 1;
63 unsigned hasSharedInt64Atomics : 1;
64
65 // Doubles
66 unsigned hasDoubles : 1;
67
68 // Warp cross-lane operations
69 unsigned hasWarpVote : 1;
70 unsigned hasWarpBallot : 1;
71 unsigned hasWarpShuffle : 1;
72 unsigned hasFunnelShift : 1;
73
74 // Sync
75 unsigned hasThreadFenceSystem : 1;
76 unsigned hasSyncThreadsExt : 1;
77
78 // Misc
79 unsigned hasSurfaceFuncs : 1;
80 unsigned has3dGrid : 1;
81 unsigned hasDynamicParallelism : 1;
83
84typedef struct hipUUID_t {
85 char bytes[16];
86} hipUUID;
87
88//---
89// Common headers for both NVCC and HCC paths:
90
91#define hipGetDeviceProperties hipGetDevicePropertiesR0600
92#define hipDeviceProp_t hipDeviceProp_tR0600
93#define hipChooseDevice hipChooseDeviceR0600
94
99typedef struct hipDeviceProp_t {
100 char name[256];
102 char luid[8];
103 unsigned int luidDeviceNodeMask;
108 size_t memPitch;
112 int maxGridSize[3];
115 int major;
118 int minor;
184 size_t
203 unsigned int
210 int reserved[63];
211
212 int hipReserved[32];
213
214 /* HIP Only struct members */
215 char gcnArchName[256];
220 unsigned int* hdpMemFlushCntl;
221 unsigned int* hdpRegFlushCntl;
237
257
261typedef struct hipPointerAttribute_t {
267 unsigned allocationFlags; /* flags specified when memory was allocated*/
268 /* peers? */
270
271// Ignoring error-code return values from hip APIs is discouraged. On C++17,
272// we can make that yield a warning
273#if __cplusplus >= 201703L
274#define __HIP_NODISCARD [[nodiscard]]
275#else
276#define __HIP_NODISCARD
277#endif
278
283// Developer note - when updating these, update the hipErrorName and hipErrorString functions in
284// NVCC and HCC paths Also update the hipCUDAErrorTohipError function in NVCC path.
285
291 // Deprecated
294 // Deprecated
316 // Deprecated
338 // Deprecated
350 704,
352 705,
357 712,
359 713,
361 719,
363 720,
394 // HSA Runtime Error Codes start here.
399 hipErrorTbd
400} hipError_t;
401
402#undef __HIP_NODISCARD
403
410
509
512
537
540 // Extended attributes for vendors
542
548
555
560
566
567#if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
568
569#include <stdint.h>
570#include <stddef.h>
571#ifndef GENERIC_GRID_LAUNCH
572#define GENERIC_GRID_LAUNCH 1
573#endif
574#include <hip/amd_detail/host_defines.h>
575#include <hip/driver_types.h>
576#include <hip/texture_types.h>
577#include <hip/surface_types.h>
578#if defined(_MSC_VER)
579#define DEPRECATED(msg) __declspec(deprecated(msg))
580#else // !defined(_MSC_VER)
581#define DEPRECATED(msg) __attribute__ ((deprecated(msg)))
582#endif // !defined(_MSC_VER)
583#define DEPRECATED_MSG "This API is marked as deprecated and may not be supported in future releases. For more details please refer https://github.com/ROCm-Developer-Tools/HIP/blob/master/docs/markdown/hip_deprecated_api_list.md"
584#define HIP_LAUNCH_PARAM_BUFFER_POINTER ((void*)0x01)
585#define HIP_LAUNCH_PARAM_BUFFER_SIZE ((void*)0x02)
586#define HIP_LAUNCH_PARAM_END ((void*)0x03)
587#ifdef __cplusplus
588 #define __dparm(x) \
589 = x
590#else
591 #define __dparm(x)
592#endif
593#ifdef __GNUC__
594#pragma GCC visibility push (default)
595#endif
596#ifdef __cplusplus
597namespace hip_impl {
598hipError_t hip_init();
599} // namespace hip_impl
600#endif
601// Structure definitions:
602#ifdef __cplusplus
603extern "C" {
604#endif
605//---
606// API-visible structures
607typedef struct ihipCtx_t* hipCtx_t;
608// Note many APIs also use integer deviceIds as an alternative to the device pointer:
609typedef int hipDevice_t;
616typedef struct ihipStream_t* hipStream_t;
617#define hipIpcMemLazyEnablePeerAccess 0x01
618#define HIP_IPC_HANDLE_SIZE 64
619typedef struct hipIpcMemHandle_st {
620 char reserved[HIP_IPC_HANDLE_SIZE];
622typedef struct hipIpcEventHandle_st {
623 char reserved[HIP_IPC_HANDLE_SIZE];
625typedef struct ihipModule_t* hipModule_t;
626typedef struct ihipModuleSymbol_t* hipFunction_t;
630typedef struct ihipMemPoolHandle_t* hipMemPool_t;
631
644typedef struct ihipEvent_t* hipEvent_t;
645
665//Flags that can be used with hipStreamCreateWithFlags.
667#define hipStreamDefault 0x00
668
670#define hipStreamNonBlocking 0x01
671
672//Flags that can be used with hipEventCreateWithFlags.
674#define hipEventDefault 0x0
675
677#define hipEventBlockingSync 0x1
678
680#define hipEventDisableTiming 0x2
681
683#define hipEventInterprocess 0x4
684
693#define hipEventDisableSystemFence 0x20000000
694
697#define hipEventReleaseToDevice 0x40000000
698
701#define hipEventReleaseToSystem 0x80000000
702
703//Flags that can be used with hipHostMalloc.
705#define hipHostMallocDefault 0x0
706
708#define hipHostMallocPortable 0x1
709
712#define hipHostMallocMapped 0x2
713
717#define hipHostMallocWriteCombined 0x4
718
723#define hipHostMallocNumaUser 0x20000000
724
726#define hipHostMallocCoherent 0x40000000
727
729#define hipHostMallocNonCoherent 0x80000000
730
732#define hipMemAttachGlobal 0x01
733
735#define hipMemAttachHost 0x02
736
738#define hipMemAttachSingle 0x04
739
740#define hipDeviceMallocDefault 0x0
741
743#define hipDeviceMallocFinegrained 0x1
744
746#define hipMallocSignalMemory 0x2
747
749#define hipDeviceMallocUncached 0x3
750
751//Flags that can be used with hipHostRegister.
753#define hipHostRegisterDefault 0x0
754
756#define hipHostRegisterPortable 0x1
757
760#define hipHostRegisterMapped 0x2
761
763#define hipHostRegisterIoMemory 0x4
764
766#define hipHostRegisterReadOnly 0x08
767
769#define hipExtHostRegisterCoarseGrained 0x8
770
772#define hipDeviceScheduleAuto 0x0
773
776#define hipDeviceScheduleSpin 0x1
777
780#define hipDeviceScheduleYield 0x2
781#define hipDeviceScheduleBlockingSync 0x4
782#define hipDeviceScheduleMask 0x7
783#define hipDeviceMapHost 0x8
784#define hipDeviceLmemResizeToMax 0x10
786#define hipArrayDefault 0x00
787#define hipArrayLayered 0x01
788#define hipArraySurfaceLoadStore 0x02
789#define hipArrayCubemap 0x04
790#define hipArrayTextureGather 0x08
791#define hipOccupancyDefault 0x00
792#define hipOccupancyDisableCachingOverride 0x01
793#define hipCooperativeLaunchMultiDeviceNoPreSync 0x01
794#define hipCooperativeLaunchMultiDeviceNoPostSync 0x02
795#define hipCpuDeviceId ((int)-1)
796#define hipInvalidDeviceId ((int)-2)
797//Flags that can be used with hipExtLaunch Set of APIs.
799#define hipExtAnyOrderLaunch 0x01
800// Flags to be used with hipStreamWaitValue32 and hipStreamWaitValue64.
801#define hipStreamWaitValueGte 0x0
802#define hipStreamWaitValueEq 0x1
803#define hipStreamWaitValueAnd 0x2
804#define hipStreamWaitValueNor 0x3
805// Stream per thread
807#define hipStreamPerThread ((hipStream_t)2)
808
809// Indicates that the external memory object is a dedicated resource
810#define hipExternalMemoryDedicated 0x1
860
990 unsigned char reserved[64];
992
1046typedef struct dim3 {
1047 uint32_t x;
1048 uint32_t y;
1049 uint32_t z;
1050#ifdef __cplusplus
1051 constexpr __host__ __device__ dim3(uint32_t _x = 1, uint32_t _y = 1, uint32_t _z = 1) : x(_x), y(_y), z(_z){};
1052#endif
1053} dim3;
1057typedef struct hipLaunchParams_t {
1058 void* func;
1061 void **args;
1062 size_t sharedMem;
1068typedef struct hipFunctionLaunchParams_t {
1070 unsigned int gridDimX;
1071 unsigned int gridDimY;
1072 unsigned int gridDimZ;
1073 unsigned int blockDimX;
1074 unsigned int blockDimY;
1075 unsigned int blockDimZ;
1076 unsigned int sharedMemBytes;
1090typedef struct hipExternalMemoryHandleDesc_st {
1092 union {
1093 int fd;
1094 struct {
1095 void *handle;
1096 const void *name;
1097 } win32;
1098 const void *nvSciBufObject;
1099 } handle;
1100 unsigned long long size;
1101 unsigned int flags;
1102 unsigned int reserved[16];
1104typedef struct hipExternalMemoryBufferDesc_st {
1105 unsigned long long offset;
1106 unsigned long long size;
1107 unsigned int flags;
1108 unsigned int reserved[16];
1110typedef struct hipExternalMemoryMipmappedArrayDesc_st {
1111 unsigned long long offset;
1114 unsigned int flags;
1115 unsigned int numLevels;
1130typedef struct hipExternalSemaphoreHandleDesc_st {
1132 union {
1133 int fd;
1134 struct {
1135 void* handle;
1136 const void* name;
1137 } win32;
1138 const void* NvSciSyncObj;
1139 } handle;
1140 unsigned int flags;
1141 unsigned int reserved[16];
1144typedef struct hipExternalSemaphoreSignalParams_st {
1145 struct {
1146 struct {
1147 unsigned long long value;
1148 } fence;
1149 union {
1150 void *fence;
1151 unsigned long long reserved;
1152 } nvSciSync;
1153 struct {
1154 unsigned long long key;
1155 } keyedMutex;
1156 unsigned int reserved[12];
1157 } params;
1158 unsigned int flags;
1159 unsigned int reserved[16];
1164typedef struct hipExternalSemaphoreWaitParams_st {
1165 struct {
1166 struct {
1167 unsigned long long value;
1168 } fence;
1169 union {
1170 void *fence;
1171 unsigned long long reserved;
1172 } nvSciSync;
1173 struct {
1174 unsigned long long key;
1175 unsigned int timeoutMs;
1176 } keyedMutex;
1177 unsigned int reserved[10];
1178 } params;
1179 unsigned int flags;
1180 unsigned int reserved[16];
1182
1183#if __HIP_HAS_GET_PCH
1188 void __hipGetPCH(const char** pch, unsigned int*size);
1189#endif
1190
1203
1204typedef struct _hipGraphicsResource hipGraphicsResource;
1205
1207
1211typedef struct ihipGraph* hipGraph_t;
1215typedef struct hipGraphNode* hipGraphNode_t;
1219typedef struct hipGraphExec* hipGraphExec_t;
1220
1224typedef struct hipUserObject* hipUserObject_t;
1225
1226
1247
1248typedef void (*hipHostFn_t)(void* userData);
1261typedef struct hipMemsetParams {
1262 void* dst;
1263 unsigned int elementSize;
1264 size_t height;
1265 size_t pitch;
1266 unsigned int value;
1267 size_t width;
1269
1279
1305
1311 size_t pitch;
1312 unsigned int value;
1313 unsigned int elementSize;
1314 size_t width;
1315 size_t height;
1317
1335
1347
1352
1362
1366
1377
1396
1411
1422
1423
1438
1450
1462
1466typedef struct ihipMemGenericAllocationHandle* hipMemGenericAllocationHandle_t;
1467
1475
1482
1490
1498
1502typedef struct hipArrayMapInfo {
1504 union {
1509 union {
1510 struct {
1511 unsigned int level;
1512 unsigned int layer;
1513 unsigned int offsetX;
1514 unsigned int offsetY;
1515 unsigned int offsetZ;
1516 unsigned int extentWidth;
1517 unsigned int extentHeight;
1518 unsigned int extentDepth;
1520 struct {
1521 unsigned int layer;
1522 unsigned long long offset;
1523 unsigned long long size;
1528 union {
1531 unsigned long long offset;
1532 unsigned int deviceBitMask;
1533 unsigned int flags;
1534 unsigned int reserved[2];
1536
1545
1553
1560
1567
1574
1598// Doxygen end group GlobalDefs
1624// TODO-ctx - more description on error codes.
1625hipError_t hipInit(unsigned int flags);
1626
1666
1675hipError_t hipDeviceComputeCapability(int* major, int* minor, hipDevice_t device);
1684hipError_t hipDeviceGetName(char* name, int len, hipDevice_t device);
1707 int srcDevice, int dstDevice);
1716hipError_t hipDeviceGetPCIBusId(char* pciBusId, int len, int device);
1724hipError_t hipDeviceGetByPCIBusId(int* device, const char* pciBusId);
1733// doxygen end initialization
1941hipError_t hipDeviceGetLimit(size_t* pValue, enum hipLimit_t limit);
1961hipError_t hipDeviceSetLimit ( enum hipLimit_t limit, size_t value );
1981hipError_t hipGetDeviceFlags(unsigned int* flags);
2040hipError_t hipExtGetLinkTypeAndHopCount(int device1, int device2, uint32_t* linktype, uint32_t* hopcount);
2041// TODO: implement IPC apis
2101hipError_t hipIpcOpenMemHandle(void** devPtr, hipIpcMemHandle_t handle, unsigned int flags);
2120
2138
2157
2158// end doxygen Device
2182hipError_t hipFuncSetAttribute(const void* func, hipFuncAttribute attr, int value);
2208//doxygen end execution
2231
2244
2264const char* hipGetErrorName(hipError_t hip_error);
2273const char* hipGetErrorString(hipError_t hipError);
2283hipError_t hipDrvGetErrorName(hipError_t hipError, const char** errorString);
2293hipError_t hipDrvGetErrorString(hipError_t hipError, const char** errorString);
2294// end doxygen Error
2359hipError_t hipStreamCreateWithPriority(hipStream_t* stream, unsigned int flags, int priority);
2374hipError_t hipDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority);
2449hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags __dparm(0));
2463hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int* flags);
2508hipError_t hipExtStreamCreateWithCUMask(hipStream_t* stream, uint32_t cuMaskSize, const uint32_t* cuMask);
2521hipError_t hipExtStreamGetCUMask(hipStream_t stream, uint32_t cuMaskSize, uint32_t* cuMask);
2525typedef void (*hipStreamCallback_t)(hipStream_t stream, hipError_t status, void* userData);
2542 unsigned int flags);
2543// end doxygen Stream
2586hipError_t hipStreamWaitValue32(hipStream_t stream, void* ptr, uint32_t value, unsigned int flags,
2587 uint32_t mask __dparm(0xFFFFFFFF));
2620hipError_t hipStreamWaitValue64(hipStream_t stream, void* ptr, uint64_t value, unsigned int flags,
2621 uint64_t mask __dparm(0xFFFFFFFFFFFFFFFF));
2641hipError_t hipStreamWriteValue32(hipStream_t stream, void* ptr, uint32_t value, unsigned int flags);
2661hipError_t hipStreamWriteValue64(hipStream_t stream, void* ptr, uint64_t value, unsigned int flags);
2662// end doxygen Stream Memory Operations
2741#ifdef __cplusplus
2742hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream = NULL);
2743#else
2745#endif
2829// end doxygen Events
2861 hipDeviceptr_t ptr);
2862
2863
2897 hipDeviceptr_t ptr);
2914hipError_t hipDrvPointerGetAttributes(unsigned int numAttributes, hipPointer_attribute* attributes,
2915 void** data, hipDeviceptr_t ptr);
2937 const hipExternalSemaphoreHandleDesc* semHandleDesc);
2951 const hipExternalSemaphoreSignalParams* paramsArray,
2952 unsigned int numExtSems, hipStream_t stream);
2966 const hipExternalSemaphoreWaitParams* paramsArray,
2967 unsigned int numExtSems, hipStream_t stream);
2978
3026 const hipExternalMemoryMipmappedArrayDesc* mipmapDesc);
3027 // end of external resource
3044hipError_t hipMalloc(void** ptr, size_t size);
3064hipError_t hipExtMallocWithFlags(void** ptr, size_t sizeBytes, unsigned int flags);
3077DEPRECATED("use hipHostMalloc instead")
3078hipError_t hipMallocHost(void** ptr, size_t size);
3091DEPRECATED("use hipHostMalloc instead")
3092hipError_t hipMemAllocHost(void** ptr, size_t size);
3124hipError_t hipHostMalloc(void** ptr, size_t size, unsigned int flags);
3158 size_t size,
3159 unsigned int flags __dparm(hipMemAttachGlobal));
3173 size_t count,
3174 int device,
3175 hipStream_t stream __dparm(0));
3195hipError_t hipMemAdvise(const void* dev_ptr,
3196 size_t count,
3197 hipMemoryAdvise advice,
3198 int device);
3214 size_t data_size,
3215 hipMemRangeAttribute attribute,
3216 const void* dev_ptr,
3217 size_t count);
3235 size_t* data_sizes,
3236 hipMemRangeAttribute* attributes,
3237 size_t num_attributes,
3238 const void* dev_ptr,
3239 size_t count);
3255 void* dev_ptr,
3256 size_t length __dparm(0),
3257 unsigned int flags __dparm(hipMemAttachSingle));
3258// end doxygen Managed Memory
3318hipError_t hipMallocAsync(void** dev_ptr, size_t size, hipStream_t stream);
3343hipError_t hipFreeAsync(void* dev_ptr, hipStream_t stream);
3371hipError_t hipMemPoolTrimTo(hipMemPool_t mem_pool, size_t min_bytes_to_hold);
3467hipError_t hipMemPoolSetAccess(hipMemPool_t mem_pool, const hipMemAccessDesc* desc_list, size_t count);
3572hipError_t hipMallocFromPoolAsync(void** dev_ptr, size_t size, hipMemPool_t mem_pool, hipStream_t stream);
3600 void* shared_handle,
3601 hipMemPool_t mem_pool,
3602 hipMemAllocationHandleType handle_type,
3603 unsigned int flags);
3628 hipMemPool_t* mem_pool,
3629 void* shared_handle,
3630 hipMemAllocationHandleType handle_type,
3631 unsigned int flags);
3681 void** dev_ptr,
3682 hipMemPool_t mem_pool,
3683 hipMemPoolPtrExportData* export_data);
3684// Doxygen end of ordered memory allocator
3702DEPRECATED("use hipHostMalloc instead")
3703hipError_t hipHostAlloc(void** ptr, size_t size, unsigned int flags);
3715hipError_t hipHostGetDevicePointer(void** devPtr, void* hstPtr, unsigned int flags);
3725hipError_t hipHostGetFlags(unsigned int* flagsPtr, void* hostPtr);
3762hipError_t hipHostRegister(void* hostPtr, size_t sizeBytes, unsigned int flags);
3790hipError_t hipMallocPitch(void** ptr, size_t* pitch, size_t width, size_t height);
3813hipError_t hipMemAllocPitch(hipDeviceptr_t* dptr, size_t* pitch, size_t widthInBytes, size_t height,
3814 unsigned int elementSizeBytes);
3839DEPRECATED("use hipHostFree instead")
3884hipError_t hipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind);
3899hipError_t hipMemcpyWithStream(void* dst, const void* src, size_t sizeBytes,
3900 hipMemcpyKind kind, hipStream_t stream);
3918hipError_t hipMemcpyHtoD(hipDeviceptr_t dst, void* src, size_t sizeBytes);
3936hipError_t hipMemcpyDtoH(void* dst, hipDeviceptr_t src, size_t sizeBytes);
3973hipError_t hipMemcpyHtoDAsync(hipDeviceptr_t dst, void* src, size_t sizeBytes, hipStream_t stream);
3992hipError_t hipMemcpyDtoHAsync(void* dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream);
4012 hipStream_t stream);
4013
4029 hipModule_t hmod, const char* name);
4030
4040hipError_t hipGetSymbolAddress(void** devPtr, const void* symbol);
4041
4042
4043
4053hipError_t hipGetSymbolSize(size_t* size, const void* symbol);
4054
4065hipError_t hipGetProcAddress(const char* symbol, void** pfn, int hipVersion, uint64_t flags,
4066 hipDriverProcAddressQueryResult* symbolStatus);
4067
4086hipError_t hipMemcpyToSymbol(const void* symbol, const void* src,
4087 size_t sizeBytes, size_t offset __dparm(0),
4089
4103hipError_t hipMemcpyToSymbolAsync(const void* symbol, const void* src,
4104 size_t sizeBytes, size_t offset,
4105 hipMemcpyKind kind, hipStream_t stream __dparm(0));
4106
4119hipError_t hipMemcpyFromSymbol(void* dst, const void* symbol,
4120 size_t sizeBytes, size_t offset __dparm(0),
4122
4136hipError_t hipMemcpyFromSymbolAsync(void* dst, const void* symbol,
4137 size_t sizeBytes, size_t offset,
4138 hipMemcpyKind kind,
4139 hipStream_t stream __dparm(0));
4169hipError_t hipMemcpyAsync(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind,
4170 hipStream_t stream __dparm(0));
4180hipError_t hipMemset(void* dst, int value, size_t sizeBytes);
4190hipError_t hipMemsetD8(hipDeviceptr_t dest, unsigned char value, size_t count);
4206hipError_t hipMemsetD8Async(hipDeviceptr_t dest, unsigned char value, size_t count, hipStream_t stream __dparm(0));
4216hipError_t hipMemsetD16(hipDeviceptr_t dest, unsigned short value, size_t count);
4232hipError_t hipMemsetD16Async(hipDeviceptr_t dest, unsigned short value, size_t count, hipStream_t stream __dparm(0));
4242hipError_t hipMemsetD32(hipDeviceptr_t dest, int value, size_t count);
4258hipError_t hipMemsetAsync(void* dst, int value, size_t sizeBytes, hipStream_t stream __dparm(0));
4274hipError_t hipMemsetD32Async(hipDeviceptr_t dst, int value, size_t count,
4275 hipStream_t stream __dparm(0));
4286hipError_t hipMemset2D(void* dst, size_t pitch, int value, size_t width, size_t height);
4298hipError_t hipMemset2DAsync(void* dst, size_t pitch, int value, size_t width, size_t height,hipStream_t stream __dparm(0));
4307hipError_t hipMemset3D(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent );
4317hipError_t hipMemset3DAsync(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent ,hipStream_t stream __dparm(0));
4334hipError_t hipMemGetInfo(size_t* free, size_t* total);
4335
4347hipError_t hipMemPtrGetInfo(void* ptr, size_t* size);
4361 size_t height __dparm(0), unsigned int flags __dparm(hipArrayDefault));
4426 struct hipExtent extent, unsigned int flags);
4439hipError_t hipArrayGetInfo(hipChannelFormatDesc* desc, hipExtent* extent, unsigned int* flags,
4440 hipArray_t array);
4493hipError_t hipMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width,
4494 size_t height, hipMemcpyKind kind);
4533hipError_t hipMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width,
4534 size_t height, hipMemcpyKind kind, hipStream_t stream __dparm(0));
4552hipError_t hipMemcpy2DToArray(hipArray_t dst, size_t wOffset, size_t hOffset, const void* src,
4553 size_t spitch, size_t width, size_t height, hipMemcpyKind kind);
4572hipError_t hipMemcpy2DToArrayAsync(hipArray_t dst, size_t wOffset, size_t hOffset, const void* src,
4573 size_t spitch, size_t width, size_t height, hipMemcpyKind kind,
4574 hipStream_t stream __dparm(0));
4592hipError_t hipMemcpyToArray(hipArray_t dst, size_t wOffset, size_t hOffset, const void* src,
4593 size_t count, hipMemcpyKind kind);
4611hipError_t hipMemcpyFromArray(void* dst, hipArray_const_t srcArray, size_t wOffset, size_t hOffset,
4612 size_t count, hipMemcpyKind kind);
4630hipError_t hipMemcpy2DFromArray( void* dst, size_t dpitch, hipArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, hipMemcpyKind kind);
4649hipError_t hipMemcpy2DFromArrayAsync( void* dst, size_t dpitch, hipArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, hipMemcpyKind kind, hipStream_t stream __dparm(0));
4663hipError_t hipMemcpyAtoH(void* dst, hipArray_t srcArray, size_t srcOffset, size_t count);
4677hipError_t hipMemcpyHtoA(hipArray_t dstArray, size_t dstOffset, const void* srcHost, size_t count);
4724// doxygen end Memory
4752hipError_t hipDeviceCanAccessPeer(int* canAccessPeer, int deviceId, int peerDeviceId);
4769hipError_t hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags);
4795#ifndef USE_PEER_NON_UNIFIED
4796#define USE_PEER_NON_UNIFIED 1
4797#endif
4798#if USE_PEER_NON_UNIFIED == 1
4810hipError_t hipMemcpyPeer(void* dst, int dstDeviceId, const void* src, int srcDeviceId,
4811 size_t sizeBytes);
4824hipError_t hipMemcpyPeerAsync(void* dst, int dstDeviceId, const void* src, int srcDevice,
4825 size_t sizeBytes, hipStream_t stream __dparm(0));
4826#endif
4827// doxygen end PeerToPeer
4860hipError_t hipCtxCreate(hipCtx_t* ctx, unsigned int flags, hipDevice_t device);
5062hipError_t hipCtxGetFlags(unsigned int* flags);
5085hipError_t hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags);
5106// doxygen end Context deprecated
5122hipError_t hipDevicePrimaryCtxGetState(hipDevice_t dev, unsigned int* flags, int* active);
5172// doxygen end Context Management
5199hipError_t hipModuleLoad(hipModule_t* module, const char* fname);
5220hipError_t hipModuleGetFunction(hipFunction_t* function, hipModule_t module, const char* kname);
5229hipError_t hipFuncGetAttributes(struct hipFuncAttributes* attr, const void* func);
5259hipError_t hipModuleLoadData(hipModule_t* module, const void* image);
5272hipError_t hipModuleLoadDataEx(hipModule_t* module, const void* image, unsigned int numOptions,
5273 hipJitOption* options, void** optionValues);
5302hipError_t hipModuleLaunchKernel(hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY,
5303 unsigned int gridDimZ, unsigned int blockDimX,
5304 unsigned int blockDimY, unsigned int blockDimZ,
5305 unsigned int sharedMemBytes, hipStream_t stream,
5306 void** kernelParams, void** extra);
5333 unsigned int gridDimY, unsigned int gridDimZ,
5334 unsigned int blockDimX, unsigned int blockDimY,
5335 unsigned int blockDimZ, unsigned int sharedMemBytes,
5336 hipStream_t stream, void** kernelParams);
5352 unsigned int numDevices,
5353 unsigned int flags);
5372hipError_t hipLaunchCooperativeKernel(const void* f, dim3 gridDim, dim3 blockDimX,
5373 void** kernelParams, unsigned int sharedMemBytes,
5374 hipStream_t stream);
5387 int numDevices, unsigned int flags);
5400 int numDevices, unsigned int flags);
5401// doxygen end Module
5428//TODO - Match CUoccupancyB2DSize
5430 hipFunction_t f, size_t dynSharedMemPerBlk,
5431 int blockSizeLimit);
5447//TODO - Match CUoccupancyB2DSize
5449 hipFunction_t f, size_t dynSharedMemPerBlk,
5450 int blockSizeLimit, unsigned int flags);
5461 int* numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk);
5473 int* numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags);
5484 int* numBlocks, const void* f, int blockSize, size_t dynSharedMemPerBlk);
5496 int* numBlocks, const void* f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags __dparm(hipOccupancyDefault));
5511hipError_t hipOccupancyMaxPotentialBlockSize(int* gridSize, int* blockSize,
5512 const void* f, size_t dynSharedMemPerBlk,
5513 int blockSizeLimit);
5514// doxygen end Occupancy
5528// TODO - expand descriptions:
5535DEPRECATED("use roctracer/rocTX instead")
5543DEPRECATED("use roctracer/rocTX instead")
5545// doxygen end profiler
5572hipError_t hipConfigureCall(dim3 gridDim, dim3 blockDim, size_t sharedMem __dparm(0), hipStream_t stream __dparm(0));
5583hipError_t hipSetupArgument(const void* arg, size_t size, size_t offset);
5592hipError_t hipLaunchByPtr(const void* func);
5610 dim3 blockDim,
5611 size_t sharedMem __dparm(0),
5612 hipStream_t stream __dparm(0));
5633 dim3 *blockDim,
5634 size_t *sharedMem,
5635 hipStream_t *stream);
5651hipError_t hipLaunchKernel(const void* function_address,
5652 dim3 numBlocks,
5653 dim3 dimBlocks,
5654 void** args,
5655 size_t sharedMemBytes __dparm(0),
5656 hipStream_t stream __dparm(0));
5657
5670
5679//TODO: Move this to hip_ext.h
5700hipError_t hipExtLaunchKernel(const void* function_address, dim3 numBlocks, dim3 dimBlocks,
5701 void** args, size_t sharedMemBytes, hipStream_t stream,
5702 hipEvent_t startEvent, hipEvent_t stopEvent, int flags);
5703// doxygen end Clang launch
5730 hipTextureObject_t* pTexObject,
5731 const hipResourceDesc* pResDesc,
5732 const hipTextureDesc* pTexDesc,
5733 const struct hipResourceViewDesc* pResViewDesc);
5734
5744
5756 hipArray_const_t array);
5757
5768 hipResourceDesc* pResDesc,
5769 hipTextureObject_t textureObject);
5770
5781 struct hipResourceViewDesc* pResViewDesc,
5782 hipTextureObject_t textureObject);
5783
5794 hipTextureDesc* pTexDesc,
5795 hipTextureObject_t textureObject);
5796
5809 hipTextureObject_t* pTexObject,
5810 const HIP_RESOURCE_DESC* pResDesc,
5811 const HIP_TEXTURE_DESC* pTexDesc,
5812 const HIP_RESOURCE_VIEW_DESC* pResViewDesc);
5813
5823 hipTextureObject_t texObject);
5824
5835 HIP_RESOURCE_DESC* pResDesc,
5836 hipTextureObject_t texObject);
5837
5848 HIP_RESOURCE_VIEW_DESC* pResViewDesc,
5849 hipTextureObject_t texObject);
5850
5861 HIP_TEXTURE_DESC* pTexDesc,
5862 hipTextureObject_t texObject);
5863
5879 hipMipmappedArray_t *mipmappedArray,
5880 const struct hipChannelFormatDesc* desc,
5881 struct hipExtent extent,
5882 unsigned int numLevels,
5883 unsigned int flags __dparm(0));
5884
5895hipError_t hipFreeMipmappedArray(hipMipmappedArray_t mipmappedArray);
5896
5910 hipArray_t *levelArray,
5911 hipMipmappedArray_const_t mipmappedArray,
5912 unsigned int level);
5913
5926 hipMipmappedArray_t* pHandle,
5927 HIP_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc,
5928 unsigned int numMipmapLevels);
5929
5940hipError_t hipMipmappedArrayDestroy(hipMipmappedArray_t hMipmappedArray);
5941
5955 hipArray_t* pLevelArray,
5956 hipMipmappedArray_t hMipMappedArray,
5957 unsigned int level);
5958
5979 const textureReference* tex,
5980 hipMipmappedArray_const_t mipmappedArray,
5981 const hipChannelFormatDesc* desc);
5982
5995 const textureReference** texref,
5996 const void* symbol);
6010 textureReference* texRef,
6011 int dim,
6012 enum hipTextureAddressMode am);
6027 textureReference* tex,
6028 hipArray_const_t array,
6029 unsigned int flags);
6043 textureReference* texRef,
6044 enum hipTextureFilterMode fm);
6058 textureReference* texRef,
6059 unsigned int Flags);
6074 textureReference* texRef,
6075 hipArray_Format fmt,
6076 int NumPackedComponents);
6093 size_t* offset,
6094 const textureReference* tex,
6095 const void* devPtr,
6096 const hipChannelFormatDesc* desc,
6097 size_t size __dparm(UINT_MAX));
6116 size_t* offset,
6117 const textureReference* tex,
6118 const void* devPtr,
6119 const hipChannelFormatDesc* desc,
6120 size_t width,
6121 size_t height,
6122 size_t pitch);
6137 const textureReference* tex,
6138 hipArray_const_t array,
6139 const hipChannelFormatDesc* desc);
6153 size_t* offset,
6154 const textureReference* texref);
6180 hipDeviceptr_t* dev_ptr,
6181 const textureReference* texRef);
6196 enum hipTextureAddressMode* pam,
6197 const textureReference* texRef,
6198 int dim);
6212 enum hipTextureFilterMode* pfm,
6213 const textureReference* texRef);
6227 unsigned int* pFlags,
6228 const textureReference* texRef);
6243 hipArray_Format* pFormat,
6244 int* pNumChannels,
6245 const textureReference* texRef);
6259 int* pmaxAnsio,
6260 const textureReference* texRef);
6274 enum hipTextureFilterMode* pfm,
6275 const textureReference* texRef);
6289 float* pbias,
6290 const textureReference* texRef);
6305 float* pminMipmapLevelClamp,
6306 float* pmaxMipmapLevelClamp,
6307 const textureReference* texRef);
6321 hipMipmappedArray_t* pArray,
6322 const textureReference* texRef);
6338 size_t* ByteOffset,
6339 textureReference* texRef,
6340 hipDeviceptr_t dptr,
6341 size_t bytes);
6357 textureReference* texRef,
6358 const HIP_ARRAY_DESCRIPTOR* desc,
6359 hipDeviceptr_t dptr,
6360 size_t Pitch);
6374 textureReference* texRef,
6375 unsigned int maxAniso);
6389 textureReference* texRef,
6390 float* pBorderColor);
6404 textureReference* texRef,
6405 enum hipTextureFilterMode fm);
6419 textureReference* texRef,
6420 float bias);
6435 textureReference* texRef,
6436 float minMipMapLevelClamp,
6437 float maxMipMapLevelClamp);
6452 textureReference* texRef,
6453 struct hipMipmappedArray* mipmappedArray,
6454 unsigned int Flags);
6455
6456// doxygen end deprecated texture management
6461// doxygen end Texture management
6473// This group is for HIPrtc
6474
6475// doxygen end Runtime
6494const char* hipApiName(uint32_t id);
6503const char* hipKernelNameRef(const hipFunction_t f);
6513const char* hipKernelNameRefByPtr(const void* hostFunction, hipStream_t stream);
6523
6524// doxygen end Callback
6550
6564
6579 unsigned long long* pId);
6580
6598 unsigned long long* id_out __dparm(0),
6599 hipGraph_t* graph_out __dparm(0),
6600 const hipGraphNode_t** dependencies_out __dparm(0),
6601 size_t* numDependencies_out __dparm(0));
6602
6616
6632 size_t numDependencies,
6633 unsigned int flags __dparm(0));
6634
6646
6659hipError_t hipGraphCreate(hipGraph_t* pGraph, unsigned int flags);
6660
6673
6688 const hipGraphNode_t* to, size_t numDependencies);
6689
6704 const hipGraphNode_t* to, size_t numDependencies);
6705
6724 size_t* numEdges);
6725
6742hipError_t hipGraphGetNodes(hipGraph_t graph, hipGraphNode_t* nodes, size_t* numNodes);
6743
6761 size_t* pNumRootNodes);
6762
6780 size_t* pNumDependencies);
6781
6800 size_t* pNumDependentNodes);
6801
6814
6826
6838hipError_t hipGraphClone(hipGraph_t* pGraphClone, hipGraph_t originalGraph);
6839
6853 hipGraph_t clonedGraph);
6854
6872 hipGraphNode_t* pErrorNode, char* pLogBuffer, size_t bufferSize);
6873
6887 unsigned long long flags);
6888
6901 hipGraphInstantiateParams *instantiateParams);
6913
6925
6939 const hipGraphNode_t *pDependencies, size_t numDependencies,
6940 hipGraphNodeParams *nodeParams);
6941
6951hipError_t hipGraphExecGetFlags(hipGraphExec_t graphExec, unsigned long long* flags);
6952
6963
6975
6987
6988// Check whether an executable graph can be updated with a graph and perform the update if possible.
7003 hipGraphNode_t* hErrorNode_out,
7004 hipGraphExecUpdateResult* updateResult_out);
7005
7019 const hipGraphNode_t* pDependencies, size_t numDependencies,
7020 const hipKernelNodeParams* pNodeParams);
7021
7032
7043
7055 const hipKernelNodeParams* pNodeParams);
7056
7071 const hipGraphNode_t* dependencies,
7072 size_t numDependencies,
7073 const HIP_MEMCPY3D* copyParams, hipCtx_t ctx);
7087 const hipGraphNode_t* pDependencies, size_t numDependencies,
7088 const hipMemcpy3DParms* pCopyParams);
7099
7110
7122 const hipKernelNodeAttrValue* value);
7134 hipKernelNodeAttrValue* value);
7146 hipMemcpy3DParms* pNodeParams);
7147
7164 const hipGraphNode_t* pDependencies, size_t numDependencies,
7165 void* dst, const void* src, size_t count, hipMemcpyKind kind);
7166
7180 size_t count, hipMemcpyKind kind);
7181
7197 void* dst, const void* src, size_t count,
7198 hipMemcpyKind kind);
7199
7217 const hipGraphNode_t* pDependencies,
7218 size_t numDependencies, void* dst, const void* symbol,
7219 size_t count, size_t offset, hipMemcpyKind kind);
7220
7235 size_t count, size_t offset, hipMemcpyKind kind);
7236
7253 void* dst, const void* symbol, size_t count,
7254 size_t offset, hipMemcpyKind kind);
7255
7273 const hipGraphNode_t* pDependencies,
7274 size_t numDependencies, const void* symbol,
7275 const void* src, size_t count, size_t offset,
7276 hipMemcpyKind kind);
7277
7292 const void* src, size_t count, size_t offset,
7293 hipMemcpyKind kind);
7294
7295
7311 const void* symbol, const void* src,
7312 size_t count, size_t offset, hipMemcpyKind kind);
7313
7327 const hipGraphNode_t* pDependencies, size_t numDependencies,
7328 const hipMemsetParams* pMemsetParams);
7329
7340
7351
7363 const hipMemsetParams* pNodeParams);
7364
7378 const hipGraphNode_t* pDependencies, size_t numDependencies,
7379 const hipHostNodeParams* pNodeParams);
7380
7391
7402
7414 const hipHostNodeParams* pNodeParams);
7415
7429 const hipGraphNode_t* pDependencies, size_t numDependencies,
7430 hipGraph_t childGraph);
7431
7442
7454 hipGraph_t childGraph);
7455
7468 const hipGraphNode_t* pDependencies, size_t numDependencies);
7469
7470
7484 const hipGraphNode_t* pDependencies, size_t numDependencies,
7485 hipEvent_t event);
7486
7497
7508
7520 hipEvent_t event);
7521
7535 const hipGraphNode_t* pDependencies, size_t numDependencies,
7536 hipEvent_t event);
7537
7538
7549
7560
7572 hipEvent_t event);
7573
7587 const hipGraphNode_t* pDependencies, size_t numDependencies, hipMemAllocNodeParams* pNodeParams);
7588
7599
7613 const hipGraphNode_t* pDependencies, size_t numDependencies, void* dev_ptr);
7614
7625
7637
7649
7660
7674 unsigned int initialRefcount, unsigned int flags);
7675
7686
7697
7710 unsigned int count __dparm(1), unsigned int flags __dparm(0));
7711
7723 unsigned int count __dparm(1));
7724
7735hipError_t hipGraphDebugDotPrint(hipGraph_t graph, const char* path, unsigned int flags);
7736
7752
7776 unsigned int isEnabled);
7798 unsigned int* isEnabled);
7799
7813 const hipGraphNode_t* pDependencies, size_t numDependencies,
7814 const hipExternalSemaphoreWaitNodeParams* nodeParams);
7815
7829 const hipGraphNode_t* pDependencies, size_t numDependencies,
7830 const hipExternalSemaphoreSignalNodeParams* nodeParams);
7841 const hipExternalSemaphoreSignalNodeParams* nodeParams);
7852 const hipExternalSemaphoreWaitNodeParams* nodeParams);
7886 const hipExternalSemaphoreSignalNodeParams* nodeParams);
7898 const hipExternalSemaphoreWaitNodeParams* nodeParams);
7899
7910
7921
7936 const hipGraphNode_t* dependencies, size_t numDependencies,
7937 const HIP_MEMSET_NODE_PARAMS* memsetParams, hipCtx_t ctx);
7938
7952 const hipGraphNode_t* dependencies, size_t numDependencies,
7953 hipDeviceptr_t dptr);
7954
7967 const HIP_MEMCPY3D* copyParams, hipCtx_t ctx);
7968
7981 const HIP_MEMSET_NODE_PARAMS* memsetParams, hipCtx_t ctx);
7982
7983// doxygen end graph API
8011hipError_t hipMemAddressFree(void* devPtr, size_t size);
8012
8027hipError_t hipMemAddressReserve(void** ptr, size_t size, size_t alignment, void* addr, unsigned long long flags);
8028
8042hipError_t hipMemCreate(hipMemGenericAllocationHandle_t* handle, size_t size, const hipMemAllocationProp* prop, unsigned long long flags);
8043
8057hipError_t hipMemExportToShareableHandle(void* shareableHandle, hipMemGenericAllocationHandle_t handle, hipMemAllocationHandleType handleType, unsigned long long flags);
8058
8071hipError_t hipMemGetAccess(unsigned long long* flags, const hipMemLocation* location, void* ptr);
8072
8087
8100
8114
8129hipError_t hipMemMap(void* ptr, size_t size, size_t offset, hipMemGenericAllocationHandle_t handle, unsigned long long flags);
8130
8143hipError_t hipMemMapArrayAsync(hipArrayMapInfo* mapInfoList, unsigned int count, hipStream_t stream);
8144
8156
8169
8183hipError_t hipMemSetAccess(void* ptr, size_t size, const hipMemAccessDesc* desc, size_t count);
8184
8196hipError_t hipMemUnmap(void* ptr, size_t size);
8197
8198// doxygen end virtual memory management API
8221 hipStream_t stream __dparm(0) );
8236 unsigned int arrayIndex, unsigned int mipLevel);
8248 hipGraphicsResource_t resource);
8260 hipStream_t stream __dparm(0));
8270// doxygen end GL Interop
8305// end of surface
8309#ifdef __cplusplus
8310} /* extern "c" */
8311#endif
8312#ifdef __cplusplus
8313#if defined(__clang__) && defined(__HIP__)
8314template <typename T>
8315static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSize(int* gridSize, int* blockSize,
8316 T f, size_t dynSharedMemPerBlk = 0, int blockSizeLimit = 0) {
8317 return hipOccupancyMaxPotentialBlockSize(gridSize, blockSize, reinterpret_cast<const void*>(f),dynSharedMemPerBlk,blockSizeLimit);
8318}
8319template <typename T>
8320static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSizeWithFlags(int* gridSize, int* blockSize,
8321 T f, size_t dynSharedMemPerBlk = 0, int blockSizeLimit = 0, unsigned int flags = 0 ) {
8322 return hipOccupancyMaxPotentialBlockSize(gridSize, blockSize, reinterpret_cast<const void*>(f),dynSharedMemPerBlk,blockSizeLimit);
8323}
8324#endif // defined(__clang__) && defined(__HIP__)
8325
8335template <typename T>
8336hipError_t hipGetSymbolAddress(void** devPtr, const T &symbol) {
8337 return ::hipGetSymbolAddress(devPtr, (const void *)&symbol);
8338}
8349template <typename T>
8350hipError_t hipGetSymbolSize(size_t* size, const T &symbol) {
8351 return ::hipGetSymbolSize(size, (const void *)&symbol);
8352}
8353
8362template <typename T>
8363hipError_t hipMemcpyToSymbol(const T& symbol, const void* src, size_t sizeBytes,
8364 size_t offset __dparm(0),
8366 return ::hipMemcpyToSymbol((const void*)&symbol, src, sizeBytes, offset, kind);
8367}
8376template <typename T>
8377hipError_t hipMemcpyToSymbolAsync(const T& symbol, const void* src, size_t sizeBytes, size_t offset,
8378 hipMemcpyKind kind, hipStream_t stream __dparm(0)) {
8379 return ::hipMemcpyToSymbolAsync((const void*)&symbol, src, sizeBytes, offset, kind, stream);
8380}
8388template <typename T>
8389hipError_t hipMemcpyFromSymbol(void* dst, const T &symbol,
8390 size_t sizeBytes, size_t offset __dparm(0),
8392 return ::hipMemcpyFromSymbol(dst, (const void*)&symbol, sizeBytes, offset, kind);
8393}
8401template <typename T>
8402hipError_t hipMemcpyFromSymbolAsync(void* dst, const T& symbol, size_t sizeBytes, size_t offset,
8403 hipMemcpyKind kind, hipStream_t stream __dparm(0)) {
8404 return ::hipMemcpyFromSymbolAsync(dst, (const void*)&symbol, sizeBytes, offset, kind, stream);
8405}
8406
8418template <class T>
8420 int* numBlocks, T f, int blockSize, size_t dynSharedMemPerBlk) {
8422 numBlocks, reinterpret_cast<const void*>(f), blockSize, dynSharedMemPerBlk);
8423}
8437template <class T>
8439 int* numBlocks, T f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags) {
8441 numBlocks, reinterpret_cast<const void*>(f), blockSize, dynSharedMemPerBlk, flags);
8442}
8463template<typename UnaryFunction, class T>
8464static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSizeVariableSMemWithFlags(
8465 int* min_grid_size,
8466 int* block_size,
8467 T func,
8468 UnaryFunction block_size_to_dynamic_smem_size,
8469 int block_size_limit = 0,
8470 unsigned int flags = 0) {
8471 if (min_grid_size == nullptr || block_size == nullptr ||
8472 reinterpret_cast<const void*>(func) == nullptr) {
8473 return hipErrorInvalidValue;
8474 }
8475
8476 int dev;
8477 hipError_t status;
8478 if ((status = hipGetDevice(&dev)) != hipSuccess) {
8479 return status;
8480 }
8481
8482 int max_threads_per_cu;
8483 if ((status = hipDeviceGetAttribute(&max_threads_per_cu,
8485 return status;
8486 }
8487
8488 int warp_size;
8489 if ((status = hipDeviceGetAttribute(&warp_size,
8491 return status;
8492 }
8493
8494 int max_cu_count;
8495 if ((status = hipDeviceGetAttribute(&max_cu_count,
8497 return status;
8498 }
8499
8500 struct hipFuncAttributes attr;
8501 if ((status = hipFuncGetAttributes(&attr, reinterpret_cast<const void*>(func))) != hipSuccess) {
8502 return status;
8503 }
8504
8505 // Initial limits for the execution
8506 const int func_max_threads_per_block = attr.maxThreadsPerBlock;
8507 if (block_size_limit == 0) {
8508 block_size_limit = func_max_threads_per_block;
8509 }
8510
8511 if (func_max_threads_per_block < block_size_limit) {
8512 block_size_limit = func_max_threads_per_block;
8513 }
8514
8515 const int block_size_limit_aligned =
8516 ((block_size_limit + (warp_size - 1)) / warp_size) * warp_size;
8517
8518 // For maximum search
8519 int max_threads = 0;
8520 int max_block_size{};
8521 int max_num_blocks{};
8522 for (int block_size_check_aligned = block_size_limit_aligned;
8523 block_size_check_aligned > 0;
8524 block_size_check_aligned -= warp_size) {
8525 // Make sure the logic uses the requested limit and not aligned
8526 int block_size_check = (block_size_limit < block_size_check_aligned) ?
8527 block_size_limit : block_size_check_aligned;
8528
8529 size_t dyn_smem_size = block_size_to_dynamic_smem_size(block_size_check);
8530 int optimal_blocks;
8532 &optimal_blocks, func, block_size_check, dyn_smem_size, flags)) != hipSuccess) {
8533 return status;
8534 }
8535
8536 int total_threads = block_size_check * optimal_blocks;
8537 if (total_threads > max_threads) {
8538 max_block_size = block_size_check;
8539 max_num_blocks = optimal_blocks;
8540 max_threads = total_threads;
8541 }
8542
8543 // Break if the logic reached possible maximum
8544 if (max_threads_per_cu == max_threads) {
8545 break;
8546 }
8547 }
8548
8549 // Grid size is the number of blocks per CU * CU count
8550 *min_grid_size = max_num_blocks * max_cu_count;
8551 *block_size = max_block_size;
8552
8553 return status;
8554}
8555
8575template<typename UnaryFunction, class T>
8576static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSizeVariableSMem(
8577 int* min_grid_size,
8578 int* block_size,
8579 T func,
8580 UnaryFunction block_size_to_dynamic_smem_size,
8581 int block_size_limit = 0)
8582{
8583 return hipOccupancyMaxPotentialBlockSizeVariableSMemWithFlags(min_grid_size, block_size, func,
8584 block_size_to_dynamic_smem_size, block_size_limit);
8585}
8600template <typename F>
8601inline hipError_t hipOccupancyMaxPotentialBlockSize(int* gridSize, int* blockSize,
8602 F kernel, size_t dynSharedMemPerBlk, uint32_t blockSizeLimit) {
8603return hipOccupancyMaxPotentialBlockSize(gridSize, blockSize,(hipFunction_t)kernel, dynSharedMemPerBlk, blockSizeLimit);
8604}
8621template <class T>
8622inline hipError_t hipLaunchCooperativeKernel(T f, dim3 gridDim, dim3 blockDim,
8623 void** kernelParams, unsigned int sharedMemBytes, hipStream_t stream) {
8624 return hipLaunchCooperativeKernel(reinterpret_cast<const void*>(f), gridDim,
8625 blockDim, kernelParams, sharedMemBytes, stream);
8626}
8641template <class T>
8643 unsigned int numDevices, unsigned int flags = 0) {
8644 return hipLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags);
8645}
8660template <class T>
8662 unsigned int numDevices, unsigned int flags = 0) {
8663 return hipExtLaunchMultiKernelMultiDevice(launchParamsList, numDevices, flags);
8664}
8678template <class T, int dim, enum hipTextureReadMode readMode>
8680static inline hipError_t hipBindTexture(size_t* offset, const struct texture<T, dim, readMode>& tex,
8681 const void* devPtr, size_t size = UINT_MAX) {
8682 return hipBindTexture(offset, &tex, devPtr, &tex.channelDesc, size);
8683}
8698template <class T, int dim, enum hipTextureReadMode readMode>
8700static inline hipError_t
8701 hipBindTexture(size_t* offset, const struct texture<T, dim, readMode>& tex, const void* devPtr,
8702 const struct hipChannelFormatDesc& desc, size_t size = UINT_MAX) {
8703 return hipBindTexture(offset, &tex, devPtr, &desc, size);
8704}
8720template<class T, int dim, enum hipTextureReadMode readMode>
8722static inline hipError_t hipBindTexture2D(
8723 size_t *offset,
8724 const struct texture<T, dim, readMode> &tex,
8725 const void *devPtr,
8726 size_t width,
8727 size_t height,
8728 size_t pitch)
8729{
8730 return hipBindTexture2D(offset, &tex, devPtr, &tex.channelDesc, width, height, pitch);
8731}
8748template<class T, int dim, enum hipTextureReadMode readMode>
8750static inline hipError_t hipBindTexture2D(
8751 size_t *offset,
8752 const struct texture<T, dim, readMode> &tex,
8753 const void *devPtr,
8754 const struct hipChannelFormatDesc &desc,
8755 size_t width,
8756 size_t height,
8757 size_t pitch)
8758{
8759 return hipBindTexture2D(offset, &tex, devPtr, &desc, width, height, pitch);
8760}
8772template<class T, int dim, enum hipTextureReadMode readMode>
8774static inline hipError_t hipBindTextureToArray(
8775 const struct texture<T, dim, readMode> &tex,
8776 hipArray_const_t array)
8777{
8778 struct hipChannelFormatDesc desc;
8779 hipError_t err = hipGetChannelDesc(&desc, array);
8780 return (err == hipSuccess) ? hipBindTextureToArray(&tex, array, &desc) : err;
8781}
8794template<class T, int dim, enum hipTextureReadMode readMode>
8796static inline hipError_t hipBindTextureToArray(
8797 const struct texture<T, dim, readMode> &tex,
8798 hipArray_const_t array,
8799 const struct hipChannelFormatDesc &desc)
8800{
8801 return hipBindTextureToArray(&tex, array, &desc);
8802}
8814template<class T, int dim, enum hipTextureReadMode readMode>
8817 const struct texture<T, dim, readMode> &tex,
8818 hipMipmappedArray_const_t mipmappedArray)
8819{
8820 struct hipChannelFormatDesc desc;
8821 hipArray_t levelArray;
8822 hipError_t err = hipGetMipmappedArrayLevel(&levelArray, mipmappedArray, 0);
8823 if (err != hipSuccess) {
8824 return err;
8825 }
8826 err = hipGetChannelDesc(&desc, levelArray);
8827 return (err == hipSuccess) ? hipBindTextureToMipmappedArray(&tex, mipmappedArray, &desc) : err;
8828}
8841template<class T, int dim, enum hipTextureReadMode readMode>
8844 const struct texture<T, dim, readMode> &tex,
8845 hipMipmappedArray_const_t mipmappedArray,
8846 const struct hipChannelFormatDesc &desc)
8847{
8848 return hipBindTextureToMipmappedArray(&tex, mipmappedArray, &desc);
8849}
8860template<class T, int dim, enum hipTextureReadMode readMode>
8862static inline hipError_t hipUnbindTexture(
8863 const struct texture<T, dim, readMode> &tex)
8864{
8865 return hipUnbindTexture(&tex);
8866}
8890static inline hipError_t hipMallocAsync(
8891 void** dev_ptr,
8892 size_t size,
8893 hipMemPool_t mem_pool,
8894 hipStream_t stream) {
8895 return hipMallocFromPoolAsync(dev_ptr, size, mem_pool, stream);
8896}
8907template<class T>
8908static inline hipError_t hipMallocAsync(
8909 T** dev_ptr,
8910 size_t size,
8911 hipMemPool_t mem_pool,
8912 hipStream_t stream) {
8913 return hipMallocFromPoolAsync(reinterpret_cast<void**>(dev_ptr), size, mem_pool, stream);
8914}
8925template<class T>
8926static inline hipError_t hipMallocAsync(
8927 T** dev_ptr,
8928 size_t size,
8929 hipStream_t stream) {
8930 return hipMallocAsync(reinterpret_cast<void**>(dev_ptr), size, stream);
8931}
8942template<class T>
8944 T** dev_ptr,
8945 size_t size,
8946 hipMemPool_t mem_pool,
8947 hipStream_t stream) {
8948 return hipMallocFromPoolAsync(reinterpret_cast<void**>(dev_ptr), size, mem_pool, stream);
8949}
8955#endif // __cplusplus
8956
8957#ifdef __GNUC__
8958#pragma GCC visibility pop
8959#endif
8960
8961
8962#elif !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
8963#include "hip/nvidia_detail/nvidia_hip_runtime_api.h"
8964#else
8965#error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
8966#endif
8967
8968
8980#if defined(__cplusplus) && !defined(__HIP_DISABLE_CPP_FUNCTIONS__)
8981template <class T>
8982static inline hipError_t hipMalloc(T** devPtr, size_t size) {
8983 return hipMalloc((void**)devPtr, size);
8984}
8997template <class T>
8998static inline hipError_t hipHostMalloc(T** ptr, size_t size,
8999 unsigned int flags = hipHostMallocDefault) {
9000 return hipHostMalloc((void**)ptr, size, flags);
9001}
9016template <class T>
9017static inline hipError_t hipMallocManaged(T** devPtr, size_t size,
9018 unsigned int flags = hipMemAttachGlobal) {
9019 return hipMallocManaged((void**)devPtr, size, flags);
9020}
9021
9022
9023#endif
9024#endif
9025// doxygen end HIP API
9029#include <hip/amd_detail/amd_hip_runtime_pt_api.h>
9030
9031#if USE_PROF_API
9032#include <hip/amd_detail/hip_prof_str.h>
9033#endif
hipMemcpyKind
Definition driver_types.h:333
@ hipMemcpyDeviceToHost
Device-to-Host Copy.
Definition driver_types.h:336
@ hipMemcpyHostToDevice
Host-to-Device Copy.
Definition driver_types.h:335
hipPointer_attribute
Definition driver_types.h:431
struct hipArray * hipArray_t
Definition driver_types.h:58
void * hipDeviceptr_t
Definition driver_types.h:39
hipFunction_attribute
Definition driver_types.h:417
const struct hipArray * hipArray_const_t
Definition driver_types.h:59
hipArray_Format
Definition driver_types.h:60
hipResourceType
Definition driver_types.h:123
const char * hipApiName(uint32_t id)
Returns HIP API name by ID.
const char * hipKernelNameRef(const hipFunction_t f)
Returns kernel name reference by function name.
const char * hipKernelNameRefByPtr(const void *hostFunction, hipStream_t stream)
Retrives kernel for a given host pointer, unless stated otherwise.
int hipGetStreamDeviceId(hipStream_t stream)
Returns device ID on the stream.
hipError_t hipSetupArgument(const void *arg, size_t size, size_t offset)
Set a kernel argument.
hipError_t __hipPopCallConfiguration(dim3 *gridDim, dim3 *blockDim, size_t *sharedMem, hipStream_t *stream)
Pop configuration of a kernel launch.
hipError_t hipLaunchHostFunc(hipStream_t stream, hipHostFn_t fn, void *userData)
Enqueues a host function call in a stream.
hipError_t hipLaunchKernel(const void *function_address, dim3 numBlocks, dim3 dimBlocks, void **args, size_t sharedMemBytes, hipStream_t stream)
C compliant kernel launch API.
hipError_t hipExtLaunchKernel(const void *function_address, dim3 numBlocks, dim3 dimBlocks, void **args, size_t sharedMemBytes, hipStream_t stream, hipEvent_t startEvent, hipEvent_t stopEvent, int flags)
Launches kernel from the pointer address, with arguments and shared memory on stream.
hipError_t __hipPushCallConfiguration(dim3 gridDim, dim3 blockDim, size_t sharedMem, hipStream_t stream)
Push configuration of a kernel launch.
hipError_t hipLaunchByPtr(const void *func)
Launch a kernel.
hipError_t hipDrvMemcpy2DUnaligned(const hip_Memcpy2D *pCopy)
hipError_t hipConfigureCall(dim3 gridDim, dim3 blockDim, size_t sharedMem, hipStream_t stream)
Configure a kernel launch.
hipError_t hipCtxGetFlags(unsigned int *flags)
Return flags used for creating default context.
hipError_t hipCtxPopCurrent(hipCtx_t *ctx)
Pop the current/default context and return the popped context.
hipError_t hipCtxGetSharedMemConfig(hipSharedMemConfig *pConfig)
Get Shared memory bank configuration.
hipError_t hipCtxGetCurrent(hipCtx_t *ctx)
Get the handle of the current/ default context.
hipError_t hipCtxSetCacheConfig(hipFuncCache_t cacheConfig)
Set L1/Shared cache partition.
hipError_t hipCtxSetCurrent(hipCtx_t ctx)
Set the passed context as current/default.
hipError_t hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags)
Enables direct access to memory allocations in a peer context.
hipError_t hipCtxGetDevice(hipDevice_t *device)
Get the handle of the device associated with current/default context.
hipError_t hipCtxDestroy(hipCtx_t ctx)
Destroy a HIP context.
hipError_t hipCtxPushCurrent(hipCtx_t ctx)
Push the context to be set as current/ default context.
hipError_t hipCtxGetCacheConfig(hipFuncCache_t *cacheConfig)
Get Cache configuration for a specific function.
hipError_t hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device)
Create a context and set it as current/default context.
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, int *apiVersion)
Returns the approximate HIP api version.
hipError_t hipCtxSynchronize(void)
Blocks until the default context has completed all preceding requested tasks.
hipError_t hipCtxSetSharedMemConfig(hipSharedMemConfig config)
Set Shared memory bank configuration.
hipError_t hipCtxDisablePeerAccess(hipCtx_t peerCtx)
Disable direct access from current context's virtual address space to memory allocations physically l...
hipError_t hipDevicePrimaryCtxSetFlags(hipDevice_t dev, unsigned int flags)
Set flags for the primary context.
hipError_t hipDevicePrimaryCtxGetState(hipDevice_t dev, unsigned int *flags, int *active)
Get the state of the primary context.
hipError_t hipDevicePrimaryCtxRelease(hipDevice_t dev)
Release the primary context on the GPU.
hipError_t hipDevicePrimaryCtxRetain(hipCtx_t *pctx, hipDevice_t dev)
Retain the primary context on the GPU.
hipError_t hipDevicePrimaryCtxReset(hipDevice_t dev)
Resets the primary context on the GPU.
hipError_t hipGetDeviceFlags(unsigned int *flags)
Gets the flags set for current device.
hipError_t hipIpcGetEventHandle(hipIpcEventHandle_t *handle, hipEvent_t event)
Gets an opaque interprocess handle for an event.
hipError_t hipDeviceGetDefaultMemPool(hipMemPool_t *mem_pool, int device)
Returns the default memory pool of the specified device.
hipError_t hipDeviceGetSharedMemConfig(hipSharedMemConfig *pConfig)
Returns bank width of shared memory for current device.
hipError_t hipDeviceSetMemPool(int device, hipMemPool_t mem_pool)
Sets the current memory pool of a device.
hipError_t hipIpcOpenMemHandle(void **devPtr, hipIpcMemHandle_t handle, unsigned int flags)
Opens an interprocess memory handle exported from another process and returns a device pointer usable...
hipError_t hipDeviceGetCacheConfig(hipFuncCache_t *cacheConfig)
Get Cache configuration for a specific Device.
hipError_t hipSetDevice(int deviceId)
Set default device to be used for subsequent hip API calls from this thread.
hipError_t hipExtGetLinkTypeAndHopCount(int device1, int device2, uint32_t *linktype, uint32_t *hopcount)
Returns the link type and hop count between two devices.
hipError_t hipSetDeviceFlags(unsigned flags)
The current device behavior is changed according the flags passed.
hipError_t hipDeviceGetAttribute(int *pi, hipDeviceAttribute_t attr, int deviceId)
Query for a specific device attribute.
hipError_t hipGetDevice(int *deviceId)
Return the default device id for the calling host thread.
hipError_t hipGetDeviceCount(int *count)
Return number of compute-capable devices.
hipError_t hipDeviceGetMemPool(hipMemPool_t *mem_pool, int device)
Gets the current memory pool for the specified device.
hipError_t hipDeviceReset(void)
The state of current device is discarded and updated to a fresh state.
hipError_t hipDeviceGetLimit(size_t *pValue, enum hipLimit_t limit)
Gets resource limits of current device.
hipError_t hipDeviceSetSharedMemConfig(hipSharedMemConfig config)
The bank width of shared memory on current device is set.
hipError_t hipDeviceSetLimit(enum hipLimit_t limit, size_t value)
Sets resource limits of current device.
hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig)
Set L1/Shared cache partition.
hipError_t hipIpcCloseMemHandle(void *devPtr)
Close memory mapped with hipIpcOpenMemHandle.
hipError_t hipIpcOpenEventHandle(hipEvent_t *event, hipIpcEventHandle_t handle)
Opens an interprocess event handles.
hipError_t hipDeviceSynchronize(void)
Waits on all active streams on current device.
hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t *handle, void *devPtr)
Gets an interprocess memory handle for an existing device memory allocation.
hipError_t hipInit(unsigned int flags)
Explicitly initializes the HIP runtime.
hipError_t hipDeviceComputeCapability(int *major, int *minor, hipDevice_t device)
Returns the compute capability of the device.
hipError_t hipDeviceGetName(char *name, int len, hipDevice_t device)
Returns an identifer string for the device.
hipError_t hipDeviceGetByPCIBusId(int *device, const char *pciBusId)
Returns a handle to a compute device.
hipError_t hipDeviceGetUuid(hipUUID *uuid, hipDevice_t device)
Returns an UUID for the device.[BETA].
hipError_t hipDeviceTotalMem(size_t *bytes, hipDevice_t device)
Returns the total amount of memory on the device.
hipError_t hipDeviceGetPCIBusId(char *pciBusId, int len, int device)
Returns a PCI Bus Id string for the device, overloaded to take int device ID.
hipError_t hipDeviceGet(hipDevice_t *device, int ordinal)
Returns a handle to a compute device.
hipError_t hipRuntimeGetVersion(int *runtimeVersion)
Returns the approximate HIP Runtime version.
hipError_t hipDeviceGetP2PAttribute(int *value, hipDeviceP2PAttr attr, int srcDevice, int dstDevice)
Returns a value for attribute of link between two devices.
hipError_t hipDriverGetVersion(int *driverVersion)
Returns the approximate HIP driver version.
const char * hipGetErrorString(hipError_t hipError)
Return handy text string message to explain the error which occurred.
hipError_t hipPeekAtLastError(void)
Return last error returned by any HIP runtime API call.
hipError_t hipDrvGetErrorString(hipError_t hipError, const char **errorString)
Return handy text string message to explain the error which occurred.
hipError_t hipGetLastError(void)
Return last error returned by any HIP runtime API call and resets the stored error code to hipSuccess...
hipError_t hipExtGetLastError(void)
Return last error returned by any HIP runtime API call and resets the stored error code to hipSuccess...
hipError_t hipDrvGetErrorName(hipError_t hipError, const char **errorString)
Return hip error as text string form.
const char * hipGetErrorName(hipError_t hip_error)
Return hip error as text string form.
hipError_t hipEventSynchronize(hipEvent_t event)
Wait for an event to complete.
hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream)
Record an event in the specified stream.
hipError_t hipEventQuery(hipEvent_t event)
Query event status.
hipError_t hipEventCreate(hipEvent_t *event)
hipError_t hipEventDestroy(hipEvent_t event)
Destroy the specified event.
hipError_t hipEventElapsedTime(float *ms, hipEvent_t start, hipEvent_t stop)
Return the elapsed time between two events.
hipError_t hipEventCreateWithFlags(hipEvent_t *event, unsigned flags)
Create an event with the specified flags.
hipError_t hipFuncSetSharedMemConfig(const void *func, hipSharedMemConfig config)
Set shared memory configuation for a specific function.
hipError_t hipFuncSetAttribute(const void *func, hipFuncAttribute attr, int value)
Set attribute for a specific function.
hipError_t hipFuncSetCacheConfig(const void *func, hipFuncCache_t config)
Set Cache configuration for a specific function.
hipError_t hipDestroyExternalMemory(hipExternalMemory_t extMem)
Destroys an external memory object.
hipError_t hipImportExternalSemaphore(hipExternalSemaphore_t *extSem_out, const hipExternalSemaphoreHandleDesc *semHandleDesc)
Imports an external semaphore.
hipError_t hipImportExternalMemory(hipExternalMemory_t *extMem_out, const hipExternalMemoryHandleDesc *memHandleDesc)
Imports an external memory object.
hipError_t hipDestroyExternalSemaphore(hipExternalSemaphore_t extSem)
Destroys an external semaphore object and releases any references to the underlying resource....
hipError_t hipWaitExternalSemaphoresAsync(const hipExternalSemaphore_t *extSemArray, const hipExternalSemaphoreWaitParams *paramsArray, unsigned int numExtSems, hipStream_t stream)
Waits on a set of external semaphore objects.
hipError_t hipSignalExternalSemaphoresAsync(const hipExternalSemaphore_t *extSemArray, const hipExternalSemaphoreSignalParams *paramsArray, unsigned int numExtSems, hipStream_t stream)
Signals a set of external semaphore objects.
hipError_t hipExternalMemoryGetMappedMipmappedArray(hipMipmappedArray_t *mipmap, hipExternalMemory_t extMem, const hipExternalMemoryMipmappedArrayDesc *mipmapDesc)
Maps a mipmapped array onto an external memory object.
hipError_t hipExternalMemoryGetMappedBuffer(void **devPtr, hipExternalMemory_t extMem, const hipExternalMemoryBufferDesc *bufferDesc)
Maps a buffer onto an imported memory object.
hipError_t hipGraphicsUnregisterResource(hipGraphicsResource_t resource)
Unregisters a graphics resource.
hipError_t hipGraphicsUnmapResources(int count, hipGraphicsResource_t *resources, hipStream_t stream)
Unmaps graphics resources.
hipError_t hipGraphicsSubResourceGetMappedArray(hipArray_t *array, hipGraphicsResource_t resource, unsigned int arrayIndex, unsigned int mipLevel)
Get an array through which to access a subresource of a mapped graphics resource.
hipError_t hipGraphicsResourceGetMappedPointer(void **devPtr, size_t *size, hipGraphicsResource_t resource)
Gets device accessible address of a graphics resource.
hipError_t hipGraphicsMapResources(int count, hipGraphicsResource_t *resources, hipStream_t stream)
Maps a graphics resource for access.
hipLimit_t
Definition hip_runtime_api.h:652
hipMemAllocationHandleType
Definition hip_runtime_api.h:967
hipGraphicsResource * hipGraphicsResource_t
Definition hip_runtime_api.h:1206
struct ihipCtx_t * hipCtx_t
Definition hip_runtime_api.h:607
#define __dparm(x)
Definition hip_runtime_api.h:591
struct ihipStream_t * hipStream_t
Definition hip_runtime_api.h:616
hipGraphInstantiateResult
Definition hip_runtime_api.h:1400
int hipDevice_t
Definition hip_runtime_api.h:609
hipAccessProperty
Definition hip_runtime_api.h:1288
hipMemRangeAttribute
Definition hip_runtime_api.h:849
#define hipMemAttachSingle
Definition hip_runtime_api.h:738
hipMemoryAdvise
Definition hip_runtime_api.h:816
#define hipArrayDefault
Definition hip_runtime_api.h:786
hipSharedMemConfig
Definition hip_runtime_api.h:1036
hipComputeMode
Definition hip_runtime_api.h:549
struct ihipEvent_t * hipEvent_t
Definition hip_runtime_api.h:644
hipStreamCaptureMode
Definition hip_runtime_api.h:1336
hipDriverProcAddressQueryResult
Definition hip_runtime_api.h:543
hipGraphNodeType
Definition hip_runtime_api.h:1230
hipExternalMemoryHandleType
Definition hip_runtime_api.h:1080
#define hipMemAttachGlobal
Definition hip_runtime_api.h:732
hipFuncAttribute
Definition hip_runtime_api.h:1019
hipExternalSemaphoreHandleType
Definition hip_runtime_api.h:1118
hipJitOption
Definition hip_runtime_api.h:996
hipDeviceP2PAttr
Definition hip_runtime_api.h:610
hipGraphDebugDotFlags
Definition hip_runtime_api.h:1378
hipUserObjectRetainFlags
Definition hip_runtime_api.h:1363
enum __HIP_NODISCARD hipError_t hipError_t
Definition hip_runtime_api.h:286
void(* hipHostFn_t)(void *userData)
Definition hip_runtime_api.h:1248
#define hipOccupancyDefault
Definition hip_runtime_api.h:791
hipStreamUpdateCaptureDependenciesFlags
Definition hip_runtime_api.h:1348
struct ihipGraph * hipGraph_t
Definition hip_runtime_api.h:1211
#define hipChooseDevice
Definition hip_runtime_api.h:93
hipMemHandleType
Definition hip_runtime_api.h:1479
hipFlushGPUDirectRDMAWritesOptions
Definition hip_runtime_api.h:556
hipFuncCache_t
Definition hip_runtime_api.h:1027
hipUserObjectFlags
Definition hip_runtime_api.h:1359
#define __HIP_NODISCARD
Definition hip_runtime_api.h:276
#define DEPRECATED_MSG
Definition hip_runtime_api.h:583
hipGraphMemAttributeType
Definition hip_runtime_api.h:1353
hipMemPoolAttr
Definition hip_runtime_api.h:865
#define hipDeviceProp_t
Definition hip_runtime_api.h:92
struct ihipModule_t * hipModule_t
Definition hip_runtime_api.h:625
struct hipUserObject * hipUserObject_t
Definition hip_runtime_api.h:1224
hipMemOperationType
Definition hip_runtime_api.h:1486
void * hipExternalSemaphore_t
Definition hip_runtime_api.h:1143
hipGraphicsRegisterFlags
Definition hip_runtime_api.h:1194
hipMemRangeCoherencyMode
Definition hip_runtime_api.h:837
hipMemAccessFlags
Definition hip_runtime_api.h:940
hipMemAllocationGranularity_flags
Definition hip_runtime_api.h:1471
struct hipGraphExec * hipGraphExec_t
Definition hip_runtime_api.h:1219
hipGraphExecUpdateResult
Definition hip_runtime_api.h:1321
struct ihipModuleSymbol_t * hipFunction_t
Definition hip_runtime_api.h:626
void * hipExternalMemory_t
Definition hip_runtime_api.h:1117
hipStreamCaptureStatus
Definition hip_runtime_api.h:1341
hipDeviceAttribute_t
Definition hip_runtime_api.h:408
hipGPUDirectRDMAWritesOrdering
Definition hip_runtime_api.h:561
#define hipGetDeviceProperties
Definition hip_runtime_api.h:91
#define DEPRECATED(msg)
Definition hip_runtime_api.h:581
#define hipHostMallocDefault
Definition hip_runtime_api.h:705
struct _hipGraphicsResource hipGraphicsResource
Definition hip_runtime_api.h:1204
hipMemAllocationType
Definition hip_runtime_api.h:955
struct hipGraphNode * hipGraphNode_t
Definition hip_runtime_api.h:1215
struct ihipMemGenericAllocationHandle * hipMemGenericAllocationHandle_t
Definition hip_runtime_api.h:1466
hipMemoryType
Definition hip_runtime_api.h:244
hipGraphInstantiateFlags
Definition hip_runtime_api.h:1367
hipKernelNodeAttrID
Definition hip_runtime_api.h:1283
hipMemLocationType
Definition hip_runtime_api.h:923
#define HIP_IPC_HANDLE_SIZE
Definition hip_runtime_api.h:618
struct ihipMemPoolHandle_t * hipMemPool_t
Definition hip_runtime_api.h:630
hipArraySparseSubresourceType
Definition hip_runtime_api.h:1494
@ hipLimitMallocHeapSize
Definition hip_runtime_api.h:658
@ hipLimitStackSize
Definition hip_runtime_api.h:653
@ hipLimitRange
Supported limit range.
Definition hip_runtime_api.h:660
@ hipLimitPrintfFifoSize
Definition hip_runtime_api.h:656
@ hipMemHandleTypeWin32
Allows a Win32 NT handle for exporting. (HANDLE)
Definition hip_runtime_api.h:970
@ hipMemHandleTypeWin32Kmt
Allows a Win32 KMT handle for exporting. (D3DKMT_HANDLE)
Definition hip_runtime_api.h:971
@ hipMemHandleTypeNone
Does not allow any export mechanism.
Definition hip_runtime_api.h:968
@ hipMemHandleTypePosixFileDescriptor
Allows a file descriptor for exporting. Permitted only on POSIX systems.
Definition hip_runtime_api.h:969
@ hipGraphInstantiateNodeOperationNotSupported
Definition hip_runtime_api.h:1406
@ hipGraphInstantiateMultipleDevicesNotSupported
Definition hip_runtime_api.h:1408
@ hipGraphInstantiateError
Definition hip_runtime_api.h:1402
@ hipGraphInstantiateInvalidStructure
Definition hip_runtime_api.h:1404
@ hipGraphInstantiateSuccess
Definition hip_runtime_api.h:1401
@ hipAccessPropertyNormal
Definition hip_runtime_api.h:1289
@ hipAccessPropertyPersisting
Definition hip_runtime_api.h:1291
@ hipAccessPropertyStreaming
Definition hip_runtime_api.h:1290
@ hipMemRangeAttributeLastPrefetchLocation
prefetched
Definition hip_runtime_api.h:855
@ hipMemRangeAttributePreferredLocation
The preferred location of the range.
Definition hip_runtime_api.h:852
@ hipMemRangeAttributeAccessedBy
Definition hip_runtime_api.h:853
@ hipMemRangeAttributeReadMostly
Definition hip_runtime_api.h:850
@ hipMemRangeAttributeCoherencyMode
Definition hip_runtime_api.h:857
@ hipMemAdviseUnsetAccessedBy
Definition hip_runtime_api.h:825
@ hipMemAdviseUnsetCoarseGrain
Restores cache coherency policy back to fine-grain.
Definition hip_runtime_api.h:832
@ hipMemAdviseSetCoarseGrain
Definition hip_runtime_api.h:827
@ hipMemAdviseUnsetPreferredLocation
Clear the preferred location for the data.
Definition hip_runtime_api.h:822
@ hipMemAdviseSetAccessedBy
Definition hip_runtime_api.h:823
@ hipMemAdviseSetPreferredLocation
Definition hip_runtime_api.h:820
@ hipMemAdviseSetReadMostly
Definition hip_runtime_api.h:817
@ hipMemAdviseUnsetReadMostly
Undo the effect of hipMemAdviseSetReadMostly.
Definition hip_runtime_api.h:819
@ hipSharedMemBankSizeFourByte
Definition hip_runtime_api.h:1038
@ hipSharedMemBankSizeEightByte
Definition hip_runtime_api.h:1040
@ hipSharedMemBankSizeDefault
The compiler selects a device-specific value for the banking.
Definition hip_runtime_api.h:1037
@ hipComputeModeProhibited
Definition hip_runtime_api.h:552
@ hipComputeModeExclusive
Definition hip_runtime_api.h:551
@ hipComputeModeDefault
Definition hip_runtime_api.h:550
@ hipComputeModeExclusiveProcess
Definition hip_runtime_api.h:553
@ hipStreamCaptureModeRelaxed
Definition hip_runtime_api.h:1339
@ hipStreamCaptureModeThreadLocal
Definition hip_runtime_api.h:1338
@ hipStreamCaptureModeGlobal
Definition hip_runtime_api.h:1337
@ HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND
Definition hip_runtime_api.h:545
@ HIP_GET_PROC_ADDRESS_SUCCESS
Definition hip_runtime_api.h:544
@ HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT
Definition hip_runtime_api.h:546
@ hipGraphNodeTypeGraph
Node which executes an embedded graph.
Definition hip_runtime_api.h:1235
@ hipGraphNodeTypeMemset
Memset node.
Definition hip_runtime_api.h:1233
@ hipGraphNodeTypeEventRecord
External event record node.
Definition hip_runtime_api.h:1238
@ hipGraphNodeTypeExtSemaphoreSignal
External Semaphore signal node.
Definition hip_runtime_api.h:1239
@ hipGraphNodeTypeMemcpy
Memcpy node.
Definition hip_runtime_api.h:1232
@ hipGraphNodeTypeWaitEvent
External event wait node.
Definition hip_runtime_api.h:1237
@ hipGraphNodeTypeCount
Definition hip_runtime_api.h:1245
@ hipGraphNodeTypeKernel
GPU kernel node.
Definition hip_runtime_api.h:1231
@ hipGraphNodeTypeHost
Host (executable) node.
Definition hip_runtime_api.h:1234
@ hipGraphNodeTypeMemAlloc
Memory alloc node.
Definition hip_runtime_api.h:1241
@ hipGraphNodeTypeMemFree
Memory free node.
Definition hip_runtime_api.h:1242
@ hipGraphNodeTypeMemcpyFromSymbol
MemcpyFromSymbol node.
Definition hip_runtime_api.h:1243
@ hipGraphNodeTypeMemcpyToSymbol
MemcpyToSymbol node.
Definition hip_runtime_api.h:1244
@ hipGraphNodeTypeEmpty
Empty (no-op) node.
Definition hip_runtime_api.h:1236
@ hipGraphNodeTypeExtSemaphoreWait
External Semaphore wait node.
Definition hip_runtime_api.h:1240
@ hipExternalMemoryHandleTypeD3D11Resource
Definition hip_runtime_api.h:1086
@ hipExternalMemoryHandleTypeD3D12Resource
Definition hip_runtime_api.h:1085
@ hipExternalMemoryHandleTypeNvSciBuf
Definition hip_runtime_api.h:1088
@ hipExternalMemoryHandleTypeOpaqueFd
Definition hip_runtime_api.h:1081
@ hipExternalMemoryHandleTypeD3D12Heap
Definition hip_runtime_api.h:1084
@ hipExternalMemoryHandleTypeOpaqueWin32Kmt
Definition hip_runtime_api.h:1083
@ hipExternalMemoryHandleTypeOpaqueWin32
Definition hip_runtime_api.h:1082
@ hipExternalMemoryHandleTypeD3D11ResourceKmt
Definition hip_runtime_api.h:1087
@ hipFuncAttributePreferredSharedMemoryCarveout
Definition hip_runtime_api.h:1021
@ hipFuncAttributeMaxDynamicSharedMemorySize
Definition hip_runtime_api.h:1020
@ hipFuncAttributeMax
Definition hip_runtime_api.h:1022
@ hipExternalSemaphoreHandleTypeNvSciSync
Definition hip_runtime_api.h:1124
@ hipExternalSemaphoreHandleTypeKeyedMutexKmt
Definition hip_runtime_api.h:1126
@ hipExternalSemaphoreHandleTypeOpaqueWin32Kmt
Definition hip_runtime_api.h:1121
@ hipExternalSemaphoreHandleTypeKeyedMutex
Definition hip_runtime_api.h:1125
@ hipExternalSemaphoreHandleTypeD3D11Fence
Definition hip_runtime_api.h:1123
@ hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32
Definition hip_runtime_api.h:1128
@ hipExternalSemaphoreHandleTypeOpaqueFd
Definition hip_runtime_api.h:1119
@ hipExternalSemaphoreHandleTypeOpaqueWin32
Definition hip_runtime_api.h:1120
@ hipExternalSemaphoreHandleTypeTimelineSemaphoreFd
Definition hip_runtime_api.h:1127
@ hipExternalSemaphoreHandleTypeD3D12Fence
Definition hip_runtime_api.h:1122
@ hipJitOptionCacheMode
Definition hip_runtime_api.h:1011
@ hipJitOptionFastCompile
Definition hip_runtime_api.h:1013
@ hipJitOptionInfoLogBuffer
Definition hip_runtime_api.h:1000
@ hipJitOptionErrorLogBuffer
Definition hip_runtime_api.h:1002
@ hipJitOptionTarget
Definition hip_runtime_api.h:1006
@ hipJitOptionThreadsPerBlock
Definition hip_runtime_api.h:998
@ hipJitOptionNumOptions
Definition hip_runtime_api.h:1014
@ hipJitOptionGenerateLineInfo
Definition hip_runtime_api.h:1010
@ hipJitOptionOptimizationLevel
Definition hip_runtime_api.h:1004
@ hipJitOptionErrorLogBufferSizeBytes
Definition hip_runtime_api.h:1003
@ hipJitOptionWallTime
Definition hip_runtime_api.h:999
@ hipJitOptionInfoLogBufferSizeBytes
Definition hip_runtime_api.h:1001
@ hipJitOptionTargetFromContext
Definition hip_runtime_api.h:1005
@ hipJitOptionGenerateDebugInfo
Definition hip_runtime_api.h:1008
@ hipJitOptionLogVerbose
Definition hip_runtime_api.h:1009
@ hipJitOptionMaxRegisters
Definition hip_runtime_api.h:997
@ hipJitOptionSm3xOpt
Definition hip_runtime_api.h:1012
@ hipJitOptionFallbackStrategy
Definition hip_runtime_api.h:1007
@ hipDevP2PAttrAccessSupported
Definition hip_runtime_api.h:612
@ hipDevP2PAttrHipArrayAccessSupported
Definition hip_runtime_api.h:614
@ hipDevP2PAttrNativeAtomicSupported
Definition hip_runtime_api.h:613
@ hipDevP2PAttrPerformanceRank
Definition hip_runtime_api.h:611
@ hipGraphDebugDotFlagsKernelNodeAttributes
Definition hip_runtime_api.h:1391
@ hipGraphDebugDotFlagsMemsetNodeParams
Definition hip_runtime_api.h:1383
@ hipGraphDebugDotFlagsKernelNodeParams
Definition hip_runtime_api.h:1381
@ hipGraphDebugDotFlagsExtSemasWaitNodeParams
Definition hip_runtime_api.h:1389
@ hipGraphDebugDotFlagsHandles
Definition hip_runtime_api.h:1393
@ hipGraphDebugDotFlagsExtSemasSignalNodeParams
Definition hip_runtime_api.h:1387
@ hipGraphDebugDotFlagsHostNodeParams
Definition hip_runtime_api.h:1384
@ hipGraphDebugDotFlagsEventNodeParams
Definition hip_runtime_api.h:1385
@ hipGraphDebugDotFlagsVerbose
Definition hip_runtime_api.h:1379
@ hipGraphDebugDotFlagsMemcpyNodeParams
Definition hip_runtime_api.h:1382
@ hipGraphUserObjectMove
Add new reference or retain.
Definition hip_runtime_api.h:1364
@ hipStreamAddCaptureDependencies
Add new nodes to the dependency set.
Definition hip_runtime_api.h:1349
@ hipStreamSetCaptureDependencies
Replace the dependency set with the new nodes.
Definition hip_runtime_api.h:1350
@ hipMemHandleTypeGeneric
Generic handle type.
Definition hip_runtime_api.h:1480
@ hipFlushGPUDirectRDMAWritesOptionHost
Definition hip_runtime_api.h:557
@ hipFlushGPUDirectRDMAWritesOptionMemOps
Definition hip_runtime_api.h:558
@ hipFuncCachePreferNone
no preference for shared memory or L1 (default)
Definition hip_runtime_api.h:1028
@ hipFuncCachePreferEqual
prefer equal size L1 cache and shared memory
Definition hip_runtime_api.h:1031
@ hipFuncCachePreferL1
prefer larger L1 cache and smaller shared memory
Definition hip_runtime_api.h:1030
@ hipFuncCachePreferShared
prefer larger shared memory and smaller L1 cache
Definition hip_runtime_api.h:1029
@ hipUserObjectNoDestructorSync
Destructor execution is not synchronized.
Definition hip_runtime_api.h:1360
@ hipGraphMemAttrReservedMemHigh
High watermark of memory, in bytes, currently allocated for graphs.
Definition hip_runtime_api.h:1357
@ hipGraphMemAttrUsedMemCurrent
Amount of memory, in bytes, currently associated with graphs.
Definition hip_runtime_api.h:1354
@ hipGraphMemAttrUsedMemHigh
High watermark of memory, in bytes, associated with graphs since the last time.
Definition hip_runtime_api.h:1355
@ hipGraphMemAttrReservedMemCurrent
Amount of memory, in bytes, currently allocated for graphs.
Definition hip_runtime_api.h:1356
@ hipMemPoolAttrUsedMemCurrent
Definition hip_runtime_api.h:912
@ hipMemPoolAttrReservedMemHigh
Definition hip_runtime_api.h:907
@ hipMemPoolAttrReservedMemCurrent
Definition hip_runtime_api.h:901
@ hipMemPoolAttrReleaseThreshold
Definition hip_runtime_api.h:896
@ hipMemPoolAttrUsedMemHigh
Definition hip_runtime_api.h:918
@ hipMemPoolReuseAllowInternalDependencies
Definition hip_runtime_api.h:887
@ hipMemPoolReuseFollowEventDependencies
Definition hip_runtime_api.h:874
@ hipMemPoolReuseAllowOpportunistic
Definition hip_runtime_api.h:880
@ hipMemOperationTypeMap
Map operation.
Definition hip_runtime_api.h:1487
@ hipMemOperationTypeUnmap
Unmap operation.
Definition hip_runtime_api.h:1488
@ hipGraphicsRegisterFlagsReadOnly
HIP will not write to this registered resource.
Definition hip_runtime_api.h:1196
@ hipGraphicsRegisterFlagsTextureGather
HIP will perform texture gather operations on this registered resource.
Definition hip_runtime_api.h:1200
@ hipGraphicsRegisterFlagsWriteDiscard
HIP will only write and will not read from this registered resource.
Definition hip_runtime_api.h:1197
@ hipGraphicsRegisterFlagsNone
Definition hip_runtime_api.h:1195
@ hipGraphicsRegisterFlagsSurfaceLoadStore
HIP will bind this resource to a surface.
Definition hip_runtime_api.h:1199
@ hipMemRangeCoherencyModeFineGrain
Definition hip_runtime_api.h:838
@ hipMemRangeCoherencyModeIndeterminate
Definition hip_runtime_api.h:842
@ hipMemRangeCoherencyModeCoarseGrain
Definition hip_runtime_api.h:840
@ hipMemAccessFlagsProtRead
Set the address range read accessible.
Definition hip_runtime_api.h:942
@ hipMemAccessFlagsProtNone
Default, make the address range not accessible.
Definition hip_runtime_api.h:941
@ hipMemAccessFlagsProtReadWrite
Set the address range read-write accessible.
Definition hip_runtime_api.h:943
@ hipMemAllocationGranularityMinimum
Minimum granularity.
Definition hip_runtime_api.h:1472
@ hipMemAllocationGranularityRecommended
Recommended granularity for performance.
Definition hip_runtime_api.h:1473
@ hipGraphExecUpdateErrorNotSupported
The update failed because something about the node is not supported.
Definition hip_runtime_api.h:1331
@ hipGraphExecUpdateErrorNodeTypeChanged
The update failed because a node type changed.
Definition hip_runtime_api.h:1326
@ hipGraphExecUpdateErrorTopologyChanged
The update failed because the topology changed.
Definition hip_runtime_api.h:1325
@ hipGraphExecUpdateErrorUnsupportedFunctionChange
Definition hip_runtime_api.h:1333
@ hipGraphExecUpdateError
Definition hip_runtime_api.h:1323
@ hipGraphExecUpdateErrorFunctionChanged
The update failed because the function of a kernel node changed.
Definition hip_runtime_api.h:1327
@ hipGraphExecUpdateSuccess
The update succeeded.
Definition hip_runtime_api.h:1322
@ hipGraphExecUpdateErrorParametersChanged
The update failed because the parameters changed in a way that is not supported.
Definition hip_runtime_api.h:1329
@ hipStreamCaptureStatusInvalidated
Definition hip_runtime_api.h:1344
@ hipStreamCaptureStatusNone
Stream is not capturing.
Definition hip_runtime_api.h:1342
@ hipStreamCaptureStatusActive
Stream is actively capturing.
Definition hip_runtime_api.h:1343
@ hipDeviceAttributeDirectManagedMemAccessFromHost
Definition hip_runtime_api.h:426
@ hipDeviceAttributeSurfaceAlignment
Alignment requirement for surfaces.
Definition hip_runtime_api.h:496
@ hipDeviceAttributeMaxGridDimX
Max grid size in width.
Definition hip_runtime_api.h:443
@ hipDeviceAttributeMaxSurfaceCubemapLayered
Cuda only. Maximum dimension of Cubemap layered surface.
Definition hip_runtime_api.h:452
@ hipDeviceAttributeMaxSurface3D
Maximum dimension (width, height, depth) of 3D surface.
Definition hip_runtime_api.h:450
@ hipDeviceAttributeMaxPitch
Maximum pitch in bytes allowed by memory copies.
Definition hip_runtime_api.h:473
@ hipDeviceAttributeTccDriver
Cuda only. Whether device is a Tesla device using TCC driver.
Definition hip_runtime_api.h:497
@ hipDeviceAttributeHostNativeAtomicSupported
Link between the device and the host supports native atomic operations.
Definition hip_runtime_api.h:429
@ hipDeviceAttributePageableMemoryAccessUsesHostPageTables
Device accesses pageable memory via the host's page tables.
Definition hip_runtime_api.h:482
@ hipDeviceAttributeUnused5
Previously hipDeviceAttributeGcnArchName.
Definition hip_runtime_api.h:517
@ hipDeviceAttributeMaxBlockDimY
Max block size in height.
Definition hip_runtime_api.h:441
@ hipDeviceAttributeMaxSurfaceCubemap
Cuda only. Maximum dimensions of Cubemap surface.
Definition hip_runtime_api.h:451
@ hipDeviceAttributePageableMemoryAccess
Definition hip_runtime_api.h:480
@ hipDeviceAttributeClockRate
Peak clock frequency in kilohertz.
Definition hip_runtime_api.h:417
@ hipDeviceAttributeCudaCompatibleEnd
Definition hip_runtime_api.h:510
@ hipDeviceAttributeMaxTexture1DMipmap
Maximum size of 1D mipmapped texture.
Definition hip_runtime_api.h:457
@ hipDeviceAttributeComputeCapabilityMajor
Major compute capability version number.
Definition hip_runtime_api.h:437
@ hipDeviceAttributeGlobalL1CacheSupported
Device supports caching globals in L1.
Definition hip_runtime_api.h:428
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem
Definition hip_runtime_api.h:526
@ hipDeviceAttributeAccessPolicyMaxWindowSize
Cuda only. The maximum size of the window policy in bytes.
Definition hip_runtime_api.h:412
@ hipDeviceAttributeMaxTexture3DHeight
Maximum dimension height of 3D texture.
Definition hip_runtime_api.h:465
@ hipDeviceAttributeComputeCapabilityMinor
Minor compute capability version number.
Definition hip_runtime_api.h:476
@ hipDeviceAttributeMaxTextureCubemap
Maximum dimensions of Cubemap texture.
Definition hip_runtime_api.h:468
@ hipDeviceAttributeDeviceOverlap
Definition hip_runtime_api.h:424
@ hipDeviceAttributeMaxTexture2DLinear
Maximum dimensions (width, height, pitch) of 2D textures bound to pitched memory.
Definition hip_runtime_api.h:462
@ hipDeviceAttributeMaxSurface2D
Maximum dimension (width, height) of 2D surface.
Definition hip_runtime_api.h:448
@ hipDeviceAttributeMaxSurface1DLayered
Cuda only. Maximum dimensions of 1D layered surface.
Definition hip_runtime_api.h:447
@ hipDeviceAttributeHdpRegFlushCntl
Address of the HDP_REG_COHERENCY_FLUSH_CNTL register.
Definition hip_runtime_api.h:519
@ hipDeviceAttributeComputeMode
Compute mode that device is currently in.
Definition hip_runtime_api.h:418
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc
Definition hip_runtime_api.h:520
@ hipDeviceAttributeAsicRevision
Revision of the GPU in this device.
Definition hip_runtime_api.h:529
@ hipDeviceAttributeUnused4
Previously hipDeviceAttributeGcnArch.
Definition hip_runtime_api.h:516
@ hipDeviceAttributeCooperativeMultiDeviceLaunch
Support cooperative launch on multiple devices.
Definition hip_runtime_api.h:423
@ hipDeviceAttributeMaxTexture2DHeight
Maximum dimension hight of 2D texture.
Definition hip_runtime_api.h:459
@ hipDeviceAttributePersistingL2CacheMaxSize
Maximum l2 persisting lines capacity in bytes.
Definition hip_runtime_api.h:486
@ hipDeviceAttributeEccEnabled
Whether ECC support is enabled.
Definition hip_runtime_api.h:411
@ hipDeviceAttributeCanUseHostPointerForRegisteredMem
Definition hip_runtime_api.h:415
@ hipDeviceAttributePciBusId
PCI Bus ID.
Definition hip_runtime_api.h:483
@ hipDeviceAttributeL2CacheSize
Size of L2 cache in bytes. 0 if the device doesn't have L2 cache.
Definition hip_runtime_api.h:433
@ hipDeviceAttributeKernelExecTimeout
Run time limit for kernels executed on the device.
Definition hip_runtime_api.h:432
@ hipDeviceAttributeMaxThreadsDim
Maximum dimension of a block.
Definition hip_runtime_api.h:470
@ hipDeviceAttributeSingleToDoublePrecisionPerfRatio
Cuda only. Performance ratio of single precision to double precision.
Definition hip_runtime_api.h:494
@ hipDeviceAttributeMaxGridDimY
Max grid size in height.
Definition hip_runtime_api.h:444
@ hipDeviceAttributeMultiprocessorCount
Number of multiprocessors on the device.
Definition hip_runtime_api.h:478
@ hipDeviceAttributeAmdSpecificBegin
Definition hip_runtime_api.h:511
@ hipDeviceAttributeMaxRegistersPerMultiprocessor
32-bit registers available per block.
Definition hip_runtime_api.h:489
@ hipDeviceAttributeIsMultiGpuBoard
Multiple GPU devices.
Definition hip_runtime_api.h:431
@ hipDeviceAttributeSharedMemPerBlockOptin
Maximum shared memory per block usable by special opt in.
Definition hip_runtime_api.h:492
@ hipDeviceAttributeMaxSurface2DLayered
Cuda only. Maximum dimensions of 2D layered surface.
Definition hip_runtime_api.h:449
@ hipDeviceAttributeAmdSpecificEnd
Definition hip_runtime_api.h:538
@ hipDeviceAttributeMemoryClockRate
Peak memory clock frequency in kilohertz.
Definition hip_runtime_api.h:475
@ hipDeviceAttributeMaxGridDimZ
Max grid size in depth.
Definition hip_runtime_api.h:445
@ hipDeviceAttributeHdpMemFlushCntl
Address of the HDP_MEM_COHERENCY_FLUSH_CNTL register.
Definition hip_runtime_api.h:518
@ hipDeviceAttributeUnused2
Previously hipDeviceAttributeUuid.
Definition hip_runtime_api.h:503
@ hipDeviceAttributeFineGrainSupport
'1' if Device supports fine grain, '0' otherwise
Definition hip_runtime_api.h:535
@ hipDeviceAttributeCooperativeLaunch
Support cooperative launch.
Definition hip_runtime_api.h:422
@ hipDeviceAttributeUnifiedAddressing
Cuda only. An unified address space shared with the host.
Definition hip_runtime_api.h:502
@ hipDeviceAttributeAsyncEngineCount
Asynchronous engines number.
Definition hip_runtime_api.h:413
@ hipDeviceAttributeMultiGpuBoardGroupID
Unique ID of device group on the same multi-GPU board.
Definition hip_runtime_api.h:477
@ hipDeviceAttributeStreamPrioritiesSupported
Whether to support stream priorities.
Definition hip_runtime_api.h:495
@ hipDeviceAttributeMaxSharedMemoryPerBlock
Maximum shared memory available per block in bytes.
Definition hip_runtime_api.h:491
@ hipDeviceAttributeLocalL1CacheSupported
caching locals in L1 is supported
Definition hip_runtime_api.h:434
@ hipDeviceAttributeCanUseStreamWaitValue
Definition hip_runtime_api.h:530
@ hipDeviceAttributeMaxRegistersPerBlock
Definition hip_runtime_api.h:487
@ hipDeviceAttributeMaxThreadsPerBlock
Maximum number of threads per block.
Definition hip_runtime_api.h:471
@ hipDeviceAttributeMemoryBusWidth
Global memory bus width in bits.
Definition hip_runtime_api.h:474
@ hipDeviceAttributeMemoryPoolSupportedHandleTypes
Supported handle mask for HIP Stream Ordered Memory Allocator.
Definition hip_runtime_api.h:508
@ hipDeviceAttributeComputePreemptionSupported
Device supports Compute Preemption.
Definition hip_runtime_api.h:419
@ hipDeviceAttributeMaxSurface1D
Maximum size of 1D surface.
Definition hip_runtime_api.h:446
@ hipDeviceAttributeUnused1
Previously hipDeviceAttributeName.
Definition hip_runtime_api.h:479
@ hipDeviceAttributeMaxTexture3DAlt
Maximum dimensions of alternate 3D texture.
Definition hip_runtime_api.h:467
@ hipDeviceAttributeMaxTexture1DLinear
Definition hip_runtime_api.h:455
@ hipDeviceAttributeMaxTexture2DGather
Maximum dimensions of 2D texture if gather operations performed.
Definition hip_runtime_api.h:460
@ hipDeviceAttributeWallClockRate
Constant frequency of wall clock in kilohertz.
Definition hip_runtime_api.h:536
@ hipDeviceAttributePciDeviceId
PCI Device ID.
Definition hip_runtime_api.h:484
@ hipDeviceAttributeCanMapHostMemory
Whether host memory can be mapped into device address space.
Definition hip_runtime_api.h:414
@ hipDeviceAttributeMaxTexture1DWidth
Maximum size of 1D texture.
Definition hip_runtime_api.h:453
@ hipDeviceAttributeConcurrentManagedAccess
Device can coherently access managed memory concurrently with the CPU.
Definition hip_runtime_api.h:421
@ hipDeviceAttributeVendorSpecificBegin
Definition hip_runtime_api.h:539
@ hipDeviceAttributeManagedMemory
Device supports allocating managed memory on this system.
Definition hip_runtime_api.h:438
@ hipDeviceAttributeIntegrated
Device is integrated GPU.
Definition hip_runtime_api.h:430
@ hipDeviceAttributeMaxTexture2DLayered
Maximum dimensions of 2D layered texture.
Definition hip_runtime_api.h:461
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim
Definition hip_runtime_api.h:522
@ hipDeviceAttributeMaxTexture3DDepth
Maximum dimension depth of 3D texture.
Definition hip_runtime_api.h:466
@ hipDeviceAttributeImageSupport
'1' if Device supports image, '0' otherwise.
Definition hip_runtime_api.h:532
@ hipDeviceAttributeTotalGlobalMem
Global memory available on devicice.
Definition hip_runtime_api.h:501
@ hipDeviceAttributeMaxBlocksPerMultiProcessor
Max block size per multiprocessor.
Definition hip_runtime_api.h:439
@ hipDeviceAttributeIsLargeBar
Whether it is LargeBar.
Definition hip_runtime_api.h:528
@ hipDeviceAttributeMaxTexture2DWidth
Maximum dimension width of 2D texture.
Definition hip_runtime_api.h:458
@ hipDeviceAttributeMaxBlockDimX
Max block size in width.
Definition hip_runtime_api.h:440
@ hipDeviceAttributeMaxTexture3DWidth
Maximum dimension width of 3D texture.
Definition hip_runtime_api.h:464
@ hipDeviceAttributeUnused3
Previously hipDeviceAttributeArch.
Definition hip_runtime_api.h:514
@ hipDeviceAttributeTotalConstantMemory
Constant memory size in bytes.
Definition hip_runtime_api.h:500
@ hipDeviceAttributeTextureAlignment
Alignment requirement for textures.
Definition hip_runtime_api.h:498
@ hipDeviceAttributeMaxTexture1DLayered
Maximum dimensions of 1D layered texture.
Definition hip_runtime_api.h:454
@ hipDeviceAttributeMaxSharedMemoryPerMultiprocessor
Maximum Shared Memory PerMultiprocessor.
Definition hip_runtime_api.h:515
@ hipDeviceAttributeReservedSharedMemPerBlock
Shared memory reserved by CUDA driver per block.
Definition hip_runtime_api.h:490
@ hipDeviceAttributeCudaCompatibleBegin
Definition hip_runtime_api.h:409
@ hipDeviceAttributeConcurrentKernels
Device can possibly execute multiple kernels concurrently.
Definition hip_runtime_api.h:420
@ hipDeviceAttributeLuid
8-byte locally unique identifier in 8 bytes. Undefined on TCC and non-Windows platforms
Definition hip_runtime_api.h:435
@ hipDeviceAttributePciDomainID
PCI Domain ID.
Definition hip_runtime_api.h:485
@ hipDeviceAttributeMaxThreadsPerMultiProcessor
Maximum resident threads per multiprocessor.
Definition hip_runtime_api.h:472
@ hipDeviceAttributeTexturePitchAlignment
Pitch alignment requirement for 2D texture references bound to pitched memory;.
Definition hip_runtime_api.h:499
@ hipDeviceAttributePhysicalMultiProcessorCount
Definition hip_runtime_api.h:533
@ hipDeviceAttributeHostRegisterSupported
Can device support host memory registration via hipHostRegister.
Definition hip_runtime_api.h:507
@ hipDeviceAttributeSharedMemPerMultiprocessor
Shared memory available per multiprocessor.
Definition hip_runtime_api.h:493
@ hipDeviceAttributeLuidDeviceNodeMask
Luid device node mask. Undefined on TCC and non-Windows platforms.
Definition hip_runtime_api.h:436
@ hipDeviceAttributeMaxTextureCubemapLayered
Maximum dimensions of Cubemap layered texture.
Definition hip_runtime_api.h:469
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim
Definition hip_runtime_api.h:524
@ hipDeviceAttributeVirtualMemoryManagementSupported
Device supports HIP virtual memory management.
Definition hip_runtime_api.h:506
@ hipDeviceAttributeMemoryPoolsSupported
Device supports HIP Stream Ordered Memory Allocator.
Definition hip_runtime_api.h:505
@ hipDeviceAttributeClockInstructionRate
Frequency in khz of the timer used by the device-side "clock*".
Definition hip_runtime_api.h:513
@ hipDeviceAttributeMaxTexture2DMipmap
Maximum dimensions of 2D mipmapped texture.
Definition hip_runtime_api.h:463
@ hipDeviceAttributeMaxBlockDimZ
Max block size in depth.
Definition hip_runtime_api.h:442
@ hipDeviceAttributeWarpSize
Warp size in threads.
Definition hip_runtime_api.h:504
@ hipGPUDirectRDMAWritesOrderingOwner
Definition hip_runtime_api.h:563
@ hipGPUDirectRDMAWritesOrderingNone
Definition hip_runtime_api.h:562
@ hipGPUDirectRDMAWritesOrderingAllDevices
Definition hip_runtime_api.h:564
@ hipMemAllocationTypeMax
Definition hip_runtime_api.h:961
@ hipMemAllocationTypePinned
Definition hip_runtime_api.h:960
@ hipMemAllocationTypeInvalid
Definition hip_runtime_api.h:956
@ hipMemoryTypeDevice
Definition hip_runtime_api.h:247
@ hipMemoryTypeHost
Memory is physically located on host.
Definition hip_runtime_api.h:246
@ hipMemoryTypeUnregistered
Unregistered memory.
Definition hip_runtime_api.h:245
@ hipMemoryTypeArray
Definition hip_runtime_api.h:252
@ hipMemoryTypeManaged
Definition hip_runtime_api.h:249
@ hipMemoryTypeUnified
unified address space
Definition hip_runtime_api.h:254
@ hipGraphInstantiateFlagAutoFreeOnLaunch
Automatically free memory allocated in a graph before relaunching.
Definition hip_runtime_api.h:1368
@ hipGraphInstantiateFlagUseNodePriority
Run the graph using the per-node priority attributes rather than the priority of the stream it is lau...
Definition hip_runtime_api.h:1374
@ hipGraphInstantiateFlagUpload
Automatically upload the graph after instantiaton.
Definition hip_runtime_api.h:1370
@ hipGraphInstantiateFlagDeviceLaunch
Instantiate the graph to be launchable from the device.
Definition hip_runtime_api.h:1372
@ hipLaunchAttributePriority
Definition hip_runtime_api.h:1286
@ hipKernelNodeAttributeCooperative
Definition hip_runtime_api.h:1285
@ hipKernelNodeAttributeAccessPolicyWindow
Definition hip_runtime_api.h:1284
@ hipMemLocationTypeInvalid
Definition hip_runtime_api.h:924
@ hipMemLocationTypeDevice
Device location, thus it's HIP device ID.
Definition hip_runtime_api.h:925
@ hipArraySparseSubresourceTypeSparseLevel
Sparse level.
Definition hip_runtime_api.h:1495
@ hipArraySparseSubresourceTypeMiptail
Miptail.
Definition hip_runtime_api.h:1496
hipError_t hipGraphKernelNodeSetParams(hipGraphNode_t node, const hipKernelNodeParams *pNodeParams)
Sets a kernel node's parameters.
hipError_t hipGraphMemFreeNodeGetParams(hipGraphNode_t node, void *dev_ptr)
Returns parameters for memory free node.
hipError_t hipGraphNodeGetDependencies(hipGraphNode_t node, hipGraphNode_t *pDependencies, size_t *pNumDependencies)
Returns a node's dependencies.
hipError_t hipGraphCreate(hipGraph_t *pGraph, unsigned int flags)
Creates a graph.
hipError_t hipGraphAddMemcpyNode1D(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, void *dst, const void *src, size_t count, hipMemcpyKind kind)
Creates a 1D memcpy node and adds it to a graph.
hipError_t hipDrvGraphMemcpyNodeGetParams(hipGraphNode_t hNode, HIP_MEMCPY3D *nodeParams)
Gets a memcpy node's parameters.
hipError_t hipDeviceSetGraphMemAttribute(int device, hipGraphMemAttributeType attr, void *value)
Set the mem attribute for graphs.
hipError_t hipGraphMemcpyNodeSetParams(hipGraphNode_t node, const hipMemcpy3DParms *pNodeParams)
Sets a memcpy node's parameters.
hipError_t hipUserObjectCreate(hipUserObject_t *object_out, void *ptr, hipHostFn_t destroy, unsigned int initialRefcount, unsigned int flags)
Create an instance of userObject to manage lifetime of a resource.
hipError_t hipGraphExecUpdate(hipGraphExec_t hGraphExec, hipGraph_t hGraph, hipGraphNode_t *hErrorNode_out, hipGraphExecUpdateResult *updateResult_out)
Check whether an executable graph can be updated with a graph and perform the update if * possible.
hipError_t hipGraphNodeFindInClone(hipGraphNode_t *pNode, hipGraphNode_t originalNode, hipGraph_t clonedGraph)
Finds a cloned version of a node.
hipError_t hipGraphAddEventWaitNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, hipEvent_t event)
Creates an event wait node and adds it to a graph.
hipError_t hipGraphMemcpyNodeSetParamsToSymbol(hipGraphNode_t node, const void *symbol, const void *src, size_t count, size_t offset, hipMemcpyKind kind)
Sets a memcpy node's parameters to copy to a symbol on the device.
hipError_t hipStreamIsCapturing(hipStream_t stream, hipStreamCaptureStatus *pCaptureStatus)
Get stream's capture state.
hipError_t hipGraphNodeGetEnabled(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int *isEnabled)
Query whether a node in the given graphExec is enabled.
hipError_t hipGraphAddChildGraphNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, hipGraph_t childGraph)
Creates a child graph node and adds it to a graph.
hipError_t hipGraphExternalSemaphoresSignalNodeSetParams(hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams *nodeParams)
Updates node parameters in the external semaphore signal node.
hipError_t hipGraphDestroyNode(hipGraphNode_t node)
Remove a node from the graph.
hipError_t hipGraphMemcpyNodeSetParamsFromSymbol(hipGraphNode_t node, void *dst, const void *symbol, size_t count, size_t offset, hipMemcpyKind kind)
Sets a memcpy node's parameters to copy from a symbol on the device.
hipError_t hipGraphReleaseUserObject(hipGraph_t graph, hipUserObject_t object, unsigned int count)
Release user object from graphs.
hipError_t hipDrvGraphAddMemcpyNode(hipGraphNode_t *phGraphNode, hipGraph_t hGraph, const hipGraphNode_t *dependencies, size_t numDependencies, const HIP_MEMCPY3D *copyParams, hipCtx_t ctx)
Creates a memcpy node and adds it to a graph.
hipError_t hipGraphRemoveDependencies(hipGraph_t graph, const hipGraphNode_t *from, const hipGraphNode_t *to, size_t numDependencies)
Removes dependency edges from a graph.
hipError_t hipGraphMemcpyNodeSetParams1D(hipGraphNode_t node, void *dst, const void *src, size_t count, hipMemcpyKind kind)
Sets a memcpy node's parameters to perform a 1-dimensional copy.
hipError_t hipGraphExecMemcpyNodeSetParams1D(hipGraphExec_t hGraphExec, hipGraphNode_t node, void *dst, const void *src, size_t count, hipMemcpyKind kind)
Sets the parameters for a memcpy node in the given graphExec to perform a 1-dimensional copy.
hipError_t hipGraphExecDestroy(hipGraphExec_t graphExec)
Destroys an executable graph.
hipError_t hipGraphAddExternalSemaphoresSignalNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipExternalSemaphoreSignalNodeParams *nodeParams)
Creates a external semaphor signal node and adds it to a graph.
hipError_t hipGraphExecExternalSemaphoresWaitNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams *nodeParams)
Updates node parameters in the external semaphore wait node in the given graphExec.
hipError_t hipGraphExecHostNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipHostNodeParams *pNodeParams)
Sets the parameters for a host node in the given graphExec.
hipError_t hipGraphExecChildGraphNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, hipGraph_t childGraph)
Updates node parameters in the child graph node in the given graphExec.
hipError_t hipStreamGetCaptureInfo(hipStream_t stream, hipStreamCaptureStatus *pCaptureStatus, unsigned long long *pId)
Get capture status of a stream.
hipError_t hipGraphAddDependencies(hipGraph_t graph, const hipGraphNode_t *from, const hipGraphNode_t *to, size_t numDependencies)
Adds dependency edges to a graph.
hipError_t hipDrvGraphExecMemsetNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const HIP_MEMSET_NODE_PARAMS *memsetParams, hipCtx_t ctx)
Sets the parameters for a memset node in the given graphExec.
hipError_t hipDrvGraphAddMemFreeNode(hipGraphNode_t *phGraphNode, hipGraph_t hGraph, const hipGraphNode_t *dependencies, size_t numDependencies, hipDeviceptr_t dptr)
Creates a memory free node and adds it to a graph.
hipError_t hipGraphExecKernelNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipKernelNodeParams *pNodeParams)
Sets the parameters for a kernel node in the given graphExec.
hipError_t hipGraphNodeGetDependentNodes(hipGraphNode_t node, hipGraphNode_t *pDependentNodes, size_t *pNumDependentNodes)
Returns a node's dependent nodes.
hipError_t hipDeviceGetGraphMemAttribute(int device, hipGraphMemAttributeType attr, void *value)
Get the mem attribute for graphs.
hipError_t hipGraphHostNodeGetParams(hipGraphNode_t node, hipHostNodeParams *pNodeParams)
Returns a host node's parameters.
hipError_t hipGraphInstantiateWithFlags(hipGraphExec_t *pGraphExec, hipGraph_t graph, unsigned long long flags)
Creates an executable graph from a graph.
hipError_t hipGraphExternalSemaphoresSignalNodeGetParams(hipGraphNode_t hNode, hipExternalSemaphoreSignalNodeParams *params_out)
Returns external semaphore signal node params.
hipError_t hipGraphUpload(hipGraphExec_t graphExec, hipStream_t stream)
uploads an executable graph in a stream
hipError_t hipGraphExecExternalSemaphoresSignalNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const hipExternalSemaphoreSignalNodeParams *nodeParams)
Updates node parameters in the external semaphore signal node in the given graphExec.
hipError_t hipGraphExecMemcpyNodeSetParamsToSymbol(hipGraphExec_t hGraphExec, hipGraphNode_t node, const void *symbol, const void *src, size_t count, size_t offset, hipMemcpyKind kind)
Sets the parameters for a memcpy node in the given graphExec to copy to a symbol on the device.
hipError_t hipUserObjectRelease(hipUserObject_t object, unsigned int count)
Release number of references to resource.
hipError_t hipGraphKernelNodeGetParams(hipGraphNode_t node, hipKernelNodeParams *pNodeParams)
Gets kernel node's parameters.
hipError_t hipGraphAddMemcpyNodeFromSymbol(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, void *dst, const void *symbol, size_t count, size_t offset, hipMemcpyKind kind)
Creates a memcpy node to copy from a symbol on the device and adds it to a graph.
hipError_t hipGraphKernelNodeCopyAttributes(hipGraphNode_t hSrc, hipGraphNode_t hDst)
Copies attributes from source node to destination node.
hipError_t hipGraphAddMemFreeNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, void *dev_ptr)
Creates a memory free node and adds it to a graph.
hipError_t hipDrvGraphMemcpyNodeSetParams(hipGraphNode_t hNode, const HIP_MEMCPY3D *nodeParams)
Sets a memcpy node's parameters.
hipError_t hipGraphMemcpyNodeGetParams(hipGraphNode_t node, hipMemcpy3DParms *pNodeParams)
Gets a memcpy node's parameters.
hipError_t hipGraphNodeSetParams(hipGraphNode_t node, hipGraphNodeParams *nodeParams)
Updates parameters of a created node.
hipError_t hipGraphAddEventRecordNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, hipEvent_t event)
Creates an event record node and adds it to a graph.
hipError_t hipDrvGraphExecMemcpyNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, const HIP_MEMCPY3D *copyParams, hipCtx_t ctx)
Sets the parameters for a memcpy node in the given graphExec.
hipError_t hipStreamBeginCapture(hipStream_t stream, hipStreamCaptureMode mode)
Begins graph capture on a stream.
hipError_t hipStreamEndCapture(hipStream_t stream, hipGraph_t *pGraph)
Ends capture on a stream, returning the captured graph.
hipError_t hipGraphExecGetFlags(hipGraphExec_t graphExec, unsigned long long *flags)
Return the flags on executable graph.
hipError_t hipUserObjectRetain(hipUserObject_t object, unsigned int count)
Retain number of references to resource.
hipError_t hipGraphNodeGetType(hipGraphNode_t node, hipGraphNodeType *pType)
Returns a node's type.
hipError_t hipGraphNodeSetEnabled(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, unsigned int isEnabled)
Enables or disables the specified node in the given graphExec.
hipError_t hipGraphExecMemcpyNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, hipMemcpy3DParms *pNodeParams)
Sets the parameters for a memcpy node in the given graphExec.
hipError_t hipGraphExecNodeSetParams(hipGraphExec_t graphExec, hipGraphNode_t node, hipGraphNodeParams *nodeParams)
Updates parameters of a created node on executable graph.
hipError_t hipGraphHostNodeSetParams(hipGraphNode_t node, const hipHostNodeParams *pNodeParams)
Sets a host node's parameters.
hipError_t hipGraphMemAllocNodeGetParams(hipGraphNode_t node, hipMemAllocNodeParams *pNodeParams)
Returns parameters for memory allocation node.
hipError_t hipGraphInstantiateWithParams(hipGraphExec_t *pGraphExec, hipGraph_t graph, hipGraphInstantiateParams *instantiateParams)
Creates an executable graph from a graph.
hipError_t hipGraphExecEventRecordNodeSetEvent(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event)
Sets the event for an event record node in the given graphExec.
hipError_t hipGraphExternalSemaphoresWaitNodeSetParams(hipGraphNode_t hNode, const hipExternalSemaphoreWaitNodeParams *nodeParams)
Updates node parameters in the external semaphore wait node.
hipError_t hipGraphMemsetNodeGetParams(hipGraphNode_t node, hipMemsetParams *pNodeParams)
Gets a memset node's parameters.
hipError_t hipGraphChildGraphNodeGetGraph(hipGraphNode_t node, hipGraph_t *pGraph)
Gets a handle to the embedded graph of a child graph node.
hipError_t hipGraphKernelNodeGetAttribute(hipGraphNode_t hNode, hipKernelNodeAttrID attr, hipKernelNodeAttrValue *value)
Gets a node attribute.
hipError_t hipThreadExchangeStreamCaptureMode(hipStreamCaptureMode *mode)
Swaps the stream capture mode of a thread.
hipError_t hipGraphLaunch(hipGraphExec_t graphExec, hipStream_t stream)
launches an executable graph in a stream
hipError_t hipGraphDebugDotPrint(hipGraph_t graph, const char *path, unsigned int flags)
Write a DOT file describing graph structure.
hipError_t hipGraphExecMemsetNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipMemsetParams *pNodeParams)
Sets the parameters for a memset node in the given graphExec.
hipError_t hipGraphGetEdges(hipGraph_t graph, hipGraphNode_t *from, hipGraphNode_t *to, size_t *numEdges)
Returns a graph's dependency edges.
hipError_t hipGraphAddKernelNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipKernelNodeParams *pNodeParams)
Creates a kernel execution node and adds it to a graph.
hipError_t hipGraphExecEventWaitNodeSetEvent(hipGraphExec_t hGraphExec, hipGraphNode_t hNode, hipEvent_t event)
Sets the event for an event record node in the given graphExec.
hipError_t hipStreamGetCaptureInfo_v2(hipStream_t stream, hipStreamCaptureStatus *captureStatus_out, unsigned long long *id_out, hipGraph_t *graph_out, const hipGraphNode_t **dependencies_out, size_t *numDependencies_out)
Get stream's capture state.
hipError_t hipGraphAddExternalSemaphoresWaitNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipExternalSemaphoreWaitNodeParams *nodeParams)
Creates a external semaphor wait node and adds it to a graph.
hipError_t hipGraphEventWaitNodeSetEvent(hipGraphNode_t node, hipEvent_t event)
Sets an event wait node's event.
hipError_t hipGraphEventRecordNodeSetEvent(hipGraphNode_t node, hipEvent_t event)
Sets an event record node's event.
hipError_t hipGraphEventWaitNodeGetEvent(hipGraphNode_t node, hipEvent_t *event_out)
Returns the event associated with an event wait node.
hipError_t hipGraphKernelNodeSetAttribute(hipGraphNode_t hNode, hipKernelNodeAttrID attr, const hipKernelNodeAttrValue *value)
Sets a node attribute.
hipError_t hipGraphMemsetNodeSetParams(hipGraphNode_t node, const hipMemsetParams *pNodeParams)
Sets a memset node's parameters.
hipError_t hipGraphEventRecordNodeGetEvent(hipGraphNode_t node, hipEvent_t *event_out)
Returns the event associated with an event record node.
hipError_t hipGraphAddEmptyNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies)
Creates an empty node and adds it to a graph.
hipError_t hipGraphAddMemcpyNodeToSymbol(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const void *symbol, const void *src, size_t count, size_t offset, hipMemcpyKind kind)
Creates a memcpy node to copy to a symbol on the device and adds it to a graph.
hipError_t hipGraphDestroy(hipGraph_t graph)
Destroys a graph.
hipError_t hipGraphRetainUserObject(hipGraph_t graph, hipUserObject_t object, unsigned int count, unsigned int flags)
Retain user object for graphs.
hipError_t hipGraphExecMemcpyNodeSetParamsFromSymbol(hipGraphExec_t hGraphExec, hipGraphNode_t node, void *dst, const void *symbol, size_t count, size_t offset, hipMemcpyKind kind)
Sets the parameters for a memcpy node in the given graphExec to copy from a symbol on the.
hipError_t hipGraphAddMemAllocNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, hipMemAllocNodeParams *pNodeParams)
Creates a memory allocation node and adds it to a graph.
hipError_t hipGraphAddHostNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipHostNodeParams *pNodeParams)
Creates a host execution node and adds it to a graph.
hipError_t hipGraphAddNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, hipGraphNodeParams *nodeParams)
Creates a kernel execution node and adds it to a graph.
hipError_t hipGraphGetNodes(hipGraph_t graph, hipGraphNode_t *nodes, size_t *numNodes)
Returns graph nodes.
hipError_t hipGraphAddMemsetNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipMemsetParams *pMemsetParams)
Creates a memset node and adds it to a graph.
hipError_t hipStreamUpdateCaptureDependencies(hipStream_t stream, hipGraphNode_t *dependencies, size_t numDependencies, unsigned int flags)
Update the set of dependencies in a capturing stream.
hipError_t hipGraphInstantiate(hipGraphExec_t *pGraphExec, hipGraph_t graph, hipGraphNode_t *pErrorNode, char *pLogBuffer, size_t bufferSize)
Creates an executable graph from a graph.
hipError_t hipDeviceGraphMemTrim(int device)
Free unused memory on specific device used for graph back to OS.
hipError_t hipGraphExternalSemaphoresWaitNodeGetParams(hipGraphNode_t hNode, hipExternalSemaphoreWaitNodeParams *params_out)
Returns external semaphore wait node params.
hipError_t hipGraphClone(hipGraph_t *pGraphClone, hipGraph_t originalGraph)
Clones a graph.
hipError_t hipDrvGraphAddMemsetNode(hipGraphNode_t *phGraphNode, hipGraph_t hGraph, const hipGraphNode_t *dependencies, size_t numDependencies, const HIP_MEMSET_NODE_PARAMS *memsetParams, hipCtx_t ctx)
Creates a memset node and adds it to a graph.
hipError_t hipGraphGetRootNodes(hipGraph_t graph, hipGraphNode_t *pRootNodes, size_t *pNumRootNodes)
Returns graph's root nodes.
hipError_t hipGraphAddMemcpyNode(hipGraphNode_t *pGraphNode, hipGraph_t graph, const hipGraphNode_t *pDependencies, size_t numDependencies, const hipMemcpy3DParms *pCopyParams)
Creates a memcpy node and adds it to a graph.
hipError_t hipHostAlloc(void **ptr, size_t size, unsigned int flags)
Allocate device accessible page locked host memory [Deprecated].
hipError_t hipMemsetD8Async(hipDeviceptr_t dest, unsigned char value, size_t count, hipStream_t stream)
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value va...
hipError_t hipFreeHost(void *ptr)
Free memory allocated by the hcc hip host memory allocation API [Deprecated].
hipError_t hipMemset2DAsync(void *dst, size_t pitch, int value, size_t width, size_t height, hipStream_t stream)
Fills asynchronously the memory area pointed to by dst with the constant value.
hipError_t hipHostFree(void *ptr)
Free memory allocated by the hcc hip host memory allocation API This API performs an implicit hipDevi...
hipError_t hipMemGetInfo(size_t *free, size_t *total)
Query memory info.
hipError_t hipExtMallocWithFlags(void **ptr, size_t sizeBytes, unsigned int flags)
Allocate memory on the default accelerator.
hipError_t hipMemcpy3D(const struct hipMemcpy3DParms *p)
Copies data between host and device.
hipError_t hipMalloc3DArray(hipArray_t *array, const struct hipChannelFormatDesc *desc, struct hipExtent extent, unsigned int flags)
Allocate an array on the device.
hipError_t hipArrayCreate(hipArray_t *pHandle, const HIP_ARRAY_DESCRIPTOR *pAllocateArray)
Create an array memory pointer on the device.
hipError_t hipMemset3D(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent)
Fills synchronously the memory area pointed to by pitchedDevPtr with the constant value.
hipError_t hipModuleGetGlobal(hipDeviceptr_t *dptr, size_t *bytes, hipModule_t hmod, const char *name)
Returns a global pointer from a module. Returns in *dptr and *bytes the pointer and size of the globa...
hipError_t hipMemsetD16(hipDeviceptr_t dest, unsigned short value, size_t count)
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant short value v...
hipError_t hipMalloc(void **ptr, size_t size)
Allocate memory on the default accelerator.
hipError_t hipHostUnregister(void *hostPtr)
Un-register host pointer.
hipError_t hipHostGetFlags(unsigned int *flagsPtr, void *hostPtr)
Return flags associated with host pointer.
hipError_t hipMemcpyFromSymbolAsync(void *dst, const void *symbol, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream)
Copies data from the given symbol on the device asynchronously.
hipError_t hipMemsetD32(hipDeviceptr_t dest, int value, size_t count)
Fills the memory area pointed to by dest with the constant integer value for specified number of time...
hipError_t hipMemset3DAsync(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent, hipStream_t stream)
Fills asynchronously the memory area pointed to by pitchedDevPtr with the constant value.
hipError_t hipMemcpyFromSymbol(void *dst, const void *symbol, size_t sizeBytes, size_t offset, hipMemcpyKind kind)
Copies data from the given symbol on the device.
hipError_t hipDrvMemcpy3DAsync(const HIP_MEMCPY3D *pCopy, hipStream_t stream)
Copies data between host and device asynchronously.
hipError_t hipMallocHost(void **ptr, size_t size)
Allocate pinned host memory [Deprecated].
hipError_t hipArray3DGetDescriptor(HIP_ARRAY3D_DESCRIPTOR *pArrayDescriptor, hipArray_t array)
Gets a 3D array descriptor.
hipError_t hipMemcpy2DAsync(void *dst, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind, hipStream_t stream)
Copies data between host and device.
hipError_t hipArrayGetDescriptor(HIP_ARRAY_DESCRIPTOR *pArrayDescriptor, hipArray_t array)
Gets a 1D or 2D array descriptor.
hipError_t hipFree(void *ptr)
Free memory allocated by the hcc hip memory allocation API. This API performs an implicit hipDeviceSy...
hipError_t hipMemsetD16Async(hipDeviceptr_t dest, unsigned short value, size_t count, hipStream_t stream)
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant short value v...
hipError_t hipGetProcAddress(const char *symbol, void **pfn, int hipVersion, uint64_t flags, hipDriverProcAddressQueryResult *symbolStatus)
Gets the symbol's function address.
hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, const void *ptr)
Return attributes for the specified pointer.
hipError_t hipMallocPitch(void **ptr, size_t *pitch, size_t width, size_t height)
hipError_t hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes)
Copy data from Device to Device.
hipError_t hipMemcpyToArray(hipArray_t dst, size_t wOffset, size_t hOffset, const void *src, size_t count, hipMemcpyKind kind)
Copies data between host and device.
hipError_t hipMallocArray(hipArray_t *array, const hipChannelFormatDesc *desc, size_t width, size_t height, unsigned int flags)
Allocate an array on the device.
hipError_t hipMemcpy2D(void *dst, size_t dpitch, const void *src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind)
Copies data between host and device.
hipError_t hipMemcpyFromArray(void *dst, hipArray_const_t srcArray, size_t wOffset, size_t hOffset, size_t count, hipMemcpyKind kind)
Copies data between host and device.
hipError_t hipHostGetDevicePointer(void **devPtr, void *hstPtr, unsigned int flags)
Get Device pointer from Host Pointer allocated through hipHostMalloc.
hipError_t hipMemcpy2DFromArrayAsync(void *dst, size_t dpitch, hipArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, hipMemcpyKind kind, hipStream_t stream)
Copies data between host and device asynchronously.
hipError_t hipMemcpy2DFromArray(void *dst, size_t dpitch, hipArray_const_t src, size_t wOffset, size_t hOffset, size_t width, size_t height, hipMemcpyKind kind)
Copies data between host and device.
hipError_t hipMemcpy3DAsync(const struct hipMemcpy3DParms *p, hipStream_t stream)
Copies data between host and device asynchronously.
hipError_t hipArray3DCreate(hipArray_t *array, const HIP_ARRAY3D_DESCRIPTOR *pAllocateArray)
Create a 3D array memory pointer on the device.
hipError_t hipArrayGetInfo(hipChannelFormatDesc *desc, hipExtent *extent, unsigned int *flags, hipArray_t array)
Gets info about the specified array.
hipError_t hipDrvMemcpy3D(const HIP_MEMCPY3D *pCopy)
Copies data between host and device.
hipError_t hipMemcpyHtoD(hipDeviceptr_t dst, void *src, size_t sizeBytes)
Copy data from Host to Device.
hipError_t hipMemcpyParam2D(const hip_Memcpy2D *pCopy)
Copies memory for 2D arrays.
hipError_t hipMemcpyHtoA(hipArray_t dstArray, size_t dstOffset, const void *srcHost, size_t count)
Copies data between host and device.
hipError_t hipMemcpyToSymbolAsync(const void *symbol, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind, hipStream_t stream)
Copies data to the given symbol on the device asynchronously.
hipError_t hipHostMalloc(void **ptr, size_t size, unsigned int flags)
Allocates device accessible page locked (pinned) host memory.
hipError_t hipMemcpy2DToArrayAsync(hipArray_t dst, size_t wOffset, size_t hOffset, const void *src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind, hipStream_t stream)
Copies data between host and device.
hipError_t hipHostRegister(void *hostPtr, size_t sizeBytes, unsigned int flags)
Register host memory so it can be accessed from the current device.
hipError_t hipMemcpyAtoH(void *dst, hipArray_t srcArray, size_t srcOffset, size_t count)
Copies data between host and device.
hipError_t hipMemcpyToSymbol(const void *symbol, const void *src, size_t sizeBytes, size_t offset, hipMemcpyKind kind)
Copies data to the given symbol on the device. Symbol HIP APIs allow a kernel to define a device-side...
hipError_t hipMemcpy(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind)
Copy data from src to dst.
hipError_t hipMemset(void *dst, int value, size_t sizeBytes)
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value va...
hipError_t hipMemcpy2DToArray(hipArray_t dst, size_t wOffset, size_t hOffset, const void *src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind)
Copies data between host and device.
hipError_t hipMemcpyParam2DAsync(const hip_Memcpy2D *pCopy, hipStream_t stream)
Copies memory for 2D arrays.
hipError_t hipDrvPointerGetAttributes(unsigned int numAttributes, hipPointer_attribute *attributes, void **data, hipDeviceptr_t ptr)
Returns information about the specified pointer.[BETA].
hipError_t hipMalloc3D(hipPitchedPtr *pitchedDevPtr, hipExtent extent)
Create a 3D memory pointer on the device.
hipError_t hipPointerSetAttribute(const void *value, hipPointer_attribute attribute, hipDeviceptr_t ptr)
Sets information on the specified pointer.[BETA].
hipError_t hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
Copy data from Device to Device asynchronously.
hipError_t hipMemAllocPitch(hipDeviceptr_t *dptr, size_t *pitch, size_t widthInBytes, size_t height, unsigned int elementSizeBytes)
hipError_t hipMemsetD8(hipDeviceptr_t dest, unsigned char value, size_t count)
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value va...
hipError_t hipMemcpyAsync(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream)
Copy data from src to dst asynchronously.
hipError_t hipMemcpyDtoHAsync(void *dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
Copy data from Device to Host asynchronously.
hipError_t hipFreeArray(hipArray_t array)
Frees an array on the device.
hipError_t hipMemsetD32Async(hipDeviceptr_t dst, int value, size_t count, hipStream_t stream)
Fills the memory area pointed to by dev with the constant integer value for specified number of times...
hipError_t hipMemset2D(void *dst, size_t pitch, int value, size_t width, size_t height)
Fills the memory area pointed to by dst with the constant value.
hipError_t hipMemcpyHtoDAsync(hipDeviceptr_t dst, void *src, size_t sizeBytes, hipStream_t stream)
Copy data from Host to Device asynchronously.
hipError_t hipGetSymbolSize(size_t *size, const void *symbol)
Gets the size of the given symbol on the device.
hipError_t hipMemcpyDtoH(void *dst, hipDeviceptr_t src, size_t sizeBytes)
Copy data from Device to Host.
hipError_t hipMemsetAsync(void *dst, int value, size_t sizeBytes, hipStream_t stream)
Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant byte value val...
hipError_t hipMemcpyWithStream(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream)
Memory copy on the stream. It allows single or multiple devices to do memory copy on single or multip...
hipError_t hipGetSymbolAddress(void **devPtr, const void *symbol)
Gets device pointer associated with symbol on the device.
hipError_t hipMemAllocHost(void **ptr, size_t size)
Allocate pinned host memory [Deprecated].
hipError_t hipPointerGetAttribute(void *data, hipPointer_attribute attribute, hipDeviceptr_t ptr)
Returns information about the specified pointer.[BETA].
hipError_t hipMemPtrGetInfo(void *ptr, size_t *size)
Get allocated memory size via memory pointer.
hipError_t hipArrayDestroy(hipArray_t array)
Destroy an array memory pointer on the device.
hipError_t hipMemPrefetchAsync(const void *dev_ptr, size_t count, int device, hipStream_t stream)
Prefetches memory to the specified destination device using HIP.
hipError_t hipMemRangeGetAttributes(void **data, size_t *data_sizes, hipMemRangeAttribute *attributes, size_t num_attributes, const void *dev_ptr, size_t count)
Query attributes of a given memory range in HIP.
hipError_t hipMemAdvise(const void *dev_ptr, size_t count, hipMemoryAdvise advice, int device)
Advise about the usage of a given memory range to HIP.
hipError_t hipMemRangeGetAttribute(void *data, size_t data_size, hipMemRangeAttribute attribute, const void *dev_ptr, size_t count)
Query an attribute of a given memory range in HIP.
hipError_t hipMallocManaged(void **dev_ptr, size_t size, unsigned int flags)
Allocates memory that will be automatically managed by HIP.
hipError_t hipStreamAttachMemAsync(hipStream_t stream, void *dev_ptr, size_t length, unsigned int flags)
Attach memory to a stream asynchronously in HIP.
hipError_t hipModuleLaunchCooperativeKernelMultiDevice(hipFunctionLaunchParams *launchParamsList, unsigned int numDevices, unsigned int flags)
Launches kernels on multiple devices where thread blocks can cooperate and synchronize as they execut...
hipError_t hipFuncGetAttributes(struct hipFuncAttributes *attr, const void *func)
Find out attributes for a given function.
hipError_t hipModuleGetTexRef(textureReference **texRef, hipModule_t hmod, const char *name)
returns the handle of the texture reference with the name from the module.
hipError_t hipExtLaunchMultiKernelMultiDevice(hipLaunchParams *launchParamsList, int numDevices, unsigned int flags)
Launches kernels on multiple devices and guarantees all specified kernels are dispatched on respectiv...
hipError_t hipModuleLaunchKernel(hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, hipStream_t stream, void **kernelParams, void **extra)
launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelp...
hipError_t hipModuleLoad(hipModule_t *module, const char *fname)
Loads code object from file into a module the currrent context.
hipError_t hipModuleLoadDataEx(hipModule_t *module, const void *image, unsigned int numOptions, hipJitOption *options, void **optionValues)
builds module from code object which resides in host memory. Image is pointer to that location....
hipError_t hipFuncGetAttribute(int *value, hipFunction_attribute attrib, hipFunction_t hfunc)
Find out a specific attribute for a given function.
hipError_t hipLaunchCooperativeKernelMultiDevice(hipLaunchParams *launchParamsList, int numDevices, unsigned int flags)
Launches kernels on multiple devices where thread blocks can cooperate and synchronize as they execut...
hipError_t hipModuleLaunchCooperativeKernel(hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY, unsigned int gridDimZ, unsigned int blockDimX, unsigned int blockDimY, unsigned int blockDimZ, unsigned int sharedMemBytes, hipStream_t stream, void **kernelParams)
launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelP...
hipError_t hipModuleGetFunction(hipFunction_t *function, hipModule_t module, const char *kname)
Function with kname will be extracted if present in module.
hipError_t hipLaunchCooperativeKernel(const void *f, dim3 gridDim, dim3 blockDimX, void **kernelParams, unsigned int sharedMemBytes, hipStream_t stream)
launches kernel f with launch parameters and shared memory on stream with arguments passed to kernelp...
hipError_t hipModuleLoadData(hipModule_t *module, const void *image)
builds module from code object which resides in host memory. Image is pointer to that location.
hipError_t hipModuleUnload(hipModule_t module)
Frees the module.
hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int *numBlocks, const void *f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags)
Returns occupancy for a device function.
hipError_t hipModuleOccupancyMaxPotentialBlockSize(int *gridSize, int *blockSize, hipFunction_t f, size_t dynSharedMemPerBlk, int blockSizeLimit)
determine the grid and block sizes to achieves maximum occupancy for a kernel
hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessor(int *numBlocks, const void *f, int blockSize, size_t dynSharedMemPerBlk)
Returns occupancy for a device function.
hipError_t hipOccupancyMaxPotentialBlockSize(int *gridSize, int *blockSize, const void *f, size_t dynSharedMemPerBlk, int blockSizeLimit)
determine the grid and block sizes to achieves maximum occupancy for a kernel
hipError_t hipModuleOccupancyMaxActiveBlocksPerMultiprocessor(int *numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk)
Returns occupancy for a device function.
hipError_t hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int *numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags)
Returns occupancy for a device function.
hipError_t hipModuleOccupancyMaxPotentialBlockSizeWithFlags(int *gridSize, int *blockSize, hipFunction_t f, size_t dynSharedMemPerBlk, int blockSizeLimit, unsigned int flags)
determine the grid and block sizes to achieves maximum occupancy for a kernel
hipError_t hipDeviceCanAccessPeer(int *canAccessPeer, int deviceId, int peerDeviceId)
Determine if a device can access a peer's memory.
hipError_t hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags)
Enable direct access from current device's virtual address space to memory allocations physically loc...
hipError_t hipDeviceDisablePeerAccess(int peerDeviceId)
Disable direct access from current device's virtual address space to memory allocations physically lo...
hipError_t hipMemGetAddressRange(hipDeviceptr_t *pbase, size_t *psize, hipDeviceptr_t dptr)
Get information on memory allocations.
hipError_t hipProfilerStart()
Start recording of profiling information When using this API, start the profiler with profiling disab...
hipError_t hipProfilerStop()
Stop recording of profiling information. When using this API, start the profiler with profiling disab...
hipError_t hipDeviceGetStreamPriorityRange(int *leastPriority, int *greatestPriority)
Returns numerical values that correspond to the least and greatest stream priority.
hipError_t hipStreamDestroy(hipStream_t stream)
Destroys the specified stream.
hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int *flags)
Return flags associated with this stream.
hipError_t hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void *userData, unsigned int flags)
Adds a callback to be called on the host after all currently enqueued items in the stream have comple...
void(* hipStreamCallback_t)(hipStream_t stream, hipError_t status, void *userData)
Definition hip_runtime_api.h:2525
hipError_t hipStreamGetDevice(hipStream_t stream, hipDevice_t *device)
Get the device assocaited with the stream.
hipError_t hipStreamQuery(hipStream_t stream)
Return hipSuccess if all of the operations in the specified stream have completed,...
hipError_t hipStreamSynchronize(hipStream_t stream)
Wait for all commands in stream to complete.
hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags)
Make the specified compute stream wait for an event.
hipError_t hipStreamCreateWithPriority(hipStream_t *stream, unsigned int flags, int priority)
Create an asynchronous stream with the specified priority.
hipError_t hipExtStreamCreateWithCUMask(hipStream_t *stream, uint32_t cuMaskSize, const uint32_t *cuMask)
Create an asynchronous stream with the specified CU mask.
hipError_t hipStreamGetPriority(hipStream_t stream, int *priority)
Query the priority of a stream.
hipError_t hipExtStreamGetCUMask(hipStream_t stream, uint32_t cuMaskSize, uint32_t *cuMask)
Get CU mask associated with an asynchronous stream.
hipError_t hipStreamCreateWithFlags(hipStream_t *stream, unsigned int flags)
Create an asynchronous stream.
hipError_t hipStreamCreate(hipStream_t *stream)
Create an asynchronous stream.
hipError_t hipStreamWriteValue64(hipStream_t stream, void *ptr, uint64_t value, unsigned int flags)
Enqueues a write command to the stream.[BETA].
hipError_t hipStreamWriteValue32(hipStream_t stream, void *ptr, uint32_t value, unsigned int flags)
Enqueues a write command to the stream.[BETA].
hipError_t hipStreamWaitValue64(hipStream_t stream, void *ptr, uint64_t value, unsigned int flags, uint64_t mask)
Enqueues a wait command to the stream.[BETA].
hipError_t hipStreamWaitValue32(hipStream_t stream, void *ptr, uint32_t value, unsigned int flags, uint32_t mask)
Enqueues a wait command to the stream.[BETA].
hipError_t hipMemPoolImportPointer(void **dev_ptr, hipMemPool_t mem_pool, hipMemPoolPtrExportData *export_data)
Import a memory pool allocation from another process.
hipError_t hipMemPoolImportFromShareableHandle(hipMemPool_t *mem_pool, void *shared_handle, hipMemAllocationHandleType handle_type, unsigned int flags)
Imports a memory pool from a shared handle.
hipError_t hipMallocFromPoolAsync(void **dev_ptr, size_t size, hipMemPool_t mem_pool, hipStream_t stream)
Allocates memory from a specified pool with stream ordered semantics.
hipError_t hipFreeAsync(void *dev_ptr, hipStream_t stream)
Frees memory with stream ordered semantics.
hipError_t hipMemPoolTrimTo(hipMemPool_t mem_pool, size_t min_bytes_to_hold)
Releases freed memory back to the OS.
hipError_t hipMemPoolCreate(hipMemPool_t *mem_pool, const hipMemPoolProps *pool_props)
Creates a memory pool.
hipError_t hipMemPoolSetAccess(hipMemPool_t mem_pool, const hipMemAccessDesc *desc_list, size_t count)
Controls visibility of the specified pool between devices.
hipError_t hipMemPoolDestroy(hipMemPool_t mem_pool)
Destroys the specified memory pool.
hipError_t hipMemPoolSetAttribute(hipMemPool_t mem_pool, hipMemPoolAttr attr, void *value)
Sets attributes of a memory pool.
hipError_t hipMemPoolGetAttribute(hipMemPool_t mem_pool, hipMemPoolAttr attr, void *value)
Gets attributes of a memory pool.
hipError_t hipMemPoolExportToShareableHandle(void *shared_handle, hipMemPool_t mem_pool, hipMemAllocationHandleType handle_type, unsigned int flags)
Exports a memory pool to the requested handle type.
hipError_t hipMemPoolExportPointer(hipMemPoolPtrExportData *export_data, void *dev_ptr)
Export data to share a memory pool allocation between processes.
hipError_t hipMallocAsync(void **dev_ptr, size_t size, hipStream_t stream)
Allocates memory with stream ordered semantics.
hipError_t hipMemPoolGetAccess(hipMemAccessFlags *flags, hipMemPool_t mem_pool, hipMemLocation *location)
Returns the accessibility of a pool from a device.
hipError_t hipDestroySurfaceObject(hipSurfaceObject_t surfaceObject)
Destroy a surface object.
hipError_t hipCreateSurfaceObject(hipSurfaceObject_t *pSurfObject, const hipResourceDesc *pResDesc)
Create a surface object.
hipError_t hipTexRefGetFilterMode(enum hipTextureFilterMode *pfm, const textureReference *texRef)
Gets filter mode for a texture reference.
hipError_t hipBindTextureToMipmappedArray(const textureReference *tex, hipMipmappedArray_const_t mipmappedArray, const hipChannelFormatDesc *desc)
Binds a mipmapped array to a texture.
hipError_t hipTexRefGetMipmapLevelClamp(float *pminMipmapLevelClamp, float *pmaxMipmapLevelClamp, const textureReference *texRef)
Gets the minimum and maximum mipmap level clamps for a texture reference.
hipError_t hipTexRefGetAddressMode(enum hipTextureAddressMode *pam, const textureReference *texRef, int dim)
Gets the address mode for a texture reference.
hipError_t hipTexRefGetFlags(unsigned int *pFlags, const textureReference *texRef)
Gets flags for a texture reference.
hipError_t hipTexRefSetAddress(size_t *ByteOffset, textureReference *texRef, hipDeviceptr_t dptr, size_t bytes)
Sets an bound address for a texture reference.
hipError_t hipTexRefSetFilterMode(textureReference *texRef, enum hipTextureFilterMode fm)
Set filter mode for a texture reference.
hipError_t hipTexRefSetMipmappedArray(textureReference *texRef, struct hipMipmappedArray *mipmappedArray, unsigned int Flags)
Binds mipmapped array to a texture reference.
hipError_t hipTexRefGetMipmapFilterMode(enum hipTextureFilterMode *pfm, const textureReference *texRef)
Gets the mipmap filter mode for a texture reference.
hipError_t hipGetTextureAlignmentOffset(size_t *offset, const textureReference *texref)
Get the offset of the alignment in a texture.
hipError_t hipBindTexture2D(size_t *offset, const textureReference *tex, const void *devPtr, const hipChannelFormatDesc *desc, size_t width, size_t height, size_t pitch)
Binds a 2D memory area to a texture.
hipError_t hipTexRefGetMaxAnisotropy(int *pmaxAnsio, const textureReference *texRef)
Gets the maximum anisotropy for a texture reference.
hipError_t hipBindTexture(size_t *offset, const textureReference *tex, const void *devPtr, const hipChannelFormatDesc *desc, size_t size)
Binds a memory area to a texture.
hipError_t hipUnbindTexture(const textureReference *tex)
Unbinds a texture.
hipError_t hipTexRefSetFormat(textureReference *texRef, hipArray_Format fmt, int NumPackedComponents)
Set format for a texture reference.
hipError_t hipTexRefGetAddress(hipDeviceptr_t *dev_ptr, const textureReference *texRef)
Gets the the address for a texture reference.
hipError_t hipTexRefSetFlags(textureReference *texRef, unsigned int Flags)
Set flags for a texture reference.
hipError_t hipTexRefSetAddressMode(textureReference *texRef, int dim, enum hipTextureAddressMode am)
Sets address mode for a texture reference.
hipError_t hipTexRefGetMipMappedArray(hipMipmappedArray_t *pArray, const textureReference *texRef)
Gets the mipmapped array bound to a texture reference.
hipError_t hipTexRefSetMaxAnisotropy(textureReference *texRef, unsigned int maxAniso)
Sets the maximum anisotropy for a texture reference.
hipError_t hipTexRefSetMipmapLevelClamp(textureReference *texRef, float minMipMapLevelClamp, float maxMipMapLevelClamp)
Sets mipmap level clamp for a texture reference.
hipError_t hipTexRefSetBorderColor(textureReference *texRef, float *pBorderColor)
Sets border color for a texture reference.
hipError_t hipTexRefSetArray(textureReference *tex, hipArray_const_t array, unsigned int flags)
Binds an array as a texture reference.
hipError_t hipTexRefSetMipmapLevelBias(textureReference *texRef, float bias)
Sets mipmap level bias for a texture reference.
hipError_t hipTexRefGetMipmapLevelBias(float *pbias, const textureReference *texRef)
Gets the mipmap level bias for a texture reference.
hipError_t hipBindTextureToArray(const textureReference *tex, hipArray_const_t array, const hipChannelFormatDesc *desc)
Binds a memory area to a texture.
hipError_t hipGetTextureReference(const textureReference **texref, const void *symbol)
Gets the texture reference related with the symbol.
hipError_t hipTexRefSetAddress2D(textureReference *texRef, const HIP_ARRAY_DESCRIPTOR *desc, hipDeviceptr_t dptr, size_t Pitch)
Set a bind an address as a 2D texture reference.
hipError_t hipTexRefSetMipmapFilterMode(textureReference *texRef, enum hipTextureFilterMode fm)
Sets mipmap filter mode for a texture reference.
hipError_t hipTexRefGetFormat(hipArray_Format *pFormat, int *pNumChannels, const textureReference *texRef)
Gets texture format for a texture reference.
hipError_t hipFreeMipmappedArray(hipMipmappedArray_t mipmappedArray)
Frees a mipmapped array on the device.
hipError_t hipGetMipmappedArrayLevel(hipArray_t *levelArray, hipMipmappedArray_const_t mipmappedArray, unsigned int level)
Gets a mipmap level of a HIP mipmapped array.
hipError_t hipMipmappedArrayGetLevel(hipArray_t *pLevelArray, hipMipmappedArray_t hMipMappedArray, unsigned int level)
Get a mipmapped array on a mipmapped level.
hipError_t hipMipmappedArrayDestroy(hipMipmappedArray_t hMipmappedArray)
Destroy a mipmapped array.
hipError_t hipTexObjectCreate(hipTextureObject_t *pTexObject, const HIP_RESOURCE_DESC *pResDesc, const HIP_TEXTURE_DESC *pTexDesc, const HIP_RESOURCE_VIEW_DESC *pResViewDesc)
Creates a texture object.
hipError_t hipGetTextureObjectResourceDesc(hipResourceDesc *pResDesc, hipTextureObject_t textureObject)
Gets resource descriptor for the texture object.
hipError_t hipGetTextureObjectResourceViewDesc(struct hipResourceViewDesc *pResViewDesc, hipTextureObject_t textureObject)
Gets resource view descriptor for the texture object.
hipError_t hipTexObjectGetTextureDesc(HIP_TEXTURE_DESC *pTexDesc, hipTextureObject_t texObject)
Gets texture descriptor of a texture object.
hipError_t hipCreateTextureObject(hipTextureObject_t *pTexObject, const hipResourceDesc *pResDesc, const hipTextureDesc *pTexDesc, const struct hipResourceViewDesc *pResViewDesc)
Creates a texture object.
hipError_t hipTexObjectDestroy(hipTextureObject_t texObject)
Destroys a texture object.
hipError_t hipMipmappedArrayCreate(hipMipmappedArray_t *pHandle, HIP_ARRAY3D_DESCRIPTOR *pMipmappedArrayDesc, unsigned int numMipmapLevels)
Create a mipmapped array.
hipError_t hipGetChannelDesc(hipChannelFormatDesc *desc, hipArray_const_t array)
Gets the channel descriptor in an array.
hipError_t hipTexObjectGetResourceDesc(HIP_RESOURCE_DESC *pResDesc, hipTextureObject_t texObject)
Gets resource descriptor of a texture object.
hipError_t hipTexObjectGetResourceViewDesc(HIP_RESOURCE_VIEW_DESC *pResViewDesc, hipTextureObject_t texObject)
Gets resource view descriptor of a texture object.
hipError_t hipMallocMipmappedArray(hipMipmappedArray_t *mipmappedArray, const struct hipChannelFormatDesc *desc, struct hipExtent extent, unsigned int numLevels, unsigned int flags)
Allocate a mipmapped array on the device.
hipError_t hipDestroyTextureObject(hipTextureObject_t textureObject)
Destroys a texture object.
hipError_t hipGetTextureObjectTextureDesc(hipTextureDesc *pTexDesc, hipTextureObject_t textureObject)
Gets texture descriptor for the texture object.
hipError_t hipMemAddressFree(void *devPtr, size_t size)
Frees an address range reservation made via hipMemAddressReserve.
hipError_t hipMemExportToShareableHandle(void *shareableHandle, hipMemGenericAllocationHandle_t handle, hipMemAllocationHandleType handleType, unsigned long long flags)
Exports an allocation to a requested shareable handle type.
hipError_t hipMemGetAccess(unsigned long long *flags, const hipMemLocation *location, void *ptr)
Get the access flags set for the given location and ptr.
hipError_t hipMemSetAccess(void *ptr, size_t size, const hipMemAccessDesc *desc, size_t count)
Set the access flags for each location specified in desc for the given virtual address range.
hipError_t hipMemRelease(hipMemGenericAllocationHandle_t handle)
Release a memory handle representing a memory allocation which was previously allocated through hipMe...
hipError_t hipMemUnmap(void *ptr, size_t size)
Unmap memory allocation of a given address range.
hipError_t hipMemGetAllocationGranularity(size_t *granularity, const hipMemAllocationProp *prop, hipMemAllocationGranularity_flags option)
Calculates either the minimal or recommended granularity.
hipError_t hipMemRetainAllocationHandle(hipMemGenericAllocationHandle_t *handle, void *addr)
Returns the allocation handle of the backing memory allocation given the address.
hipError_t hipMemCreate(hipMemGenericAllocationHandle_t *handle, size_t size, const hipMemAllocationProp *prop, unsigned long long flags)
Creates a memory allocation described by the properties and size.
hipError_t hipMemMap(void *ptr, size_t size, size_t offset, hipMemGenericAllocationHandle_t handle, unsigned long long flags)
Maps an allocation handle to a reserved virtual address range.
hipError_t hipMemAddressReserve(void **ptr, size_t size, size_t alignment, void *addr, unsigned long long flags)
Reserves an address range.
hipError_t hipMemGetAllocationPropertiesFromHandle(hipMemAllocationProp *prop, hipMemGenericAllocationHandle_t handle)
Retrieve the property structure of the given handle.
hipError_t hipMemMapArrayAsync(hipArrayMapInfo *mapInfoList, unsigned int count, hipStream_t stream)
Maps or unmaps subregions of sparse HIP arrays and sparse HIP mipmapped arrays.
hipError_t hipMemImportFromShareableHandle(hipMemGenericAllocationHandle_t *handle, void *osHandle, hipMemAllocationHandleType shHandleType)
Imports an allocation from a requested shareable handle type.
hipErrorIllegalAddress
Definition hip_runtime_api.h:346
hipErrorMemoryAllocation
Memory allocation error.
Definition hip_runtime_api.h:292
hipErrorNotFound
Not found.
Definition hip_runtime_api.h:341
hipErrorProfilerDisabled
Definition hip_runtime_api.h:297
hipErrorInvalidDevicePointer
Invalid Device Pointer.
Definition hip_runtime_api.h:304
hipErrorRuntimeMemory
Definition hip_runtime_api.h:395
hipErrorInvalidImage
Invalid image.
Definition hip_runtime_api.h:312
hipErrorPeerAccessUnsupported
Definition hip_runtime_api.h:329
hipErrorArrayIsMapped
Definition hip_runtime_api.h:319
hipErrorStreamCaptureIsolation
Definition hip_runtime_api.h:376
hipErrorInvalidKernelFile
In CUDA DRV, it is CUDA_ERROR_INVALID_PTX.
Definition hip_runtime_api.h:330
hipErrorNotMapped
Definition hip_runtime_api.h:323
hipErrorGraphExecUpdateFailure
Definition hip_runtime_api.h:389
hipErrorNotInitialized
Invalid not initialized.
Definition hip_runtime_api.h:293
hipErrorInvalidResourceHandle
Resource handle (hipEvent_t or hipStream_t) invalid.
Definition hip_runtime_api.h:339
hipErrorSharedObjectInitFailed
Failed to initialize shared object.
Definition hip_runtime_api.h:335
hipErrorInvalidPitchValue
Invalid pitch value.
Definition hip_runtime_api.h:302
hipErrorNoBinaryForGpu
Definition hip_runtime_api.h:321
hipErrorInvalidContext
Produced when input context is invalid.
Definition hip_runtime_api.h:313
hipErrorStreamCaptureUnsupported
Definition hip_runtime_api.h:367
hipErrorPeerAccessNotEnabled
Peer access was never enabled from the current device.
Definition hip_runtime_api.h:351
hipErrorOperatingSystem
Not the correct operating system.
Definition hip_runtime_api.h:336
hipErrorStreamCaptureUnjoined
Definition hip_runtime_api.h:374
hipErrorInitializationError
Definition hip_runtime_api.h:295
hipErrorNotMappedAsPointer
Definition hip_runtime_api.h:325
hipErrorPriorLaunchFailure
Definition hip_runtime_api.h:308
hipErrorContextIsDestroyed
The context is already destroyed.
Definition hip_runtime_api.h:354
hipErrorInvalidValue
Definition hip_runtime_api.h:288
hipErrorLaunchTimeOut
Timeout for the launch.
Definition hip_runtime_api.h:348
hipErrorUnmapFailed
Definition hip_runtime_api.h:318
hipErrorSetOnActiveProcess
The process is active.
Definition hip_runtime_api.h:353
hipErrorFileNotFound
the file is not found.
Definition hip_runtime_api.h:333
hipErrorLaunchFailure
An exception occurred on the device while executing a kernel.
Definition hip_runtime_api.h:360
hipErrorInvalidDevice
DeviceID must be in range from 0 to compute-devices.
Definition hip_runtime_api.h:311
hipErrorUnsupportedLimit
Unsupported limit.
Definition hip_runtime_api.h:327
hipErrorMapBufferObjectFailed
Produced when the IPC memory attach failed from ROCr.
Definition hip_runtime_api.h:317
hipErrorHostMemoryAlreadyRegistered
Produced when trying to lock a page-locked memory.
Definition hip_runtime_api.h:356
hipErrorMissingConfiguration
Definition hip_runtime_api.h:307
hipErrorSharedObjectSymbolNotFound
Definition hip_runtime_api.h:334
hipErrorECCNotCorrectable
Definition hip_runtime_api.h:326
hipErrorStreamCaptureWrongThread
Definition hip_runtime_api.h:385
hipErrorAssert
Produced when the kernel calls assert.
Definition hip_runtime_api.h:355
hipErrorContextAlreadyInUse
The context is already in use.
Definition hip_runtime_api.h:328
hipErrorNotReady
Definition hip_runtime_api.h:342
hipErrorInvalidSource
Invalid source.
Definition hip_runtime_api.h:332
hipErrorLaunchOutOfResources
Out of resources error.
Definition hip_runtime_api.h:347
hipErrorInvalidDeviceFunction
Invalid device function.
Definition hip_runtime_api.h:309
hipErrorCooperativeLaunchTooLarge
Definition hip_runtime_api.h:362
hipErrorAlreadyMapped
Definition hip_runtime_api.h:320
hipErrorProfilerNotInitialized
Definition hip_runtime_api.h:298
hipErrorProfilerAlreadyStarted
Definition hip_runtime_api.h:299
hipErrorNoDevice
Call to hipGetDeviceCount returned 0 devices.
Definition hip_runtime_api.h:310
@ HIP_ERROR_LAUNCH_OUT_OF_RESOURCES
Definition hip_runtime_api.h:41
@ HIP_ERROR_INVALID_VALUE
Definition hip_runtime_api.h:39
@ HIP_SUCCESS
Definition hip_runtime_api.h:38
@ HIP_ERROR_NOT_INITIALIZED
Definition hip_runtime_api.h:40
hipErrorMapFailed
Definition hip_runtime_api.h:315
hipErrorStreamCaptureInvalidated
Definition hip_runtime_api.h:369
hipErrorProfilerAlreadyStopped
Definition hip_runtime_api.h:300
hipErrorDeinitialized
Deinitialized.
Definition hip_runtime_api.h:296
hipErrorPeerAccessAlreadyEnabled
Peer access was already enabled from the current device.
Definition hip_runtime_api.h:349
hipErrorNotMappedAsArray
Definition hip_runtime_api.h:324
hipErrorNotSupported
Produced when the hip API is not supported/implemented.
Definition hip_runtime_api.h:366
hipErrorInvalidConfiguration
Invalide configuration.
Definition hip_runtime_api.h:301
hipErrorStreamCaptureImplicit
Definition hip_runtime_api.h:380
hipErrorStreamCaptureMerge
Definition hip_runtime_api.h:371
hipErrorInvalidGraphicsContext
Definition hip_runtime_api.h:331
hipErrorIllegalState
Resource required is not in a valid state to perform operation.
Definition hip_runtime_api.h:340
hipErrorOutOfMemory
out of memory range.
Definition hip_runtime_api.h:290
hipErrorInvalidSymbol
Invalid symbol.
Definition hip_runtime_api.h:303
hipSuccess
Successful completion.
Definition hip_runtime_api.h:287
hipErrorUnknown
Unknown error.
Definition hip_runtime_api.h:393
hipErrorInvalidHandle
Invalide handle.
Definition hip_runtime_api.h:337
hipErrorStreamCaptureUnmatched
The capture was not initiated in this stream.
Definition hip_runtime_api.h:373
hipErrorCapturedEvent
Definition hip_runtime_api.h:383
hipErrorAlreadyAcquired
Definition hip_runtime_api.h:322
hipErrorInsufficientDriver
Definition hip_runtime_api.h:306
hipErrorHostMemoryNotRegistered
Produced when trying to unlock a non-page-locked memory.
Definition hip_runtime_api.h:358
hipErrorRuntimeOther
Definition hip_runtime_api.h:397
hipErrorContextAlreadyCurrent
Definition hip_runtime_api.h:314
hipErrorInvalidMemcpyDirection
Invalid memory copy direction.
Definition hip_runtime_api.h:305
Definition driver_types.h:76
Definition driver_types.h:70
Definition driver_types.h:369
Definition hip_runtime_api.h:1309
size_t height
Number of rows.
Definition hip_runtime_api.h:1315
size_t pitch
Destination device pointer pitch. Unused if height equals 1.
Definition hip_runtime_api.h:1311
hipDeviceptr_t dst
Destination pointer on device.
Definition hip_runtime_api.h:1310
unsigned int value
Value of memset to be set.
Definition hip_runtime_api.h:1312
unsigned int elementSize
Element in bytes. Must be 1, 2, or 4.
Definition hip_runtime_api.h:1313
size_t width
Width of a row.
Definition hip_runtime_api.h:1314
Definition driver_types.h:271
Definition driver_types.h:317
Definition driver_types.h:154
Definition hip_runtime_api.h:1046
uint32_t y
y
Definition hip_runtime_api.h:1048
uint32_t z
z
Definition hip_runtime_api.h:1049
uint32_t x
x
Definition hip_runtime_api.h:1047
Definition driver_types.h:85
Definition hip_runtime_api.h:1293
hipAccessProperty hitProp
Definition hip_runtime_api.h:1295
hipAccessProperty missProp
Definition hip_runtime_api.h:1297
float hitRatio
Definition hip_runtime_api.h:1296
void * base_ptr
Definition hip_runtime_api.h:1294
size_t num_bytes
Definition hip_runtime_api.h:1298
Definition hip_runtime_api.h:1502
unsigned int level
For mipmapped arrays must be a valid mipmap level. For arrays must be zero.
Definition hip_runtime_api.h:1511
struct hipArrayMapInfo::@26::@28 sparseLevel
unsigned int flags
flags for future use, must be zero now.
Definition hip_runtime_api.h:1533
union hipArrayMapInfo::@25 resource
hipArraySparseSubresourceType subresourceType
Sparse subresource type.
Definition hip_runtime_api.h:1508
unsigned int extentDepth
Depth in elements.
Definition hip_runtime_api.h:1518
unsigned int offsetX
X offset in elements.
Definition hip_runtime_api.h:1513
hipArray_t array
Definition hip_runtime_api.h:1506
hipResourceType resourceType
Resource type.
Definition hip_runtime_api.h:1503
hipMemOperationType memOperationType
Memory operation type.
Definition hip_runtime_api.h:1526
unsigned int reserved[2]
Reserved for future use, must be zero now.
Definition hip_runtime_api.h:1534
unsigned int extentWidth
Width in elements.
Definition hip_runtime_api.h:1516
union hipArrayMapInfo::@26 subresource
unsigned int extentHeight
Height in elements.
Definition hip_runtime_api.h:1517
unsigned int offsetY
Y offset in elements.
Definition hip_runtime_api.h:1514
hipMemHandleType memHandleType
Memory handle type.
Definition hip_runtime_api.h:1527
struct hipArrayMapInfo::@26::@29 miptail
hipMemGenericAllocationHandle_t memHandle
Definition hip_runtime_api.h:1529
hipMipmappedArray mipmap
Definition hip_runtime_api.h:1505
unsigned int layer
For layered arrays must be a valid layer index. Otherwise, must be zero.
Definition hip_runtime_api.h:1512
unsigned int deviceBitMask
Device ordinal bit mask.
Definition hip_runtime_api.h:1532
unsigned long long size
Extent in bytes.
Definition hip_runtime_api.h:1523
unsigned long long offset
Offset within mip tail.
Definition hip_runtime_api.h:1522
unsigned int offsetZ
Z offset in elements.
Definition hip_runtime_api.h:1515
Definition driver_types.h:46
Definition hip_runtime_api.h:1549
hipGraph_t graph
Definition hip_runtime_api.h:1550
Definition hip_runtime_api.h:53
unsigned hasSharedInt64Atomics
64-bit integer atomics for shared memory.
Definition hip_runtime_api.h:63
unsigned hasSharedInt32Atomics
32-bit integer atomics for shared memory.
Definition hip_runtime_api.h:57
unsigned hasFloatAtomicAdd
32-bit float atomic add in global and shared memory.
Definition hip_runtime_api.h:59
unsigned hasDoubles
Double-precision floating point.
Definition hip_runtime_api.h:66
unsigned hasWarpVote
Warp vote instructions (__any, __all).
Definition hip_runtime_api.h:69
unsigned hasWarpShuffle
Warp shuffle operations. (__shfl_*).
Definition hip_runtime_api.h:71
unsigned hasGlobalInt32Atomics
32-bit integer atomics for global memory.
Definition hip_runtime_api.h:55
unsigned hasGlobalFloatAtomicExch
32-bit float atomic exch for global memory.
Definition hip_runtime_api.h:56
unsigned hasDynamicParallelism
Dynamic parallelism.
Definition hip_runtime_api.h:81
unsigned hasSurfaceFuncs
Surface functions.
Definition hip_runtime_api.h:79
unsigned has3dGrid
Grid and group dims are 3D (rather than 2D).
Definition hip_runtime_api.h:80
unsigned hasFunnelShift
Funnel two words into one with shift&mask caps.
Definition hip_runtime_api.h:72
unsigned hasThreadFenceSystem
__threadfence_system.
Definition hip_runtime_api.h:75
unsigned hasGlobalInt64Atomics
64-bit integer atomics for global memory.
Definition hip_runtime_api.h:62
unsigned hasSyncThreadsExt
__syncthreads_count, syncthreads_and, syncthreads_or.
Definition hip_runtime_api.h:76
unsigned hasWarpBallot
Warp ballot instructions (__ballot).
Definition hip_runtime_api.h:70
unsigned hasSharedFloatAtomicExch
32-bit float atomic exch for shared memory.
Definition hip_runtime_api.h:58
Definition hip_runtime_api.h:99
int ECCEnabled
Device has ECC support enabled.
Definition hip_runtime_api.h:152
int ipcEventSupported
Device supports IPC events.
Definition hip_runtime_api.h:207
int computePreemptionSupported
Is compute preemption supported on the device.
Definition hip_runtime_api.h:178
int maxTexture1DLinear
Maximum size for 1D textures bound to linear memory.
Definition hip_runtime_api.h:131
int timelineSemaphoreInteropSupported
Indicates external timeline semaphore support.
Definition hip_runtime_api.h:197
int pciBusID
PCI Bus ID.
Definition hip_runtime_api.h:153
int maxTexture1D
Maximum number of elements in 1D images.
Definition hip_runtime_api.h:129
int memoryBusWidth
Global memory bus width in bits.
Definition hip_runtime_api.h:160
int maxTexture2DMipmap[2]
Maximum number of elements in 2D array mipmap of images.
Definition hip_runtime_api.h:133
int clockRate
Max clock frequency of the multiProcessors in khz.
Definition hip_runtime_api.h:113
int maxThreadsPerMultiProcessor
Maximum resident threads per multi-processor.
Definition hip_runtime_api.h:163
int l2CacheSize
L2 cache size.
Definition hip_runtime_api.h:161
int deferredMappingHipArraySupported
Definition hip_runtime_api.h:205
int asyncEngineCount
Number of async engines.
Definition hip_runtime_api.h:157
int accessPolicyMaxWindowSize
Max value of access policy window.
Definition hip_runtime_api.h:191
size_t totalConstMem
Size of shared memory region (in bytes).
Definition hip_runtime_api.h:114
int memoryPoolsSupported
Indicates if device supports hipMallocAsync and hipMemPool APIs.
Definition hip_runtime_api.h:198
int unifiedFunctionPointers
Indicates device supports unified function pointers.
Definition hip_runtime_api.h:209
int maxTexture2DGather[2]
Maximum 2D tex dimensions if gather has to be performed.
Definition hip_runtime_api.h:135
size_t memPitch
Definition hip_runtime_api.h:108
int gpuDirectRDMAWritesOrdering
value of hipGPUDirectRDMAWritesOrdering
Definition hip_runtime_api.h:202
hipUUID uuid
UUID of a device.
Definition hip_runtime_api.h:101
size_t sharedMemPerBlock
Size of shared memory region (in bytes).
Definition hip_runtime_api.h:105
unsigned int gpuDirectRDMAFlushWritesOptions
Definition hip_runtime_api.h:200
size_t surfaceAlignment
Alignment requirement for surface.
Definition hip_runtime_api.h:150
int reserved[63]
CUDA Reserved.
Definition hip_runtime_api.h:210
int maxTexture2DLayered[3]
Maximum number of elements in 2D array images.
Definition hip_runtime_api.h:141
int streamPrioritiesSupported
Device supports stream priority.
Definition hip_runtime_api.h:164
int cooperativeMultiDeviceLaunch
Definition hip_runtime_api.h:182
int hostRegisterSupported
Device supports hipHostRegister.
Definition hip_runtime_api.h:193
int pageableMemoryAccess
Definition hip_runtime_api.h:174
char name[256]
Device name.
Definition hip_runtime_api.h:100
size_t textureAlignment
Alignment requirement for textures.
Definition hip_runtime_api.h:121
int globalL1CacheSupported
Indicates globals are cached in L1.
Definition hip_runtime_api.h:165
int hostNativeAtomicSupported
Link between host and device supports native atomics.
Definition hip_runtime_api.h:172
int maxSurfaceCubemapLayered[2]
Maximum cubemap layered surface size.
Definition hip_runtime_api.h:149
int maxTextureCubemapLayered[2]
Maximum cubemaps layered texture dims.
Definition hip_runtime_api.h:142
size_t sharedMemPerBlockOptin
Per device m ax shared mem per block usable by special opt in.
Definition hip_runtime_api.h:185
size_t sharedMemPerMultiprocessor
Amount of shared memory available per multiprocessor.
Definition hip_runtime_api.h:167
int singleToDoublePrecisionPerfRatio
Deprecated. CUDA only.
Definition hip_runtime_api.h:173
int maxSurface2D[2]
Maximum 2D surface size.
Definition hip_runtime_api.h:144
int memoryClockRate
Max global memory clock frequency in khz.
Definition hip_runtime_api.h:159
int maxTexture2DLinear[3]
Maximum 2D tex dimensions if tex are bound to pitched memory.
Definition hip_runtime_api.h:134
int sparseHipArraySupported
Indicates if device supports sparse hip arrays.
Definition hip_runtime_api.h:194
int clockInstructionRate
Definition hip_runtime_api.h:217
int localL1CacheSupported
Locals are cahced in L1.
Definition hip_runtime_api.h:166
int regsPerMultiprocessor
registers available per multiprocessor
Definition hip_runtime_api.h:168
int regsPerBlock
Registers per block.
Definition hip_runtime_api.h:106
int maxTexture2D[2]
Maximum dimensions (width, height) of 2D images, in image elements.
Definition hip_runtime_api.h:132
int cooperativeLaunch
HIP device supports cooperative launch.
Definition hip_runtime_api.h:181
int maxTexture3D[3]
elements
Definition hip_runtime_api.h:136
int directManagedMemAccessFromHost
Definition hip_runtime_api.h:188
int cooperativeMultiDeviceUnmatchedFunc
Definition hip_runtime_api.h:222
int deviceOverlap
Deprecated. Use asyncEngineCount instead.
Definition hip_runtime_api.h:123
int pageableMemoryAccessUsesHostPageTables
Definition hip_runtime_api.h:186
unsigned int * hdpRegFlushCntl
Addres of HDP_REG_COHERENCY_FLUSH_CNTL register.
Definition hip_runtime_api.h:221
int maxThreadsDim[3]
Max number of threads in each dimension (XYZ) of a block.
Definition hip_runtime_api.h:111
int unifiedAddressing
Does device and host share unified address space.
Definition hip_runtime_api.h:158
int multiGpuBoardGroupID
Unique identifier for a group of devices on same multiboard GPU.
Definition hip_runtime_api.h:171
int isMultiGpuBoard
1 if device is on a multi-GPU board, 0 if not.
Definition hip_runtime_api.h:170
int canUseHostPointerForRegisteredMem
Definition hip_runtime_api.h:179
int maxTexture1DLayered[2]
Maximum number of elements in 1D array images.
Definition hip_runtime_api.h:140
int pciDomainID
PCI Domain ID.
Definition hip_runtime_api.h:155
size_t maxSharedMemoryPerMultiProcessor
Maximum Shared Memory Per CU. HIP Only.
Definition hip_runtime_api.h:216
int maxTextureCubemap
Maximum cubemap texture dims.
Definition hip_runtime_api.h:139
int hipReserved[32]
Reserved for adding new entries for HIP/CUDA.
Definition hip_runtime_api.h:212
int cooperativeMultiDeviceUnmatchedGridDim
Definition hip_runtime_api.h:225
int gpuDirectRDMASupported
Indicates device support of RDMA APIs.
Definition hip_runtime_api.h:199
int minor
Definition hip_runtime_api.h:118
char gcnArchName[256]
AMD GCN Arch Name. HIP Only.
Definition hip_runtime_api.h:215
char luid[8]
8-byte unique identifier. Only valid on windows
Definition hip_runtime_api.h:102
int kernelExecTimeoutEnabled
Run time limit for kernels executed on the device.
Definition hip_runtime_api.h:125
unsigned int memoryPoolSupportedHandleTypes
Bitmask of handle types support with mempool based IPC.
Definition hip_runtime_api.h:204
unsigned int * hdpMemFlushCntl
Addres of HDP_MEM_COHERENCY_FLUSH_CNTL register.
Definition hip_runtime_api.h:220
int concurrentManagedAccess
Definition hip_runtime_api.h:176
int integrated
APU vs dGPU.
Definition hip_runtime_api.h:126
int canMapHostMemory
Check whether HIP can map host memory.
Definition hip_runtime_api.h:127
size_t reservedSharedMemPerBlock
Shared memory reserved by driver per block.
Definition hip_runtime_api.h:192
int maxSurfaceCubemap
Maximum cubemap surface size.
Definition hip_runtime_api.h:148
int maxSurface3D[3]
Maximum 3D surface size.
Definition hip_runtime_api.h:145
int asicRevision
Revision of the GPU in this device.
Definition hip_runtime_api.h:235
size_t totalGlobalMem
Size of global memory region (in bytes).
Definition hip_runtime_api.h:104
int cooperativeMultiDeviceUnmatchedBlockDim
Definition hip_runtime_api.h:228
int maxSurface1DLayered[2]
Maximum 1D layered surface size.
Definition hip_runtime_api.h:146
int persistingL2CacheMaxSize
Device's max L2 persisting lines in bytes.
Definition hip_runtime_api.h:162
int maxSurface1D
Maximum 1D surface size.
Definition hip_runtime_api.h:143
int concurrentKernels
Device can possibly execute multiple kernels concurrently.
Definition hip_runtime_api.h:151
int isLargeBar
1: if it is a large PCI bar device, else 0
Definition hip_runtime_api.h:234
int clusterLaunch
Device supports cluster launch.
Definition hip_runtime_api.h:208
int maxTexture1DMipmap
Maximum 1D mipmap texture size.
Definition hip_runtime_api.h:130
int multiProcessorCount
Number of multi-processors (compute units).
Definition hip_runtime_api.h:124
int maxTexture3DAlt[3]
Maximum alternate 3D texture dims.
Definition hip_runtime_api.h:138
int maxGridSize[3]
Max grid dimensions (XYZ).
Definition hip_runtime_api.h:112
int pciDeviceID
PCI Device ID.
Definition hip_runtime_api.h:154
int maxBlocksPerMultiProcessor
Max number of blocks on CU.
Definition hip_runtime_api.h:190
int computeMode
Compute mode.
Definition hip_runtime_api.h:128
int maxSurface2DLayered[3]
Maximum 2D layared surface size.
Definition hip_runtime_api.h:147
int major
Definition hip_runtime_api.h:115
int warpSize
Warp size.
Definition hip_runtime_api.h:107
int tccDriver
1:If device is Tesla device using TCC driver, else 0
Definition hip_runtime_api.h:156
unsigned int luidDeviceNodeMask
LUID node mask.
Definition hip_runtime_api.h:103
int hostRegisterReadOnlySupported
Definition hip_runtime_api.h:195
int cooperativeMultiDeviceUnmatchedSharedMem
Definition hip_runtime_api.h:231
int maxThreadsPerBlock
Max work items per work group or workgroup max size.
Definition hip_runtime_api.h:110
hipDeviceArch_t arch
Architectural feature flags. New for HIP.
Definition hip_runtime_api.h:219
int managedMemory
Device supports allocating managed memory on this system.
Definition hip_runtime_api.h:169
size_t texturePitchAlignment
Pitch alignment requirement for texture references bound to.
Definition hip_runtime_api.h:122
Definition hip_runtime_api.h:1564
hipEvent_t event
The event to be recorded when node executes.
Definition hip_runtime_api.h:1565
Definition hip_runtime_api.h:1557
hipEvent_t event
Event to wait on.
Definition hip_runtime_api.h:1558
Definition driver_types.h:348
Definition hip_runtime_api.h:1104
unsigned int flags
Definition hip_runtime_api.h:1107
unsigned long long offset
Definition hip_runtime_api.h:1105
unsigned long long size
Definition hip_runtime_api.h:1106
Definition hip_runtime_api.h:1090
unsigned int flags
Definition hip_runtime_api.h:1101
const void * name
Definition hip_runtime_api.h:1096
int fd
Definition hip_runtime_api.h:1093
unsigned long long size
Definition hip_runtime_api.h:1100
hipExternalMemoryHandleType type
Definition hip_runtime_api.h:1091
const void * nvSciBufObject
Definition hip_runtime_api.h:1098
void * handle
Definition hip_runtime_api.h:1095
Definition hip_runtime_api.h:1110
hipExtent extent
Definition hip_runtime_api.h:1113
unsigned int numLevels
Definition hip_runtime_api.h:1115
unsigned int flags
Definition hip_runtime_api.h:1114
unsigned long long offset
Definition hip_runtime_api.h:1111
hipChannelFormatDesc formatDesc
Definition hip_runtime_api.h:1112
Definition hip_runtime_api.h:1130
unsigned int flags
Definition hip_runtime_api.h:1140
const void * name
Definition hip_runtime_api.h:1136
const void * NvSciSyncObj
Definition hip_runtime_api.h:1138
hipExternalSemaphoreHandleType type
Definition hip_runtime_api.h:1131
void * handle
Definition hip_runtime_api.h:1135
int fd
Definition hip_runtime_api.h:1133
Definition hip_runtime_api.h:1442
const hipExternalSemaphoreSignalParams * paramsArray
Total number of handles and parameters contained in extSemArray and paramsArray.
Definition hip_runtime_api.h:1446
hipExternalSemaphore_t * extSemArray
< Array containing external semaphore handles.
Definition hip_runtime_api.h:1444
unsigned int numExtSems
Definition hip_runtime_api.h:1448
Definition hip_runtime_api.h:1144
unsigned long long reserved
Definition hip_runtime_api.h:1151
unsigned long long value
Definition hip_runtime_api.h:1147
void * fence
Definition hip_runtime_api.h:1150
unsigned int flags
Definition hip_runtime_api.h:1158
unsigned long long key
Definition hip_runtime_api.h:1154
Definition hip_runtime_api.h:1454
unsigned int numExtSems
Definition hip_runtime_api.h:1460
const hipExternalSemaphoreWaitParams * paramsArray
Total number of handles and parameters contained in extSemArray and paramsArray.
Definition hip_runtime_api.h:1458
hipExternalSemaphore_t * extSemArray
< Array containing external semaphore handles.
Definition hip_runtime_api.h:1456
Definition hip_runtime_api.h:1164
unsigned long long value
Definition hip_runtime_api.h:1167
void * fence
Definition hip_runtime_api.h:1170
unsigned int timeoutMs
Definition hip_runtime_api.h:1175
unsigned long long key
Definition hip_runtime_api.h:1174
unsigned int flags
Definition hip_runtime_api.h:1179
unsigned long long reserved
Definition hip_runtime_api.h:1171
Definition hip_runtime_api.h:632
int cacheModeCA
Definition hip_runtime_api.h:634
int binaryVersion
Definition hip_runtime_api.h:633
size_t constSizeBytes
Definition hip_runtime_api.h:635
int preferredShmemCarveout
Definition hip_runtime_api.h:640
size_t sharedSizeBytes
Definition hip_runtime_api.h:642
int maxDynamicSharedSizeBytes
Definition hip_runtime_api.h:637
int ptxVersion
Definition hip_runtime_api.h:641
int numRegs
Definition hip_runtime_api.h:639
size_t localSizeBytes
Definition hip_runtime_api.h:636
int maxThreadsPerBlock
Definition hip_runtime_api.h:638
Definition hip_runtime_api.h:1068
unsigned int gridDimX
Width(X) of grid in blocks.
Definition hip_runtime_api.h:1070
unsigned int blockDimX
X dimension of each thread block.
Definition hip_runtime_api.h:1073
hipFunction_t function
Kernel to launch.
Definition hip_runtime_api.h:1069
hipStream_t hStream
Stream identifier.
Definition hip_runtime_api.h:1077
unsigned int blockDimY
Y dimension of each thread block.
Definition hip_runtime_api.h:1074
unsigned int gridDimY
Height(Y) of grid in blocks.
Definition hip_runtime_api.h:1071
unsigned int gridDimZ
Depth(Z) of grid in blocks.
Definition hip_runtime_api.h:1072
unsigned int sharedMemBytes
Shared memory.
Definition hip_runtime_api.h:1076
unsigned int blockDimZ
Z dimension of each thread block.
Definition hip_runtime_api.h:1075
void ** kernelParams
Kernel parameters.
Definition hip_runtime_api.h:1078
Definition hip_runtime_api.h:1415
hipGraphInstantiateResult result_out
Definition hip_runtime_api.h:1418
hipStream_t uploadStream
Definition hip_runtime_api.h:1420
hipGraphNode_t errNode_out
Definition hip_runtime_api.h:1416
unsigned long long flags
Definition hip_runtime_api.h:1417
Definition hip_runtime_api.h:1578
hipGraphNodeType type
Definition hip_runtime_api.h:1579
int reserved0[3]
Definition hip_runtime_api.h:1580
hipMemAllocNodeParams alloc
Definition hip_runtime_api.h:1592
long long reserved1[29]
Definition hip_runtime_api.h:1582
hipEventRecordNodeParams eventRecord
Definition hip_runtime_api.h:1589
hipExternalSemaphoreSignalNodeParams extSemSignal
Definition hip_runtime_api.h:1590
hipMemFreeNodeParams free
Definition hip_runtime_api.h:1593
hipChildGraphNodeParams graph
Definition hip_runtime_api.h:1587
hipExternalSemaphoreWaitNodeParams extSemWait
Definition hip_runtime_api.h:1591
hipMemsetParams memset
Definition hip_runtime_api.h:1585
hipHostNodeParams host
Definition hip_runtime_api.h:1586
long long reserved2
Definition hip_runtime_api.h:1596
hipKernelNodeParams kernel
Definition hip_runtime_api.h:1583
hipEventWaitNodeParams eventWait
Definition hip_runtime_api.h:1588
hipMemcpyNodeParams memcpy
Definition hip_runtime_api.h:1584
Definition hip_runtime_api.h:1249
hipHostFn_t fn
Definition hip_runtime_api.h:1250
void * userData
Definition hip_runtime_api.h:1251
Definition hip_runtime_api.h:622
Definition hip_runtime_api.h:619
Definition hip_runtime_api.h:1253
dim3 gridDim
Definition hip_runtime_api.h:1257
unsigned int sharedMemBytes
Definition hip_runtime_api.h:1259
dim3 blockDim
Definition hip_runtime_api.h:1254
void ** kernelParams
Definition hip_runtime_api.h:1258
void ** extra
Definition hip_runtime_api.h:1255
void * func
Definition hip_runtime_api.h:1256
Definition hip_runtime_api.h:1057
size_t sharedMem
Shared memory.
Definition hip_runtime_api.h:1062
void ** args
Arguments.
Definition hip_runtime_api.h:1061
dim3 blockDim
Block dimentions.
Definition hip_runtime_api.h:1060
dim3 gridDim
Grid dimentions.
Definition hip_runtime_api.h:1059
void * func
Device function symbol.
Definition hip_runtime_api.h:1058
hipStream_t stream
Stream identifier.
Definition hip_runtime_api.h:1063
Definition hip_runtime_api.h:948
hipMemAccessFlags flags
Accessibility flags to set.
Definition hip_runtime_api.h:950
hipMemLocation location
Location on which the accessibility has to change.
Definition hip_runtime_api.h:949
Definition hip_runtime_api.h:1270
const hipMemAccessDesc * accessDescs
Definition hip_runtime_api.h:1273
size_t bytesize
The size of the requested allocation in bytes.
Definition hip_runtime_api.h:1276
hipMemPoolProps poolProps
Definition hip_runtime_api.h:1271
size_t accessDescCount
The number of access descriptors.
Definition hip_runtime_api.h:1275
void * dptr
Returned device address of the allocation.
Definition hip_runtime_api.h:1277
Definition hip_runtime_api.h:1427
void * win32HandleMetaData
Metadata for Win32 handles.
Definition hip_runtime_api.h:1431
hipMemAllocationType type
Memory allocation type.
Definition hip_runtime_api.h:1428
unsigned char gpuDirectRDMACapable
RDMA capable.
Definition hip_runtime_api.h:1434
struct hipMemAllocationProp::@24 allocFlags
unsigned short usage
Usage.
Definition hip_runtime_api.h:1435
hipMemAllocationHandleType requestedHandleType
Requested handle type.
Definition hip_runtime_api.h:1429
hipMemLocation location
Memory location.
Definition hip_runtime_api.h:1430
unsigned char compressionType
Compression type.
Definition hip_runtime_api.h:1433
Definition hip_runtime_api.h:1571
void * dptr
the pointer to be freed
Definition hip_runtime_api.h:1572
Definition hip_runtime_api.h:932
int id
Identifier for the provided location type hipMemLocationType.
Definition hip_runtime_api.h:934
hipMemLocationType type
Specifies the location type, which describes the meaning of id.
Definition hip_runtime_api.h:933
Definition hip_runtime_api.h:976
hipMemLocation location
Location where allocations should reside.
Definition hip_runtime_api.h:979
hipMemAllocationHandleType handleTypes
Handle types that will be supported by allocations from the pool.
Definition hip_runtime_api.h:978
hipMemAllocationType allocType
Allocation type. Currently must be specified as hipMemAllocationTypePinned.
Definition hip_runtime_api.h:977
unsigned char reserved[64]
Reserved for future use, must be 0.
Definition hip_runtime_api.h:984
void * win32SecurityAttributes
Definition hip_runtime_api.h:983
Definition hip_runtime_api.h:989
unsigned char reserved[64]
Definition hip_runtime_api.h:990
Definition driver_types.h:359
Definition hip_runtime_api.h:1540
int reserved[3]
Must be zero.
Definition hip_runtime_api.h:1542
int flags
Must be zero.
Definition hip_runtime_api.h:1541
hipMemcpy3DParms copyParams
Params set for the memory copy.
Definition hip_runtime_api.h:1543
Definition hip_runtime_api.h:1261
void * dst
Definition hip_runtime_api.h:1262
unsigned int value
Definition hip_runtime_api.h:1266
unsigned int elementSize
Definition hip_runtime_api.h:1263
size_t width
Definition hip_runtime_api.h:1267
size_t pitch
Definition hip_runtime_api.h:1265
size_t height
Definition hip_runtime_api.h:1264
Definition driver_types.h:104
Definition driver_types.h:342
Definition hip_runtime_api.h:261
int device
Definition hip_runtime_api.h:263
void * hostPointer
Definition hip_runtime_api.h:265
enum hipMemoryType type
Definition hip_runtime_api.h:262
int isManaged
Definition hip_runtime_api.h:266
void * devicePointer
Definition hip_runtime_api.h:264
unsigned allocationFlags
Definition hip_runtime_api.h:267
Definition driver_types.h:247
Definition driver_types.h:303
Definition texture_types.h:117
Definition hip_runtime_api.h:84
Definition texture_types.h:96
Defines surface types for HIP runtime.
struct __hip_surface * hipSurfaceObject_t
Definition surface_types.h:41
struct __hip_texture * hipTextureObject_t
Definition texture_types.h:71
hipTextureAddressMode
Definition texture_types.h:76
hipTextureFilterMode
Definition texture_types.h:86
Definition hip_runtime_api.h:1300
int cooperative
Definition hip_runtime_api.h:1302
hipAccessPolicyWindow accessPolicyWindow
Definition hip_runtime_api.h:1301
int priority
Definition hip_runtime_api.h:1303