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

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

HIP Runtime API Reference: /home/docs/checkouts/readthedocs.org/user_builds/advanced-micro-devices-hip/checkouts/latest/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];
116 int major;
120 int minor;
188 size_t
207 unsigned int
214 int reserved[63];
215
216 int hipReserved[32];
217
218 /* HIP Only struct members */
219 char gcnArchName[256];
224 unsigned int* hdpMemFlushCntl;
225 unsigned int* hdpRegFlushCntl;
241
261
265typedef struct hipPointerAttribute_t {
271 unsigned allocationFlags; /* flags specified when memory was allocated*/
272 /* peers? */
274
275// Ignoring error-code return values from hip APIs is discouraged. On C++17,
276// we can make that yield a warning
277#if __cplusplus >= 201703L
278#define __HIP_NODISCARD [[nodiscard]]
279#else
280#define __HIP_NODISCARD
281#endif
282
287// Developer note - when updating these, update the hipErrorName and hipErrorString functions in
288// NVCC and HCC paths Also update the hipCUDAErrorTohipError function in NVCC path.
289
295 // Deprecated
298 // Deprecated
320 // Deprecated
342 // Deprecated
396 // HSA Runtime Error Codes start here.
401 hipErrorTbd
402} hipError_t;
403
404#undef __HIP_NODISCARD
405
412
511
514
539
542 // Extended attributes for vendors
544
550
557
562
568
569#if defined(__HIP_PLATFORM_AMD__) && !defined(__HIP_PLATFORM_NVIDIA__)
570
571#include <stdint.h>
572#include <stddef.h>
573#ifndef GENERIC_GRID_LAUNCH
574#define GENERIC_GRID_LAUNCH 1
575#endif
576#include <hip/amd_detail/host_defines.h>
577#include <hip/driver_types.h>
578#include <hip/texture_types.h>
579#include <hip/surface_types.h>
580#if defined(_MSC_VER)
581#define HIP_DEPRECATED(msg) __declspec(deprecated(msg))
582#else // !defined(_MSC_VER)
583#define HIP_DEPRECATED(msg) __attribute__ ((deprecated(msg)))
584#endif // !defined(_MSC_VER)
585#define HIP_DEPRECATED_MSG "This API is marked as deprecated and might not be supported in future releases. For more details please refer https://github.com/ROCm/HIP/blob/develop/docs/reference/deprecated_api_list.md"
586#define HIP_LAUNCH_PARAM_BUFFER_POINTER ((void*)0x01)
587#define HIP_LAUNCH_PARAM_BUFFER_SIZE ((void*)0x02)
588#define HIP_LAUNCH_PARAM_END ((void*)0x03)
589#ifdef __cplusplus
590 #define __dparm(x) \
591 = x
592#else
593 #define __dparm(x)
594#endif
595#ifdef __GNUC__
596#pragma GCC visibility push (default)
597#endif
598#ifdef __cplusplus
599namespace hip_impl {
601} // namespace hip_impl
602#endif
603// Structure definitions:
604#ifdef __cplusplus
605extern "C" {
606#endif
607//---
608// API-visible structures
609typedef struct ihipCtx_t* hipCtx_t;
610// Note many APIs also use integer deviceIds as an alternative to the device pointer:
611typedef int hipDevice_t;
618typedef struct ihipStream_t* hipStream_t;
619#define hipIpcMemLazyEnablePeerAccess 0x01
620#define HIP_IPC_HANDLE_SIZE 64
621typedef struct hipIpcMemHandle_st {
622 char reserved[HIP_IPC_HANDLE_SIZE];
624typedef struct hipIpcEventHandle_st {
625 char reserved[HIP_IPC_HANDLE_SIZE];
627typedef struct ihipModule_t* hipModule_t;
628typedef struct ihipModuleSymbol_t* hipFunction_t;
632typedef struct ihipMemPoolHandle_t* hipMemPool_t;
633
646typedef struct ihipEvent_t* hipEvent_t;
647
667//Flags that can be used with hipStreamCreateWithFlags.
669#define hipStreamDefault 0x00
670
672#define hipStreamNonBlocking 0x01
673
674//Flags that can be used with hipEventCreateWithFlags.
676#define hipEventDefault 0x0
677
679#define hipEventBlockingSync 0x1
680
682#define hipEventDisableTiming 0x2
683
685#define hipEventInterprocess 0x4
686
695#define hipEventDisableSystemFence 0x20000000
696
699#define hipEventReleaseToDevice 0x40000000
700
703#define hipEventReleaseToSystem 0x80000000
704
705//Flags that can be used with hipHostMalloc/hipHostAlloc.
707#define hipHostMallocDefault 0x0
708#define hipHostAllocDefault 0x0
709
711#define hipHostMallocPortable 0x1
712#define hipHostAllocPortable 0x1
713
716#define hipHostMallocMapped 0x2
717#define hipHostAllocMapped 0x2
718
722#define hipHostMallocWriteCombined 0x4
723#define hipHostAllocWriteCombined 0x4
724
729#define hipHostMallocNumaUser 0x20000000
730
732#define hipHostMallocCoherent 0x40000000
733
735#define hipHostMallocNonCoherent 0x80000000
736
738#define hipMemAttachGlobal 0x01
739
741#define hipMemAttachHost 0x02
742
744#define hipMemAttachSingle 0x04
745
746#define hipDeviceMallocDefault 0x0
747
749#define hipDeviceMallocFinegrained 0x1
750
752#define hipMallocSignalMemory 0x2
753
755#define hipDeviceMallocUncached 0x3
756
758#define hipDeviceMallocContiguous 0x4
759
760//Flags that can be used with hipHostRegister.
762#define hipHostRegisterDefault 0x0
763
765#define hipHostRegisterPortable 0x1
766
769#define hipHostRegisterMapped 0x2
770
772#define hipHostRegisterIoMemory 0x4
773
775#define hipHostRegisterReadOnly 0x08
776
778#define hipExtHostRegisterCoarseGrained 0x8
779
781#define hipDeviceScheduleAuto 0x0
782
785#define hipDeviceScheduleSpin 0x1
786
789#define hipDeviceScheduleYield 0x2
790#define hipDeviceScheduleBlockingSync 0x4
791#define hipDeviceScheduleMask 0x7
792#define hipDeviceMapHost 0x8
793#define hipDeviceLmemResizeToMax 0x10
795#define hipArrayDefault 0x00
796#define hipArrayLayered 0x01
797#define hipArraySurfaceLoadStore 0x02
798#define hipArrayCubemap 0x04
799#define hipArrayTextureGather 0x08
800#define hipOccupancyDefault 0x00
801#define hipOccupancyDisableCachingOverride 0x01
802#define hipCooperativeLaunchMultiDeviceNoPreSync 0x01
803#define hipCooperativeLaunchMultiDeviceNoPostSync 0x02
804#define hipCpuDeviceId ((int)-1)
805#define hipInvalidDeviceId ((int)-2)
806//Flags that can be used with hipExtLaunch Set of APIs.
808#define hipExtAnyOrderLaunch 0x01
809// Flags to be used with hipStreamWaitValue32 and hipStreamWaitValue64.
810#define hipStreamWaitValueGte 0x0
811#define hipStreamWaitValueEq 0x1
812#define hipStreamWaitValueAnd 0x2
813#define hipStreamWaitValueNor 0x3
814// Stream per thread
816#define hipStreamPerThread ((hipStream_t)2)
817
818#define hipStreamLegacy ((hipStream_t)1)
819
820// Indicates that the external memory object is a dedicated resource
821#define hipExternalMemoryDedicated 0x1
871
1005 unsigned char reserved[64];
1007
1061typedef struct dim3 {
1062 uint32_t x;
1063 uint32_t y;
1064 uint32_t z;
1065#ifdef __cplusplus
1066 constexpr __host__ __device__ dim3(uint32_t _x = 1, uint32_t _y = 1, uint32_t _z = 1) : x(_x), y(_y), z(_z){};
1067#endif
1068} dim3;
1072typedef struct hipLaunchParams_t {
1073 void* func;
1076 void **args;
1077 size_t sharedMem;
1083typedef struct hipFunctionLaunchParams_t {
1085 unsigned int gridDimX;
1086 unsigned int gridDimY;
1087 unsigned int gridDimZ;
1088 unsigned int blockDimX;
1089 unsigned int blockDimY;
1090 unsigned int blockDimZ;
1091 unsigned int sharedMemBytes;
1105typedef struct hipExternalMemoryHandleDesc_st {
1107 union {
1108 int fd;
1109 struct {
1110 void *handle;
1111 const void *name;
1112 } win32;
1113 const void *nvSciBufObject;
1114 } handle;
1115 unsigned long long size;
1116 unsigned int flags;
1117 unsigned int reserved[16];
1119typedef struct hipExternalMemoryBufferDesc_st {
1120 unsigned long long offset;
1121 unsigned long long size;
1122 unsigned int flags;
1123 unsigned int reserved[16];
1125typedef struct hipExternalMemoryMipmappedArrayDesc_st {
1126 unsigned long long offset;
1129 unsigned int flags;
1130 unsigned int numLevels;
1145typedef struct hipExternalSemaphoreHandleDesc_st {
1147 union {
1148 int fd;
1149 struct {
1150 void* handle;
1151 const void* name;
1152 } win32;
1153 const void* NvSciSyncObj;
1154 } handle;
1155 unsigned int flags;
1156 unsigned int reserved[16];
1159typedef struct hipExternalSemaphoreSignalParams_st {
1160 struct {
1161 struct {
1162 unsigned long long value;
1163 } fence;
1164 union {
1165 void *fence;
1166 unsigned long long reserved;
1167 } nvSciSync;
1168 struct {
1169 unsigned long long key;
1170 } keyedMutex;
1171 unsigned int reserved[12];
1172 } params;
1173 unsigned int flags;
1174 unsigned int reserved[16];
1179typedef struct hipExternalSemaphoreWaitParams_st {
1180 struct {
1181 struct {
1182 unsigned long long value;
1183 } fence;
1184 union {
1185 void *fence;
1186 unsigned long long reserved;
1187 } nvSciSync;
1188 struct {
1189 unsigned long long key;
1190 unsigned int timeoutMs;
1191 } keyedMutex;
1192 unsigned int reserved[10];
1193 } params;
1194 unsigned int flags;
1195 unsigned int reserved[16];
1197
1198#if __HIP_HAS_GET_PCH
1203 void __hipGetPCH(const char** pch, unsigned int*size);
1204#endif
1205
1218
1219typedef struct _hipGraphicsResource hipGraphicsResource;
1220
1222
1226typedef struct ihipGraph* hipGraph_t;
1230typedef struct hipGraphNode* hipGraphNode_t;
1234typedef struct hipGraphExec* hipGraphExec_t;
1235
1239typedef struct hipUserObject* hipUserObject_t;
1240
1241
1262
1263typedef void (*hipHostFn_t)(void* userData);
1276typedef struct hipMemsetParams {
1277 void* dst;
1278 unsigned int elementSize;
1279 size_t height;
1280 size_t pitch;
1281 unsigned int value;
1282 size_t width;
1284
1294
1295
1308
1317
1328
1332#define hipKernelNodeAttrID hipLaunchAttributeID
1333#define hipKernelNodeAttributeAccessPolicyWindow hipLaunchAttributeAccessPolicyWindow
1334#define hipKernelNodeAttributeCooperative hipLaunchAttributeCooperative
1335#define hipKernelNodeAttributePriority hipLaunchAttributePriority
1336
1340#define hipKernelNodeAttrValue hipLaunchAttributeValue
1341
1347 size_t pitch;
1348 unsigned int value;
1349 unsigned int elementSize;
1350 size_t width;
1351 size_t height;
1353
1371
1383
1388
1398
1402
1413
1432
1447
1458
1459
1474
1486
1498
1502typedef struct ihipMemGenericAllocationHandle* hipMemGenericAllocationHandle_t;
1503
1511
1518
1526
1534
1538typedef struct hipArrayMapInfo {
1540 union {
1545 union {
1546 struct {
1547 unsigned int level;
1548 unsigned int layer;
1549 unsigned int offsetX;
1550 unsigned int offsetY;
1551 unsigned int offsetZ;
1552 unsigned int extentWidth;
1553 unsigned int extentHeight;
1554 unsigned int extentDepth;
1556 struct {
1557 unsigned int layer;
1558 unsigned long long offset;
1559 unsigned long long size;
1564 union {
1567 unsigned long long offset;
1568 unsigned int deviceBitMask;
1569 unsigned int flags;
1570 unsigned int reserved[2];
1572
1581
1589
1596
1603
1610
1634
1638#define hipGraphKernelNodePortDefault 0
1639
1643#define hipGraphKernelNodePortLaunchCompletion 2
1644
1650#define hipGraphKernelNodePortProgrammatic 1
1651
1656
1657typedef struct hipGraphEdgeData {
1658 unsigned char
1666 unsigned char reserved[5];
1667 unsigned char
1669 unsigned char type;
1671
1672// Doxygen end group GlobalDefs
1698// TODO-ctx - more description on error codes.
1699hipError_t hipInit(unsigned int flags);
1700
1740
1749hipError_t hipDeviceComputeCapability(int* major, int* minor, hipDevice_t device);
1758hipError_t hipDeviceGetName(char* name, int len, hipDevice_t device);
1781 int srcDevice, int dstDevice);
1790hipError_t hipDeviceGetPCIBusId(char* pciBusId, int len, int device);
1798hipError_t hipDeviceGetByPCIBusId(int* device, const char* pciBusId);
1807// doxygen end initialization
1882hipError_t hipSetValidDevices(int* device_arr, int len);
2027hipError_t hipDeviceGetLimit(size_t* pValue, enum hipLimit_t limit);
2047hipError_t hipDeviceSetLimit ( enum hipLimit_t limit, size_t value );
2067hipError_t hipGetDeviceFlags(unsigned int* flags);
2126hipError_t hipExtGetLinkTypeAndHopCount(int device1, int device2, uint32_t* linktype, uint32_t* hopcount);
2127// TODO: implement IPC apis
2187hipError_t hipIpcOpenMemHandle(void** devPtr, hipIpcMemHandle_t handle, unsigned int flags);
2206
2224
2243
2244// end doxygen Device
2268hipError_t hipFuncSetAttribute(const void* func, hipFuncAttribute attr, int value);
2294//doxygen end execution
2317
2330
2350const char* hipGetErrorName(hipError_t hip_error);
2359const char* hipGetErrorString(hipError_t hipError);
2369hipError_t hipDrvGetErrorName(hipError_t hipError, const char** errorString);
2379hipError_t hipDrvGetErrorString(hipError_t hipError, const char** errorString);
2380// end doxygen Error
2445hipError_t hipStreamCreateWithPriority(hipStream_t* stream, unsigned int flags, int priority);
2460hipError_t hipDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority);
2535hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags __dparm(0));
2549hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int* flags);
2594hipError_t hipExtStreamCreateWithCUMask(hipStream_t* stream, uint32_t cuMaskSize, const uint32_t* cuMask);
2607hipError_t hipExtStreamGetCUMask(hipStream_t stream, uint32_t cuMaskSize, uint32_t* cuMask);
2611typedef void (*hipStreamCallback_t)(hipStream_t stream, hipError_t status, void* userData);
2628 unsigned int flags);
2629// end doxygen Stream
2672hipError_t hipStreamWaitValue32(hipStream_t stream, void* ptr, uint32_t value, unsigned int flags,
2673 uint32_t mask __dparm(0xFFFFFFFF));
2706hipError_t hipStreamWaitValue64(hipStream_t stream, void* ptr, uint64_t value, unsigned int flags,
2707 uint64_t mask __dparm(0xFFFFFFFFFFFFFFFF));
2727hipError_t hipStreamWriteValue32(hipStream_t stream, void* ptr, uint32_t value, unsigned int flags);
2747hipError_t hipStreamWriteValue64(hipStream_t stream, void* ptr, uint64_t value, unsigned int flags);
2748// end doxygen Stream Memory Operations
2827#ifdef __cplusplus
2829#else
2831#endif
2914// end doxygen Events
2946 hipDeviceptr_t ptr);
2947
2948
2984 hipDeviceptr_t ptr);
3001hipError_t hipDrvPointerGetAttributes(unsigned int numAttributes, hipPointer_attribute* attributes,
3002 void** data, hipDeviceptr_t ptr);
3027 const hipExternalSemaphoreHandleDesc* semHandleDesc);
3044 const hipExternalSemaphoreSignalParams* paramsArray,
3045 unsigned int numExtSems, hipStream_t stream);
3062 const hipExternalSemaphoreWaitParams* paramsArray,
3063 unsigned int numExtSems, hipStream_t stream);
3077
3126 const hipExternalMemoryMipmappedArrayDesc* mipmapDesc);
3127 // end of external resource
3144hipError_t hipMalloc(void** ptr, size_t size);
3164hipError_t hipExtMallocWithFlags(void** ptr, size_t sizeBytes, unsigned int flags);
3165
3166
3189HIP_DEPRECATED("use hipHostMalloc instead")
3190hipError_t hipMallocHost(void** ptr, size_t size);
3203HIP_DEPRECATED("use hipHostMalloc instead")
3204hipError_t hipMemAllocHost(void** ptr, size_t size);
3205// end doxygen deprecated management memory
3241hipError_t hipHostMalloc(void** ptr, size_t size, unsigned int flags);
3277 size_t size,
3278 unsigned int flags __dparm(hipMemAttachGlobal));
3292 size_t count,
3293 int device,
3294 hipStream_t stream __dparm(0));
3314hipError_t hipMemAdvise(const void* dev_ptr,
3315 size_t count,
3316 hipMemoryAdvise advice,
3317 int device);
3333 size_t data_size,
3334 hipMemRangeAttribute attribute,
3335 const void* dev_ptr,
3336 size_t count);
3354 size_t* data_sizes,
3355 hipMemRangeAttribute* attributes,
3356 size_t num_attributes,
3357 const void* dev_ptr,
3358 size_t count);
3375 void* dev_ptr,
3376 size_t length __dparm(0),
3377 unsigned int flags __dparm(hipMemAttachSingle));
3378// end doxygen Managed Memory
3438hipError_t hipMallocAsync(void** dev_ptr, size_t size, hipStream_t stream);
3463hipError_t hipFreeAsync(void* dev_ptr, hipStream_t stream);
3491hipError_t hipMemPoolTrimTo(hipMemPool_t mem_pool, size_t min_bytes_to_hold);
3587hipError_t hipMemPoolSetAccess(hipMemPool_t mem_pool, const hipMemAccessDesc* desc_list, size_t count);
3692hipError_t hipMallocFromPoolAsync(void** dev_ptr, size_t size, hipMemPool_t mem_pool, hipStream_t stream);
3720 void* shared_handle,
3721 hipMemPool_t mem_pool,
3722 hipMemAllocationHandleType handle_type,
3723 unsigned int flags);
3748 hipMemPool_t* mem_pool,
3749 void* shared_handle,
3750 hipMemAllocationHandleType handle_type,
3751 unsigned int flags);
3801 void** dev_ptr,
3802 hipMemPool_t mem_pool,
3803 hipMemPoolPtrExportData* export_data);
3804// Doxygen end of ordered memory allocator
3826hipError_t hipHostAlloc(void** ptr, size_t size, unsigned int flags);
3838hipError_t hipHostGetDevicePointer(void** devPtr, void* hstPtr, unsigned int flags);
3848hipError_t hipHostGetFlags(unsigned int* flagsPtr, void* hostPtr);
3885hipError_t hipHostRegister(void* hostPtr, size_t sizeBytes, unsigned int flags);
3913hipError_t hipMallocPitch(void** ptr, size_t* pitch, size_t width, size_t height);
3936hipError_t hipMemAllocPitch(hipDeviceptr_t* dptr, size_t* pitch, size_t widthInBytes, size_t height,
3937 unsigned int elementSizeBytes);
4009hipError_t hipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind);
4024hipError_t hipMemcpyWithStream(void* dst, const void* src, size_t sizeBytes,
4025 hipMemcpyKind kind, hipStream_t stream);
4043hipError_t hipMemcpyHtoD(hipDeviceptr_t dst, void* src, size_t sizeBytes);
4061hipError_t hipMemcpyDtoH(void* dst, hipDeviceptr_t src, size_t sizeBytes);
4098hipError_t hipMemcpyAtoD(hipDeviceptr_t dstDevice, hipArray_t srcArray, size_t srcOffset,
4099 size_t ByteCount);
4118hipError_t hipMemcpyDtoA(hipArray_t dstArray, size_t dstOffset, hipDeviceptr_t srcDevice,
4119 size_t ByteCount);
4120
4140hipError_t hipMemcpyAtoA(hipArray_t dstArray, size_t dstOffset, hipArray_t srcArray,
4141 size_t srcOffset, size_t ByteCount);
4160hipError_t hipMemcpyHtoDAsync(hipDeviceptr_t dst, void* src, size_t sizeBytes, hipStream_t stream);
4179hipError_t hipMemcpyDtoHAsync(void* dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream);
4199 hipStream_t stream);
4219hipError_t hipMemcpyAtoHAsync(void* dstHost, hipArray_t srcArray, size_t srcOffset,
4220 size_t ByteCount, hipStream_t stream);
4240hipError_t hipMemcpyHtoAAsync(hipArray_t dstArray, size_t dstOffset, const void* srcHost,
4241 size_t ByteCount, hipStream_t stream);
4257 hipModule_t hmod, const char* name);
4258
4268hipError_t hipGetSymbolAddress(void** devPtr, const void* symbol);
4269
4270
4271
4281hipError_t hipGetSymbolSize(size_t* size, const void* symbol);
4282
4302hipError_t hipGetProcAddress(const char* symbol, void** pfn, int hipVersion, uint64_t flags,
4303 hipDriverProcAddressQueryResult* symbolStatus);
4304
4325hipError_t hipMemcpyToSymbol(const void* symbol, const void* src,
4326 size_t sizeBytes, size_t offset __dparm(0),
4328
4342hipError_t hipMemcpyToSymbolAsync(const void* symbol, const void* src,
4343 size_t sizeBytes, size_t offset,
4344 hipMemcpyKind kind, hipStream_t stream __dparm(0));
4345
4358hipError_t hipMemcpyFromSymbol(void* dst, const void* symbol,
4359 size_t sizeBytes, size_t offset __dparm(0),
4361
4375hipError_t hipMemcpyFromSymbolAsync(void* dst, const void* symbol,
4376 size_t sizeBytes, size_t offset,
4377 hipMemcpyKind kind,
4378 hipStream_t stream __dparm(0));
4408hipError_t hipMemcpyAsync(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind,
4409 hipStream_t stream __dparm(0));
4419hipError_t hipMemset(void* dst, int value, size_t sizeBytes);
4429hipError_t hipMemsetD8(hipDeviceptr_t dest, unsigned char value, size_t count);
4445hipError_t hipMemsetD8Async(hipDeviceptr_t dest, unsigned char value, size_t count, hipStream_t stream __dparm(0));
4455hipError_t hipMemsetD16(hipDeviceptr_t dest, unsigned short value, size_t count);
4471hipError_t hipMemsetD16Async(hipDeviceptr_t dest, unsigned short value, size_t count, hipStream_t stream __dparm(0));
4481hipError_t hipMemsetD32(hipDeviceptr_t dest, int value, size_t count);
4497hipError_t hipMemsetAsync(void* dst, int value, size_t sizeBytes, hipStream_t stream __dparm(0));
4513hipError_t hipMemsetD32Async(hipDeviceptr_t dst, int value, size_t count,
4514 hipStream_t stream __dparm(0));
4525hipError_t hipMemset2D(void* dst, size_t pitch, int value, size_t width, size_t height);
4537hipError_t hipMemset2DAsync(void* dst, size_t pitch, int value, size_t width, size_t height,hipStream_t stream __dparm(0));
4546hipError_t hipMemset3D(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent );
4556hipError_t hipMemset3DAsync(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent ,hipStream_t stream __dparm(0));
4573hipError_t hipMemGetInfo(size_t* free, size_t* total);
4574
4586hipError_t hipMemPtrGetInfo(void* ptr, size_t* size);
4600 size_t height __dparm(0), unsigned int flags __dparm(hipArrayDefault));
4665 struct hipExtent extent, unsigned int flags);
4678hipError_t hipArrayGetInfo(hipChannelFormatDesc* desc, hipExtent* extent, unsigned int* flags,
4679 hipArray_t array);
4732hipError_t hipMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width,
4733 size_t height, hipMemcpyKind kind);
4772hipError_t hipMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width,
4773 size_t height, hipMemcpyKind kind, hipStream_t stream __dparm(0));
4791hipError_t hipMemcpy2DToArray(hipArray_t dst, size_t wOffset, size_t hOffset, const void* src,
4792 size_t spitch, size_t width, size_t height, hipMemcpyKind kind);
4811hipError_t hipMemcpy2DToArrayAsync(hipArray_t dst, size_t wOffset, size_t hOffset, const void* src,
4812 size_t spitch, size_t width, size_t height, hipMemcpyKind kind,
4813 hipStream_t stream __dparm(0));
4832hipError_t hipMemcpy2DArrayToArray(hipArray_t dst, size_t wOffsetDst, size_t hOffsetDst,
4833 hipArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc,
4834 size_t width, size_t height, hipMemcpyKind kind);
4854hipError_t hipMemcpyToArray(hipArray_t dst, size_t wOffset, size_t hOffset, const void* src,
4855 size_t count, hipMemcpyKind kind);
4875hipError_t hipMemcpyFromArray(void* dst, hipArray_const_t srcArray, size_t wOffset, size_t hOffset,
4876 size_t count, hipMemcpyKind kind);
4894hipError_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);
4913hipError_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));
4927hipError_t hipMemcpyAtoH(void* dst, hipArray_t srcArray, size_t srcOffset, size_t count);
4941hipError_t hipMemcpyHtoA(hipArray_t dstArray, size_t dstOffset, const void* srcHost, size_t count);
4988// doxygen end Memory
5016hipError_t hipDeviceCanAccessPeer(int* canAccessPeer, int deviceId, int peerDeviceId);
5033hipError_t hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags);
5059#ifndef USE_PEER_NON_UNIFIED
5060#define USE_PEER_NON_UNIFIED 1
5061#endif
5062#if USE_PEER_NON_UNIFIED == 1
5074hipError_t hipMemcpyPeer(void* dst, int dstDeviceId, const void* src, int srcDeviceId,
5075 size_t sizeBytes);
5088hipError_t hipMemcpyPeerAsync(void* dst, int dstDeviceId, const void* src, int srcDevice,
5089 size_t sizeBytes, hipStream_t stream __dparm(0));
5090#endif
5091// doxygen end PeerToPeer
5133hipError_t hipCtxCreate(hipCtx_t* ctx, unsigned int flags, hipDevice_t device);
5348hipError_t hipCtxGetFlags(unsigned int* flags);
5372hipError_t hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags);
5394
5411hipError_t hipDevicePrimaryCtxGetState(hipDevice_t dev, unsigned int* flags, int* active);
5476// doxygen end Context Management
5503hipError_t hipModuleLoad(hipModule_t* module, const char* fname);
5524hipError_t hipModuleGetFunction(hipFunction_t* function, hipModule_t module, const char* kname);
5533hipError_t hipFuncGetAttributes(struct hipFuncAttributes* attr, const void* func);
5553hipError_t hipGetFuncBySymbol(hipFunction_t* functionPtr, const void* symbolPtr);
5573hipError_t hipModuleLoadData(hipModule_t* module, const void* image);
5586hipError_t hipModuleLoadDataEx(hipModule_t* module, const void* image, unsigned int numOptions,
5587 hipJitOption* options, void** optionValues);
5616hipError_t hipModuleLaunchKernel(hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY,
5617 unsigned int gridDimZ, unsigned int blockDimX,
5618 unsigned int blockDimY, unsigned int blockDimZ,
5619 unsigned int sharedMemBytes, hipStream_t stream,
5620 void** kernelParams, void** extra);
5650 unsigned int gridDimY, unsigned int gridDimZ,
5651 unsigned int blockDimX, unsigned int blockDimY,
5652 unsigned int blockDimZ, unsigned int sharedMemBytes,
5653 hipStream_t stream, void** kernelParams);
5669 unsigned int numDevices,
5670 unsigned int flags);
5691hipError_t hipLaunchCooperativeKernel(const void* f, dim3 gridDim, dim3 blockDimX,
5692 void** kernelParams, unsigned int sharedMemBytes,
5693 hipStream_t stream);
5706 int numDevices, unsigned int flags);
5707
5708// Doxygen end group ModuleCooperativeG
5723 int numDevices, unsigned int flags);
5724// doxygen end Module
5751//TODO - Match CUoccupancyB2DSize
5753 hipFunction_t f, size_t dynSharedMemPerBlk,
5754 int blockSizeLimit);
5770//TODO - Match CUoccupancyB2DSize
5772 hipFunction_t f, size_t dynSharedMemPerBlk,
5773 int blockSizeLimit, unsigned int flags);
5784 int* numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk);
5796 int* numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags);
5807 int* numBlocks, const void* f, int blockSize, size_t dynSharedMemPerBlk);
5819 int* numBlocks, const void* f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags __dparm(hipOccupancyDefault));
5834hipError_t hipOccupancyMaxPotentialBlockSize(int* gridSize, int* blockSize,
5835 const void* f, size_t dynSharedMemPerBlk,
5836 int blockSizeLimit);
5837// doxygen end Occupancy
5851// TODO - expand descriptions:
5858HIP_DEPRECATED("use roctracer/rocTX instead")
5866HIP_DEPRECATED("use roctracer/rocTX instead")
5868// doxygen end profiler
5895hipError_t hipConfigureCall(dim3 gridDim, dim3 blockDim, size_t sharedMem __dparm(0), hipStream_t stream __dparm(0));
5906hipError_t hipSetupArgument(const void* arg, size_t size, size_t offset);
5915hipError_t hipLaunchByPtr(const void* func);
5933 dim3 blockDim,
5934 size_t sharedMem __dparm(0),
5935 hipStream_t stream __dparm(0));
5956 dim3 *blockDim,
5957 size_t *sharedMem,
5958 hipStream_t *stream);
5975hipError_t hipLaunchKernel(const void* function_address,
5976 dim3 numBlocks,
5977 dim3 dimBlocks,
5978 void** args,
5979 size_t sharedMemBytes __dparm(0),
5980 hipStream_t stream __dparm(0));
5981
6008
6017//TODO: Move this to hip_ext.h
6039hipError_t hipExtLaunchKernel(const void* function_address, dim3 numBlocks, dim3 dimBlocks,
6040 void** args, size_t sharedMemBytes, hipStream_t stream,
6041 hipEvent_t startEvent, hipEvent_t stopEvent, int flags);
6042// doxygen end Clang launch
6069 hipTextureObject_t* pTexObject,
6070 const hipResourceDesc* pResDesc,
6071 const hipTextureDesc* pTexDesc,
6072 const struct hipResourceViewDesc* pResViewDesc);
6073
6083
6095 hipArray_const_t array);
6096
6107 hipResourceDesc* pResDesc,
6108 hipTextureObject_t textureObject);
6109
6120 struct hipResourceViewDesc* pResViewDesc,
6121 hipTextureObject_t textureObject);
6122
6133 hipTextureDesc* pTexDesc,
6134 hipTextureObject_t textureObject);
6135
6148 hipTextureObject_t* pTexObject,
6149 const HIP_RESOURCE_DESC* pResDesc,
6150 const HIP_TEXTURE_DESC* pTexDesc,
6151 const HIP_RESOURCE_VIEW_DESC* pResViewDesc);
6152
6162 hipTextureObject_t texObject);
6163
6174 HIP_RESOURCE_DESC* pResDesc,
6175 hipTextureObject_t texObject);
6176
6187 HIP_RESOURCE_VIEW_DESC* pResViewDesc,
6188 hipTextureObject_t texObject);
6189
6200 HIP_TEXTURE_DESC* pTexDesc,
6201 hipTextureObject_t texObject);
6202
6218 hipMipmappedArray_t *mipmappedArray,
6219 const struct hipChannelFormatDesc* desc,
6220 struct hipExtent extent,
6221 unsigned int numLevels,
6222 unsigned int flags __dparm(0));
6223
6234hipError_t hipFreeMipmappedArray(hipMipmappedArray_t mipmappedArray);
6235
6249 hipArray_t *levelArray,
6250 hipMipmappedArray_const_t mipmappedArray,
6251 unsigned int level);
6252
6265 hipMipmappedArray_t* pHandle,
6266 HIP_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc,
6267 unsigned int numMipmapLevels);
6268
6279hipError_t hipMipmappedArrayDestroy(hipMipmappedArray_t hMipmappedArray);
6280
6294 hipArray_t* pLevelArray,
6295 hipMipmappedArray_t hMipMappedArray,
6296 unsigned int level);
6297
6318 const textureReference* tex,
6319 hipMipmappedArray_const_t mipmappedArray,
6320 const hipChannelFormatDesc* desc);
6321
6334 const textureReference** texref,
6335 const void* symbol);
6336
6348hipError_t hipTexRefGetBorderColor(float* pBorderColor, const textureReference* texRef);
6349
6363
6377 textureReference* texRef,
6378 int dim,
6379 enum hipTextureAddressMode am);
6394 textureReference* tex,
6395 hipArray_const_t array,
6396 unsigned int flags);
6410 textureReference* texRef,
6411 enum hipTextureFilterMode fm);
6425 textureReference* texRef,
6426 unsigned int Flags);
6441 textureReference* texRef,
6442 hipArray_Format fmt,
6443 int NumPackedComponents);
6460 size_t* offset,
6461 const textureReference* tex,
6462 const void* devPtr,
6463 const hipChannelFormatDesc* desc,
6464 size_t size __dparm(UINT_MAX));
6483 size_t* offset,
6484 const textureReference* tex,
6485 const void* devPtr,
6486 const hipChannelFormatDesc* desc,
6487 size_t width,
6488 size_t height,
6489 size_t pitch);
6504 const textureReference* tex,
6505 hipArray_const_t array,
6506 const hipChannelFormatDesc* desc);
6520 size_t* offset,
6521 const textureReference* texref);
6547 hipDeviceptr_t* dev_ptr,
6548 const textureReference* texRef);
6563 enum hipTextureAddressMode* pam,
6564 const textureReference* texRef,
6565 int dim);
6579 enum hipTextureFilterMode* pfm,
6580 const textureReference* texRef);
6594 unsigned int* pFlags,
6595 const textureReference* texRef);
6610 hipArray_Format* pFormat,
6611 int* pNumChannels,
6612 const textureReference* texRef);
6626 int* pmaxAnsio,
6627 const textureReference* texRef);
6641 enum hipTextureFilterMode* pfm,
6642 const textureReference* texRef);
6656 float* pbias,
6657 const textureReference* texRef);
6672 float* pminMipmapLevelClamp,
6673 float* pmaxMipmapLevelClamp,
6674 const textureReference* texRef);
6688 hipMipmappedArray_t* pArray,
6689 const textureReference* texRef);
6705 size_t* ByteOffset,
6706 textureReference* texRef,
6707 hipDeviceptr_t dptr,
6708 size_t bytes);
6724 textureReference* texRef,
6725 const HIP_ARRAY_DESCRIPTOR* desc,
6726 hipDeviceptr_t dptr,
6727 size_t Pitch);
6741 textureReference* texRef,
6742 unsigned int maxAniso);
6756 textureReference* texRef,
6757 float* pBorderColor);
6771 textureReference* texRef,
6772 enum hipTextureFilterMode fm);
6786 textureReference* texRef,
6787 float bias);
6802 textureReference* texRef,
6803 float minMipMapLevelClamp,
6804 float maxMipMapLevelClamp);
6819 textureReference* texRef,
6820 struct hipMipmappedArray* mipmappedArray,
6821 unsigned int Flags);
6822
6823// doxygen end deprecated texture management
6828// doxygen end Texture management
6840// This group is for HIPrtc
6841
6842// doxygen end Runtime
6861const char* hipApiName(uint32_t id);
6870const char* hipKernelNameRef(const hipFunction_t f);
6880const char* hipKernelNameRefByPtr(const void* hostFunction, hipStream_t stream);
6890
6891// doxygen end Callback
6917
6938 const hipGraphNode_t* dependencies,
6939 const hipGraphEdgeData* dependencyData,
6940 size_t numDependencies, hipStreamCaptureMode mode);
6941
6955
6970 unsigned long long* pId);
6971
6989 unsigned long long* id_out __dparm(0),
6990 hipGraph_t* graph_out __dparm(0),
6991 const hipGraphNode_t** dependencies_out __dparm(0),
6992 size_t* numDependencies_out __dparm(0));
6993
7007
7023 size_t numDependencies,
7024 unsigned int flags __dparm(0));
7025
7037
7050hipError_t hipGraphCreate(hipGraph_t* pGraph, unsigned int flags);
7051
7064
7079 const hipGraphNode_t* to, size_t numDependencies);
7080
7095 const hipGraphNode_t* to, size_t numDependencies);
7096
7115 size_t* numEdges);
7116
7133hipError_t hipGraphGetNodes(hipGraph_t graph, hipGraphNode_t* nodes, size_t* numNodes);
7134
7152 size_t* pNumRootNodes);
7153
7171 size_t* pNumDependencies);
7172
7191 size_t* pNumDependentNodes);
7192
7205
7217
7229hipError_t hipGraphClone(hipGraph_t* pGraphClone, hipGraph_t originalGraph);
7230
7244 hipGraph_t clonedGraph);
7245
7263 hipGraphNode_t* pErrorNode, char* pLogBuffer, size_t bufferSize);
7264
7278 unsigned long long flags);
7279
7292 hipGraphInstantiateParams *instantiateParams);
7304
7316
7330 const hipGraphNode_t *pDependencies, size_t numDependencies,
7331 hipGraphNodeParams *nodeParams);
7332
7342hipError_t hipGraphExecGetFlags(hipGraphExec_t graphExec, unsigned long long* flags);
7343
7354
7366
7378
7379// Check whether an executable graph can be updated with a graph and perform the update if possible.
7394 hipGraphNode_t* hErrorNode_out,
7395 hipGraphExecUpdateResult* updateResult_out);
7396
7410 const hipGraphNode_t* pDependencies, size_t numDependencies,
7411 const hipKernelNodeParams* pNodeParams);
7412
7423
7434
7446 const hipKernelNodeParams* pNodeParams);
7447
7462 const hipGraphNode_t* dependencies,
7463 size_t numDependencies,
7464 const HIP_MEMCPY3D* copyParams, hipCtx_t ctx);
7478 const hipGraphNode_t* pDependencies, size_t numDependencies,
7479 const hipMemcpy3DParms* pCopyParams);
7490
7501
7513 const hipKernelNodeAttrValue* value);
7525 hipKernelNodeAttrValue* value);
7537 hipMemcpy3DParms* pNodeParams);
7538
7555 const hipGraphNode_t* pDependencies, size_t numDependencies,
7556 void* dst, const void* src, size_t count, hipMemcpyKind kind);
7557
7571 size_t count, hipMemcpyKind kind);
7572
7588 void* dst, const void* src, size_t count,
7589 hipMemcpyKind kind);
7590
7608 const hipGraphNode_t* pDependencies,
7609 size_t numDependencies, void* dst, const void* symbol,
7610 size_t count, size_t offset, hipMemcpyKind kind);
7611
7626 size_t count, size_t offset, hipMemcpyKind kind);
7627
7644 void* dst, const void* symbol, size_t count,
7645 size_t offset, hipMemcpyKind kind);
7646
7664 const hipGraphNode_t* pDependencies,
7665 size_t numDependencies, const void* symbol,
7666 const void* src, size_t count, size_t offset,
7667 hipMemcpyKind kind);
7668
7683 const void* src, size_t count, size_t offset,
7684 hipMemcpyKind kind);
7685
7686
7702 const void* symbol, const void* src,
7703 size_t count, size_t offset, hipMemcpyKind kind);
7704
7718 const hipGraphNode_t* pDependencies, size_t numDependencies,
7719 const hipMemsetParams* pMemsetParams);
7720
7731
7742
7754 const hipMemsetParams* pNodeParams);
7755
7769 const hipGraphNode_t* pDependencies, size_t numDependencies,
7770 const hipHostNodeParams* pNodeParams);
7771
7782
7793
7805 const hipHostNodeParams* pNodeParams);
7806
7820 const hipGraphNode_t* pDependencies, size_t numDependencies,
7821 hipGraph_t childGraph);
7822
7833
7845 hipGraph_t childGraph);
7846
7859 const hipGraphNode_t* pDependencies, size_t numDependencies);
7860
7861
7875 const hipGraphNode_t* pDependencies, size_t numDependencies,
7876 hipEvent_t event);
7877
7888
7899
7911 hipEvent_t event);
7912
7926 const hipGraphNode_t* pDependencies, size_t numDependencies,
7927 hipEvent_t event);
7928
7929
7940
7951
7963 hipEvent_t event);
7964
7978 const hipGraphNode_t* pDependencies, size_t numDependencies, hipMemAllocNodeParams* pNodeParams);
7979
7990
8004 const hipGraphNode_t* pDependencies, size_t numDependencies, void* dev_ptr);
8005
8016
8028
8040
8051
8065 unsigned int initialRefcount, unsigned int flags);
8066
8077
8088
8101 unsigned int count __dparm(1), unsigned int flags __dparm(0));
8102
8114 unsigned int count __dparm(1));
8115
8126hipError_t hipGraphDebugDotPrint(hipGraph_t graph, const char* path, unsigned int flags);
8127
8143
8167 unsigned int isEnabled);
8189 unsigned int* isEnabled);
8190
8204 const hipGraphNode_t* pDependencies, size_t numDependencies,
8205 const hipExternalSemaphoreWaitNodeParams* nodeParams);
8206
8220 const hipGraphNode_t* pDependencies, size_t numDependencies,
8221 const hipExternalSemaphoreSignalNodeParams* nodeParams);
8232 const hipExternalSemaphoreSignalNodeParams* nodeParams);
8243 const hipExternalSemaphoreWaitNodeParams* nodeParams);
8277 const hipExternalSemaphoreSignalNodeParams* nodeParams);
8289 const hipExternalSemaphoreWaitNodeParams* nodeParams);
8290
8301
8312
8327 const hipGraphNode_t* dependencies, size_t numDependencies,
8328 const HIP_MEMSET_NODE_PARAMS* memsetParams, hipCtx_t ctx);
8329
8343 const hipGraphNode_t* dependencies, size_t numDependencies,
8344 hipDeviceptr_t dptr);
8345
8358 const HIP_MEMCPY3D* copyParams, hipCtx_t ctx);
8359
8372 const HIP_MEMSET_NODE_PARAMS* memsetParams, hipCtx_t ctx);
8373
8374// doxygen end graph API
8405hipError_t hipMemAddressFree(void* devPtr, size_t size);
8406
8421hipError_t hipMemAddressReserve(void** ptr, size_t size, size_t alignment, void* addr, unsigned long long flags);
8422
8436hipError_t hipMemCreate(hipMemGenericAllocationHandle_t* handle, size_t size, const hipMemAllocationProp* prop, unsigned long long flags);
8437
8451hipError_t hipMemExportToShareableHandle(void* shareableHandle, hipMemGenericAllocationHandle_t handle, hipMemAllocationHandleType handleType, unsigned long long flags);
8452
8465hipError_t hipMemGetAccess(unsigned long long* flags, const hipMemLocation* location, void* ptr);
8466
8481
8494
8508
8523hipError_t hipMemMap(void* ptr, size_t size, size_t offset, hipMemGenericAllocationHandle_t handle, unsigned long long flags);
8524
8535hipError_t hipMemMapArrayAsync(hipArrayMapInfo* mapInfoList, unsigned int count, hipStream_t stream);
8536
8548
8561
8575hipError_t hipMemSetAccess(void* ptr, size_t size, const hipMemAccessDesc* desc, size_t count);
8576
8588hipError_t hipMemUnmap(void* ptr, size_t size);
8589
8590// doxygen end virtual memory management API
8613 hipStream_t stream __dparm(0) );
8628 unsigned int arrayIndex, unsigned int mipLevel);
8640 hipGraphicsResource_t resource);
8652 hipStream_t stream __dparm(0));
8662// doxygen end GL Interop
8697// end of surface
8701#ifdef __cplusplus
8702} /* extern "c" */
8703#endif
8704#ifdef __cplusplus
8705#if defined(__clang__) && defined(__HIP__)
8706template <typename T>
8707static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSize(int* gridSize, int* blockSize,
8708 T f, size_t dynSharedMemPerBlk = 0, int blockSizeLimit = 0) {
8709 return hipOccupancyMaxPotentialBlockSize(gridSize, blockSize, reinterpret_cast<const void*>(f),dynSharedMemPerBlk,blockSizeLimit);
8710}
8711template <typename T>
8712static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSizeWithFlags(int* gridSize, int* blockSize,
8713 T f, size_t dynSharedMemPerBlk = 0, int blockSizeLimit = 0, unsigned int flags = 0 ) {
8714 return hipOccupancyMaxPotentialBlockSize(gridSize, blockSize, reinterpret_cast<const void*>(f),dynSharedMemPerBlk,blockSizeLimit);
8715}
8716#endif // defined(__clang__) && defined(__HIP__)
8717
8727template <typename T>
8728hipError_t hipGetSymbolAddress(void** devPtr, const T &symbol) {
8729 return ::hipGetSymbolAddress(devPtr, (const void *)&symbol);
8730}
8741template <typename T>
8742hipError_t hipGetSymbolSize(size_t* size, const T &symbol) {
8743 return ::hipGetSymbolSize(size, (const void *)&symbol);
8744}
8745
8754template <typename T>
8755hipError_t hipMemcpyToSymbol(const T& symbol, const void* src, size_t sizeBytes,
8756 size_t offset __dparm(0),
8758 return ::hipMemcpyToSymbol((const void*)&symbol, src, sizeBytes, offset, kind);
8759}
8768template <typename T>
8769hipError_t hipMemcpyToSymbolAsync(const T& symbol, const void* src, size_t sizeBytes, size_t offset,
8770 hipMemcpyKind kind, hipStream_t stream __dparm(0)) {
8771 return ::hipMemcpyToSymbolAsync((const void*)&symbol, src, sizeBytes, offset, kind, stream);
8772}
8780template <typename T>
8781hipError_t hipMemcpyFromSymbol(void* dst, const T &symbol,
8782 size_t sizeBytes, size_t offset __dparm(0),
8784 return ::hipMemcpyFromSymbol(dst, (const void*)&symbol, sizeBytes, offset, kind);
8785}
8793template <typename T>
8794hipError_t hipMemcpyFromSymbolAsync(void* dst, const T& symbol, size_t sizeBytes, size_t offset,
8795 hipMemcpyKind kind, hipStream_t stream __dparm(0)) {
8796 return ::hipMemcpyFromSymbolAsync(dst, (const void*)&symbol, sizeBytes, offset, kind, stream);
8797}
8798
8810template <class T>
8812 int* numBlocks, T f, int blockSize, size_t dynSharedMemPerBlk) {
8814 numBlocks, reinterpret_cast<const void*>(f), blockSize, dynSharedMemPerBlk);
8815}
8829template <class T>
8831 int* numBlocks, T f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags) {
8833 numBlocks, reinterpret_cast<const void*>(f), blockSize, dynSharedMemPerBlk, flags);
8834}
8855template<typename UnaryFunction, class T>
8856static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSizeVariableSMemWithFlags(
8857 int* min_grid_size,
8858 int* block_size,
8859 T func,
8860 UnaryFunction block_size_to_dynamic_smem_size,
8861 int block_size_limit = 0,
8862 unsigned int flags = 0) {
8863 if (min_grid_size == nullptr || block_size == nullptr ||
8864 reinterpret_cast<const void*>(func) == nullptr) {
8865 return hipErrorInvalidValue;
8866 }
8867
8868 int dev;
8869 hipError_t status;
8870 if ((status = hipGetDevice(&dev)) != hipSuccess) {
8871 return status;
8872 }
8873
8874 int max_threads_per_cu;
8875 if ((status = hipDeviceGetAttribute(&max_threads_per_cu,
8877 return status;
8878 }
8879
8880 int warp_size;
8881 if ((status = hipDeviceGetAttribute(&warp_size,
8883 return status;
8884 }
8885
8886 int max_cu_count;
8887 if ((status = hipDeviceGetAttribute(&max_cu_count,
8889 return status;
8890 }
8891
8892 struct hipFuncAttributes attr;
8893 if ((status = hipFuncGetAttributes(&attr, reinterpret_cast<const void*>(func))) != hipSuccess) {
8894 return status;
8895 }
8896
8897 // Initial limits for the execution
8898 const int func_max_threads_per_block = attr.maxThreadsPerBlock;
8899 if (block_size_limit == 0) {
8900 block_size_limit = func_max_threads_per_block;
8901 }
8902
8903 if (func_max_threads_per_block < block_size_limit) {
8904 block_size_limit = func_max_threads_per_block;
8905 }
8906
8907 const int block_size_limit_aligned =
8908 ((block_size_limit + (warp_size - 1)) / warp_size) * warp_size;
8909
8910 // For maximum search
8911 int max_threads = 0;
8912 int max_block_size{};
8913 int max_num_blocks{};
8914 for (int block_size_check_aligned = block_size_limit_aligned;
8915 block_size_check_aligned > 0;
8916 block_size_check_aligned -= warp_size) {
8917 // Make sure the logic uses the requested limit and not aligned
8918 int block_size_check = (block_size_limit < block_size_check_aligned) ?
8919 block_size_limit : block_size_check_aligned;
8920
8921 size_t dyn_smem_size = block_size_to_dynamic_smem_size(block_size_check);
8922 int optimal_blocks;
8924 &optimal_blocks, func, block_size_check, dyn_smem_size, flags)) != hipSuccess) {
8925 return status;
8926 }
8927
8928 int total_threads = block_size_check * optimal_blocks;
8929 if (total_threads > max_threads) {
8930 max_block_size = block_size_check;
8931 max_num_blocks = optimal_blocks;
8932 max_threads = total_threads;
8933 }
8934
8935 // Break if the logic reached possible maximum
8936 if (max_threads_per_cu == max_threads) {
8937 break;
8938 }
8939 }
8940
8941 // Grid size is the number of blocks per CU * CU count
8942 *min_grid_size = max_num_blocks * max_cu_count;
8943 *block_size = max_block_size;
8944
8945 return status;
8946}
8947
8967template<typename UnaryFunction, class T>
8968static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSizeVariableSMem(
8969 int* min_grid_size,
8970 int* block_size,
8971 T func,
8972 UnaryFunction block_size_to_dynamic_smem_size,
8973 int block_size_limit = 0)
8974{
8975 return hipOccupancyMaxPotentialBlockSizeVariableSMemWithFlags(min_grid_size, block_size, func,
8976 block_size_to_dynamic_smem_size, block_size_limit);
8977}
8992template <typename F>
8993inline hipError_t hipOccupancyMaxPotentialBlockSize(int* gridSize, int* blockSize,
8994 F kernel, size_t dynSharedMemPerBlk, uint32_t blockSizeLimit) {
8995return hipOccupancyMaxPotentialBlockSize(gridSize, blockSize,(hipFunction_t)kernel, dynSharedMemPerBlk, blockSizeLimit);
8996}
9018template <class T>
9019inline hipError_t hipLaunchCooperativeKernel(T f, dim3 gridDim, dim3 blockDim,
9020 void** kernelParams, unsigned int sharedMemBytes, hipStream_t stream) {
9021 return hipLaunchCooperativeKernel(reinterpret_cast<const void*>(f), gridDim,
9022 blockDim, kernelParams, sharedMemBytes, stream);
9023}
9039template <class T>
9041 unsigned int numDevices, unsigned int flags = 0) {
9042 return hipLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags);
9043}
9058template <class T>
9060 unsigned int numDevices, unsigned int flags = 0) {
9061 return hipExtLaunchMultiKernelMultiDevice(launchParamsList, numDevices, flags);
9062}
9076template <class T, int dim, enum hipTextureReadMode readMode>
9078static inline hipError_t hipBindTexture(size_t* offset, const struct texture<T, dim, readMode>& tex,
9079 const void* devPtr, size_t size = UINT_MAX) {
9080 return hipBindTexture(offset, &tex, devPtr, &tex.channelDesc, size);
9081}
9096template <class T, int dim, enum hipTextureReadMode readMode>
9098static inline hipError_t
9099 hipBindTexture(size_t* offset, const struct texture<T, dim, readMode>& tex, const void* devPtr,
9100 const struct hipChannelFormatDesc& desc, size_t size = UINT_MAX) {
9101 return hipBindTexture(offset, &tex, devPtr, &desc, size);
9102}
9118template<class T, int dim, enum hipTextureReadMode readMode>
9120static inline hipError_t hipBindTexture2D(
9121 size_t *offset,
9122 const struct texture<T, dim, readMode> &tex,
9123 const void *devPtr,
9124 size_t width,
9125 size_t height,
9126 size_t pitch)
9127{
9128 return hipBindTexture2D(offset, &tex, devPtr, &tex.channelDesc, width, height, pitch);
9129}
9146template<class T, int dim, enum hipTextureReadMode readMode>
9148static inline hipError_t hipBindTexture2D(
9149 size_t *offset,
9150 const struct texture<T, dim, readMode> &tex,
9151 const void *devPtr,
9152 const struct hipChannelFormatDesc &desc,
9153 size_t width,
9154 size_t height,
9155 size_t pitch)
9156{
9157 return hipBindTexture2D(offset, &tex, devPtr, &desc, width, height, pitch);
9158}
9170template<class T, int dim, enum hipTextureReadMode readMode>
9172static inline hipError_t hipBindTextureToArray(
9173 const struct texture<T, dim, readMode> &tex,
9174 hipArray_const_t array)
9175{
9176 struct hipChannelFormatDesc desc;
9177 hipError_t err = hipGetChannelDesc(&desc, array);
9178 return (err == hipSuccess) ? hipBindTextureToArray(&tex, array, &desc) : err;
9179}
9192template<class T, int dim, enum hipTextureReadMode readMode>
9194static inline hipError_t hipBindTextureToArray(
9195 const struct texture<T, dim, readMode> &tex,
9196 hipArray_const_t array,
9197 const struct hipChannelFormatDesc &desc)
9198{
9199 return hipBindTextureToArray(&tex, array, &desc);
9200}
9212template<class T, int dim, enum hipTextureReadMode readMode>
9215 const struct texture<T, dim, readMode> &tex,
9216 hipMipmappedArray_const_t mipmappedArray)
9217{
9218 struct hipChannelFormatDesc desc;
9219 hipArray_t levelArray;
9220 hipError_t err = hipGetMipmappedArrayLevel(&levelArray, mipmappedArray, 0);
9221 if (err != hipSuccess) {
9222 return err;
9223 }
9224 err = hipGetChannelDesc(&desc, levelArray);
9225 return (err == hipSuccess) ? hipBindTextureToMipmappedArray(&tex, mipmappedArray, &desc) : err;
9226}
9239template<class T, int dim, enum hipTextureReadMode readMode>
9242 const struct texture<T, dim, readMode> &tex,
9243 hipMipmappedArray_const_t mipmappedArray,
9244 const struct hipChannelFormatDesc &desc)
9245{
9246 return hipBindTextureToMipmappedArray(&tex, mipmappedArray, &desc);
9247}
9258template<class T, int dim, enum hipTextureReadMode readMode>
9260static inline hipError_t hipUnbindTexture(
9261 const struct texture<T, dim, readMode> &tex)
9262{
9263 return hipUnbindTexture(&tex);
9264}
9288static inline hipError_t hipMallocAsync(
9289 void** dev_ptr,
9290 size_t size,
9291 hipMemPool_t mem_pool,
9292 hipStream_t stream) {
9293 return hipMallocFromPoolAsync(dev_ptr, size, mem_pool, stream);
9294}
9305template<class T>
9306static inline hipError_t hipMallocAsync(
9307 T** dev_ptr,
9308 size_t size,
9309 hipMemPool_t mem_pool,
9310 hipStream_t stream) {
9311 return hipMallocFromPoolAsync(reinterpret_cast<void**>(dev_ptr), size, mem_pool, stream);
9312}
9323template<class T>
9324static inline hipError_t hipMallocAsync(
9325 T** dev_ptr,
9326 size_t size,
9327 hipStream_t stream) {
9328 return hipMallocAsync(reinterpret_cast<void**>(dev_ptr), size, stream);
9329}
9340template<class T>
9342 T** dev_ptr,
9343 size_t size,
9344 hipMemPool_t mem_pool,
9345 hipStream_t stream) {
9346 return hipMallocFromPoolAsync(reinterpret_cast<void**>(dev_ptr), size, mem_pool, stream);
9347}
9353#endif // __cplusplus
9354
9355#ifdef __GNUC__
9356#pragma GCC visibility pop
9357#endif
9358
9359
9360#elif !defined(__HIP_PLATFORM_AMD__) && defined(__HIP_PLATFORM_NVIDIA__)
9361#include "hip/nvidia_detail/nvidia_hip_runtime_api.h"
9362#else
9363#error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
9364#endif
9365
9366
9378#if defined(__cplusplus) && !defined(__HIP_DISABLE_CPP_FUNCTIONS__)
9379template <class T>
9380static inline hipError_t hipMalloc(T** devPtr, size_t size) {
9381 return hipMalloc((void**)devPtr, size);
9382}
9394template <class T>
9395static inline hipError_t hipMallocPitch(T** devPtr, size_t* pitch, size_t width, size_t height) {
9396 return hipMallocPitch((void**)devPtr, pitch, width, height);
9397}
9410template <class T>
9411static inline hipError_t hipHostMalloc(T** ptr, size_t size,
9412 unsigned int flags = hipHostMallocDefault) {
9413 return hipHostMalloc((void**)ptr, size, flags);
9414}
9427template <class T>
9428static inline hipError_t hipHostAlloc(T** ptr, size_t size,
9429 unsigned int flags = hipHostAllocDefault) {
9430 return hipHostAlloc((void**)ptr, size, flags);
9431}
9446template <class T>
9447static inline hipError_t hipMallocManaged(T** devPtr, size_t size,
9448 unsigned int flags = hipMemAttachGlobal) {
9449 return hipMallocManaged((void**)devPtr, size, flags);
9450}
9451
9452
9453#endif
9454#endif
9455// doxygen end HIP API
9459#include <hip/amd_detail/amd_hip_runtime_pt_api.h>
9460
9461#if USE_PROF_API
9462#include <hip/amd_detail/hip_prof_str.h>
9463#endif
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 [Deprecated].
hipError_t hipCtxPopCurrent(hipCtx_t *ctx)
Pop the current/default context and return the popped context [Deprecated].
hipError_t hipCtxGetSharedMemConfig(hipSharedMemConfig *pConfig)
Get Shared memory bank configuration [Deprecated].
hipError_t hipDevicePrimaryCtxSetFlags(hipDevice_t dev, unsigned int flags)
Set flags for the primary context [Deprecated].
hipError_t hipDevicePrimaryCtxGetState(hipDevice_t dev, unsigned int *flags, int *active)
Get the state of the primary context [Deprecated].
hipError_t hipCtxGetCurrent(hipCtx_t *ctx)
Get the handle of the current/ default context [Deprecated].
hipError_t hipDevicePrimaryCtxRelease(hipDevice_t dev)
Release the primary context on the GPU.
hipError_t hipCtxSetCacheConfig(hipFuncCache_t cacheConfig)
Set L1/Shared cache partition [Deprecated].
hipError_t hipCtxSetCurrent(hipCtx_t ctx)
Set the passed context as current/default [Deprecated].
hipError_t hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags)
Enables direct access to memory allocations in a peer context [Deprecated].
hipError_t hipCtxGetDevice(hipDevice_t *device)
Get the handle of the device associated with current/default context [Deprecated].
hipError_t hipCtxDestroy(hipCtx_t ctx)
Destroy a HIP context [Deprecated].
hipError_t hipCtxPushCurrent(hipCtx_t ctx)
Push the context to be set as current/ default context [Deprecated].
hipError_t hipCtxGetCacheConfig(hipFuncCache_t *cacheConfig)
Get Cache configuration for a specific function [Deprecated].
hipError_t hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device)
Create a context and set it as current/default context.
hipError_t hipDevicePrimaryCtxRetain(hipCtx_t *pctx, hipDevice_t dev)
Retain the primary context on the GPU [Deprecated].
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, int *apiVersion)
Returns the approximate HIP api version.
hipError_t hipDevicePrimaryCtxReset(hipDevice_t dev)
Resets the primary context on the GPU [Deprecated].
hipError_t hipCtxSynchronize(void)
Blocks until the default context has completed all preceding requested tasks [Deprecated].
hipError_t hipCtxSetSharedMemConfig(hipSharedMemConfig config)
Set Shared memory bank configuration [Deprecated].
hipError_t hipCtxDisablePeerAccess(hipCtx_t peerCtx)
Disable direct access from current context's virtual address space to memory allocations physically l...
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 hipSetValidDevices(int *device_arr, int len)
Set a list of devices that can be used.
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.
hipMemcpyKind
Definition driver_types.h:376
hipPointer_attribute
Definition driver_types.h:517
struct hipArray * hipArray_t
Definition driver_types.h:76
void * hipDeviceptr_t
Definition driver_types.h:47
hipFunction_attribute
Definition driver_types.h:503
const struct hipArray * hipArray_const_t
Definition driver_types.h:77
hipArray_Format
Definition driver_types.h:81
hipResourceType
Definition driver_types.h:160
@ hipMemcpyDeviceToHost
Device-to-Host Copy.
Definition driver_types.h:379
@ hipMemcpyHostToDevice
Host-to-Device Copy.
Definition driver_types.h:378
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 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 hipEventRecord(hipEvent_t event, hipStream_t stream=NULL)
Record an event in the specified stream.
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:654
hipMemAllocationHandleType
Definition hip_runtime_api.h:981
hipGraphicsResource * hipGraphicsResource_t
Definition hip_runtime_api.h:1221
struct ihipCtx_t * hipCtx_t
Definition hip_runtime_api.h:609
#define __dparm(x)
Definition hip_runtime_api.h:590
struct ihipStream_t * hipStream_t
Definition hip_runtime_api.h:618
hipGraphInstantiateResult
Definition hip_runtime_api.h:1436
int hipDevice_t
Definition hip_runtime_api.h:611
hipAccessProperty
Definition hip_runtime_api.h:1296
hipGraphDependencyType
Definition hip_runtime_api.h:1652
hipMemRangeAttribute
Definition hip_runtime_api.h:860
#define hipMemAttachSingle
Definition hip_runtime_api.h:744
hipMemoryAdvise
Definition hip_runtime_api.h:827
#define hipArrayDefault
Definition hip_runtime_api.h:795
hipSharedMemConfig
Definition hip_runtime_api.h:1051
#define hipKernelNodeAttrValue
Definition hip_runtime_api.h:1340
hipComputeMode
Definition hip_runtime_api.h:551
struct ihipEvent_t * hipEvent_t
Definition hip_runtime_api.h:646
hipStreamCaptureMode
Definition hip_runtime_api.h:1372
hipDriverProcAddressQueryResult
Definition hip_runtime_api.h:545
#define HIP_DEPRECATED_MSG
Definition hip_runtime_api.h:585
hipLaunchAttributeID
Definition hip_runtime_api.h:1312
hipGraphNodeType
Definition hip_runtime_api.h:1245
hipExternalMemoryHandleType
Definition hip_runtime_api.h:1095
#define hipMemAttachGlobal
Definition hip_runtime_api.h:738
hipFuncAttribute
Definition hip_runtime_api.h:1034
hipExternalSemaphoreHandleType
Definition hip_runtime_api.h:1133
hipJitOption
Definition hip_runtime_api.h:1011
hipDeviceP2PAttr
Definition hip_runtime_api.h:612
hipGraphDebugDotFlags
Definition hip_runtime_api.h:1414
hipUserObjectRetainFlags
Definition hip_runtime_api.h:1399
enum __HIP_NODISCARD hipError_t hipError_t
Definition hip_runtime_api.h:290
#define hipHostAllocDefault
Definition hip_runtime_api.h:708
void(* hipHostFn_t)(void *userData)
Definition hip_runtime_api.h:1263
#define hipOccupancyDefault
Definition hip_runtime_api.h:800
hipStreamUpdateCaptureDependenciesFlags
Definition hip_runtime_api.h:1384
struct ihipGraph * hipGraph_t
Definition hip_runtime_api.h:1226
#define hipChooseDevice
Definition hip_runtime_api.h:93
hipMemHandleType
Definition hip_runtime_api.h:1515
hipFlushGPUDirectRDMAWritesOptions
Definition hip_runtime_api.h:558
hipFuncCache_t
Definition hip_runtime_api.h:1042
hipUserObjectFlags
Definition hip_runtime_api.h:1395
#define __HIP_NODISCARD
Definition hip_runtime_api.h:280
hipGraphMemAttributeType
Definition hip_runtime_api.h:1389
hipMemPoolAttr
Definition hip_runtime_api.h:876
#define hipDeviceProp_t
Definition hip_runtime_api.h:92
struct ihipModule_t * hipModule_t
Definition hip_runtime_api.h:627
struct hipUserObject * hipUserObject_t
Definition hip_runtime_api.h:1239
hipMemOperationType
Definition hip_runtime_api.h:1522
void * hipExternalSemaphore_t
Definition hip_runtime_api.h:1158
hipGraphicsRegisterFlags
Definition hip_runtime_api.h:1209
hipMemRangeCoherencyMode
Definition hip_runtime_api.h:848
hipMemAccessFlags
Definition hip_runtime_api.h:951
hipMemAllocationGranularity_flags
Definition hip_runtime_api.h:1507
struct hipGraphExec * hipGraphExec_t
Definition hip_runtime_api.h:1234
hipGraphExecUpdateResult
Definition hip_runtime_api.h:1357
struct ihipModuleSymbol_t * hipFunction_t
Definition hip_runtime_api.h:628
#define hipKernelNodeAttrID
Definition hip_runtime_api.h:1332
void * hipExternalMemory_t
Definition hip_runtime_api.h:1132
hipStreamCaptureStatus
Definition hip_runtime_api.h:1377
hipDeviceAttribute_t
Definition hip_runtime_api.h:410
hipGPUDirectRDMAWritesOrdering
Definition hip_runtime_api.h:563
#define hipGetDeviceProperties
Definition hip_runtime_api.h:91
#define hipHostMallocDefault
Definition hip_runtime_api.h:707
#define HIP_DEPRECATED(msg)
Definition hip_runtime_api.h:583
struct _hipGraphicsResource hipGraphicsResource
Definition hip_runtime_api.h:1219
hipMemAllocationType
Definition hip_runtime_api.h:969
struct hipGraphNode * hipGraphNode_t
Definition hip_runtime_api.h:1230
struct ihipMemGenericAllocationHandle * hipMemGenericAllocationHandle_t
Definition hip_runtime_api.h:1502
hipMemoryType
Definition hip_runtime_api.h:248
hipGraphInstantiateFlags
Definition hip_runtime_api.h:1403
hipMemLocationType
Definition hip_runtime_api.h:934
#define HIP_IPC_HANDLE_SIZE
Definition hip_runtime_api.h:620
struct ihipMemPoolHandle_t * hipMemPool_t
Definition hip_runtime_api.h:632
hipArraySparseSubresourceType
Definition hip_runtime_api.h:1530
@ hipLimitMallocHeapSize
Definition hip_runtime_api.h:660
@ hipLimitStackSize
Definition hip_runtime_api.h:655
@ hipLimitRange
Supported limit range.
Definition hip_runtime_api.h:662
@ hipLimitPrintfFifoSize
Definition hip_runtime_api.h:658
@ hipMemHandleTypeWin32
Allows a Win32 NT handle for exporting. (HANDLE)
Definition hip_runtime_api.h:984
@ hipMemHandleTypeWin32Kmt
Allows a Win32 KMT handle for exporting. (D3DKMT_HANDLE)
Definition hip_runtime_api.h:985
@ hipMemHandleTypeNone
Does not allow any export mechanism.
Definition hip_runtime_api.h:982
@ hipMemHandleTypePosixFileDescriptor
Allows a file descriptor for exporting. Permitted only on POSIX systems.
Definition hip_runtime_api.h:983
@ hipGraphInstantiateNodeOperationNotSupported
Definition hip_runtime_api.h:1442
@ hipGraphInstantiateMultipleDevicesNotSupported
Definition hip_runtime_api.h:1444
@ hipGraphInstantiateError
Definition hip_runtime_api.h:1438
@ hipGraphInstantiateInvalidStructure
Definition hip_runtime_api.h:1440
@ hipGraphInstantiateSuccess
Definition hip_runtime_api.h:1437
@ hipAccessPropertyNormal
Definition hip_runtime_api.h:1297
@ hipAccessPropertyPersisting
Definition hip_runtime_api.h:1299
@ hipAccessPropertyStreaming
Definition hip_runtime_api.h:1298
@ hipGraphDependencyTypeDefault
Definition hip_runtime_api.h:1653
@ hipGraphDependencyTypeProgrammatic
Definition hip_runtime_api.h:1654
@ hipMemRangeAttributeLastPrefetchLocation
prefetched
Definition hip_runtime_api.h:866
@ hipMemRangeAttributePreferredLocation
The preferred location of the range.
Definition hip_runtime_api.h:863
@ hipMemRangeAttributeAccessedBy
Definition hip_runtime_api.h:864
@ hipMemRangeAttributeReadMostly
Definition hip_runtime_api.h:861
@ hipMemRangeAttributeCoherencyMode
Definition hip_runtime_api.h:868
@ hipMemAdviseUnsetAccessedBy
Definition hip_runtime_api.h:836
@ hipMemAdviseUnsetCoarseGrain
Restores cache coherency policy back to fine-grain.
Definition hip_runtime_api.h:843
@ hipMemAdviseSetCoarseGrain
Definition hip_runtime_api.h:838
@ hipMemAdviseUnsetPreferredLocation
Clear the preferred location for the data.
Definition hip_runtime_api.h:833
@ hipMemAdviseSetAccessedBy
Definition hip_runtime_api.h:834
@ hipMemAdviseSetPreferredLocation
Definition hip_runtime_api.h:831
@ hipMemAdviseSetReadMostly
Definition hip_runtime_api.h:828
@ hipMemAdviseUnsetReadMostly
Undo the effect of hipMemAdviseSetReadMostly.
Definition hip_runtime_api.h:830
@ hipSharedMemBankSizeFourByte
Definition hip_runtime_api.h:1053
@ hipSharedMemBankSizeEightByte
Definition hip_runtime_api.h:1055
@ hipSharedMemBankSizeDefault
The compiler selects a device-specific value for the banking.
Definition hip_runtime_api.h:1052
@ hipComputeModeProhibited
Definition hip_runtime_api.h:554
@ hipComputeModeExclusive
Definition hip_runtime_api.h:553
@ hipComputeModeDefault
Definition hip_runtime_api.h:552
@ hipComputeModeExclusiveProcess
Definition hip_runtime_api.h:555
@ hipStreamCaptureModeRelaxed
Definition hip_runtime_api.h:1375
@ hipStreamCaptureModeThreadLocal
Definition hip_runtime_api.h:1374
@ hipStreamCaptureModeGlobal
Definition hip_runtime_api.h:1373
@ HIP_GET_PROC_ADDRESS_SYMBOL_NOT_FOUND
Definition hip_runtime_api.h:547
@ HIP_GET_PROC_ADDRESS_SUCCESS
Definition hip_runtime_api.h:546
@ HIP_GET_PROC_ADDRESS_VERSION_NOT_SUFFICIENT
Definition hip_runtime_api.h:548
@ hipLaunchAttributePriority
Definition hip_runtime_api.h:1315
@ hipLaunchAttributeAccessPolicyWindow
Definition hip_runtime_api.h:1313
@ hipLaunchAttributeCooperative
Definition hip_runtime_api.h:1314
@ hipGraphNodeTypeGraph
Node which executes an embedded graph.
Definition hip_runtime_api.h:1250
@ hipGraphNodeTypeMemset
Memset node.
Definition hip_runtime_api.h:1248
@ hipGraphNodeTypeEventRecord
External event record node.
Definition hip_runtime_api.h:1253
@ hipGraphNodeTypeExtSemaphoreSignal
External Semaphore signal node.
Definition hip_runtime_api.h:1254
@ hipGraphNodeTypeMemcpy
Memcpy node.
Definition hip_runtime_api.h:1247
@ hipGraphNodeTypeWaitEvent
External event wait node.
Definition hip_runtime_api.h:1252
@ hipGraphNodeTypeCount
Definition hip_runtime_api.h:1260
@ hipGraphNodeTypeKernel
GPU kernel node.
Definition hip_runtime_api.h:1246
@ hipGraphNodeTypeHost
Host (executable) node.
Definition hip_runtime_api.h:1249
@ hipGraphNodeTypeMemAlloc
Memory alloc node.
Definition hip_runtime_api.h:1256
@ hipGraphNodeTypeMemFree
Memory free node.
Definition hip_runtime_api.h:1257
@ hipGraphNodeTypeMemcpyFromSymbol
MemcpyFromSymbol node.
Definition hip_runtime_api.h:1258
@ hipGraphNodeTypeMemcpyToSymbol
MemcpyToSymbol node.
Definition hip_runtime_api.h:1259
@ hipGraphNodeTypeEmpty
Empty (no-op) node.
Definition hip_runtime_api.h:1251
@ hipGraphNodeTypeExtSemaphoreWait
External Semaphore wait node.
Definition hip_runtime_api.h:1255
@ hipExternalMemoryHandleTypeD3D11Resource
Definition hip_runtime_api.h:1101
@ hipExternalMemoryHandleTypeD3D12Resource
Definition hip_runtime_api.h:1100
@ hipExternalMemoryHandleTypeNvSciBuf
Definition hip_runtime_api.h:1103
@ hipExternalMemoryHandleTypeOpaqueFd
Definition hip_runtime_api.h:1096
@ hipExternalMemoryHandleTypeD3D12Heap
Definition hip_runtime_api.h:1099
@ hipExternalMemoryHandleTypeOpaqueWin32Kmt
Definition hip_runtime_api.h:1098
@ hipExternalMemoryHandleTypeOpaqueWin32
Definition hip_runtime_api.h:1097
@ hipExternalMemoryHandleTypeD3D11ResourceKmt
Definition hip_runtime_api.h:1102
@ hipFuncAttributePreferredSharedMemoryCarveout
Definition hip_runtime_api.h:1036
@ hipFuncAttributeMaxDynamicSharedMemorySize
Definition hip_runtime_api.h:1035
@ hipFuncAttributeMax
Definition hip_runtime_api.h:1037
@ hipExternalSemaphoreHandleTypeNvSciSync
Definition hip_runtime_api.h:1139
@ hipExternalSemaphoreHandleTypeKeyedMutexKmt
Definition hip_runtime_api.h:1141
@ hipExternalSemaphoreHandleTypeOpaqueWin32Kmt
Definition hip_runtime_api.h:1136
@ hipExternalSemaphoreHandleTypeKeyedMutex
Definition hip_runtime_api.h:1140
@ hipExternalSemaphoreHandleTypeD3D11Fence
Definition hip_runtime_api.h:1138
@ hipExternalSemaphoreHandleTypeTimelineSemaphoreWin32
Definition hip_runtime_api.h:1143
@ hipExternalSemaphoreHandleTypeOpaqueFd
Definition hip_runtime_api.h:1134
@ hipExternalSemaphoreHandleTypeOpaqueWin32
Definition hip_runtime_api.h:1135
@ hipExternalSemaphoreHandleTypeTimelineSemaphoreFd
Definition hip_runtime_api.h:1142
@ hipExternalSemaphoreHandleTypeD3D12Fence
Definition hip_runtime_api.h:1137
@ hipJitOptionCacheMode
Definition hip_runtime_api.h:1026
@ hipJitOptionFastCompile
Definition hip_runtime_api.h:1028
@ hipJitOptionInfoLogBuffer
Definition hip_runtime_api.h:1015
@ hipJitOptionErrorLogBuffer
Definition hip_runtime_api.h:1017
@ hipJitOptionTarget
Definition hip_runtime_api.h:1021
@ hipJitOptionThreadsPerBlock
Definition hip_runtime_api.h:1013
@ hipJitOptionNumOptions
Definition hip_runtime_api.h:1029
@ hipJitOptionGenerateLineInfo
Definition hip_runtime_api.h:1025
@ hipJitOptionOptimizationLevel
Definition hip_runtime_api.h:1019
@ hipJitOptionErrorLogBufferSizeBytes
Definition hip_runtime_api.h:1018
@ hipJitOptionWallTime
Definition hip_runtime_api.h:1014
@ hipJitOptionInfoLogBufferSizeBytes
Definition hip_runtime_api.h:1016
@ hipJitOptionTargetFromContext
Definition hip_runtime_api.h:1020
@ hipJitOptionGenerateDebugInfo
Definition hip_runtime_api.h:1023
@ hipJitOptionLogVerbose
Definition hip_runtime_api.h:1024
@ hipJitOptionMaxRegisters
Definition hip_runtime_api.h:1012
@ hipJitOptionSm3xOpt
Definition hip_runtime_api.h:1027
@ hipJitOptionFallbackStrategy
Definition hip_runtime_api.h:1022
@ hipDevP2PAttrAccessSupported
Definition hip_runtime_api.h:614
@ hipDevP2PAttrHipArrayAccessSupported
Definition hip_runtime_api.h:616
@ hipDevP2PAttrNativeAtomicSupported
Definition hip_runtime_api.h:615
@ hipDevP2PAttrPerformanceRank
Definition hip_runtime_api.h:613
@ hipGraphDebugDotFlagsKernelNodeAttributes
Definition hip_runtime_api.h:1427
@ hipGraphDebugDotFlagsMemsetNodeParams
Definition hip_runtime_api.h:1419
@ hipGraphDebugDotFlagsKernelNodeParams
Definition hip_runtime_api.h:1417
@ hipGraphDebugDotFlagsExtSemasWaitNodeParams
Definition hip_runtime_api.h:1425
@ hipGraphDebugDotFlagsHandles
Definition hip_runtime_api.h:1429
@ hipGraphDebugDotFlagsExtSemasSignalNodeParams
Definition hip_runtime_api.h:1423
@ hipGraphDebugDotFlagsHostNodeParams
Definition hip_runtime_api.h:1420
@ hipGraphDebugDotFlagsEventNodeParams
Definition hip_runtime_api.h:1421
@ hipGraphDebugDotFlagsVerbose
Definition hip_runtime_api.h:1415
@ hipGraphDebugDotFlagsMemcpyNodeParams
Definition hip_runtime_api.h:1418
@ hipGraphUserObjectMove
Add new reference or retain.
Definition hip_runtime_api.h:1400
@ hipStreamAddCaptureDependencies
Add new nodes to the dependency set.
Definition hip_runtime_api.h:1385
@ hipStreamSetCaptureDependencies
Replace the dependency set with the new nodes.
Definition hip_runtime_api.h:1386
@ hipMemHandleTypeGeneric
Generic handle type.
Definition hip_runtime_api.h:1516
@ hipFlushGPUDirectRDMAWritesOptionHost
Definition hip_runtime_api.h:559
@ hipFlushGPUDirectRDMAWritesOptionMemOps
Definition hip_runtime_api.h:560
@ hipFuncCachePreferNone
no preference for shared memory or L1 (default)
Definition hip_runtime_api.h:1043
@ hipFuncCachePreferEqual
prefer equal size L1 cache and shared memory
Definition hip_runtime_api.h:1046
@ hipFuncCachePreferL1
prefer larger L1 cache and smaller shared memory
Definition hip_runtime_api.h:1045
@ hipFuncCachePreferShared
prefer larger shared memory and smaller L1 cache
Definition hip_runtime_api.h:1044
@ hipUserObjectNoDestructorSync
Destructor execution is not synchronized.
Definition hip_runtime_api.h:1396
@ hipGraphMemAttrReservedMemHigh
High watermark of memory, in bytes, currently allocated for graphs.
Definition hip_runtime_api.h:1393
@ hipGraphMemAttrUsedMemCurrent
Amount of memory, in bytes, currently associated with graphs.
Definition hip_runtime_api.h:1390
@ hipGraphMemAttrUsedMemHigh
High watermark of memory, in bytes, associated with graphs since the last time.
Definition hip_runtime_api.h:1391
@ hipGraphMemAttrReservedMemCurrent
Amount of memory, in bytes, currently allocated for graphs.
Definition hip_runtime_api.h:1392
@ hipMemPoolAttrUsedMemCurrent
Definition hip_runtime_api.h:923
@ hipMemPoolAttrReservedMemHigh
Definition hip_runtime_api.h:918
@ hipMemPoolAttrReservedMemCurrent
Definition hip_runtime_api.h:912
@ hipMemPoolAttrReleaseThreshold
Definition hip_runtime_api.h:907
@ hipMemPoolAttrUsedMemHigh
Definition hip_runtime_api.h:929
@ hipMemPoolReuseAllowInternalDependencies
Definition hip_runtime_api.h:898
@ hipMemPoolReuseFollowEventDependencies
Definition hip_runtime_api.h:885
@ hipMemPoolReuseAllowOpportunistic
Definition hip_runtime_api.h:891
@ hipMemOperationTypeMap
Map operation.
Definition hip_runtime_api.h:1523
@ hipMemOperationTypeUnmap
Unmap operation.
Definition hip_runtime_api.h:1524
@ hipGraphicsRegisterFlagsReadOnly
HIP will not write to this registered resource.
Definition hip_runtime_api.h:1211
@ hipGraphicsRegisterFlagsTextureGather
HIP will perform texture gather operations on this registered resource.
Definition hip_runtime_api.h:1215
@ hipGraphicsRegisterFlagsWriteDiscard
HIP will only write and will not read from this registered resource.
Definition hip_runtime_api.h:1212
@ hipGraphicsRegisterFlagsNone
Definition hip_runtime_api.h:1210
@ hipGraphicsRegisterFlagsSurfaceLoadStore
HIP will bind this resource to a surface.
Definition hip_runtime_api.h:1214
@ hipMemRangeCoherencyModeFineGrain
Definition hip_runtime_api.h:849
@ hipMemRangeCoherencyModeIndeterminate
Definition hip_runtime_api.h:853
@ hipMemRangeCoherencyModeCoarseGrain
Definition hip_runtime_api.h:851
@ hipMemAccessFlagsProtRead
Set the address range read accessible.
Definition hip_runtime_api.h:953
@ hipMemAccessFlagsProtNone
Default, make the address range not accessible.
Definition hip_runtime_api.h:952
@ hipMemAccessFlagsProtReadWrite
Set the address range read-write accessible.
Definition hip_runtime_api.h:954
@ hipMemAllocationGranularityMinimum
Minimum granularity.
Definition hip_runtime_api.h:1508
@ hipMemAllocationGranularityRecommended
Recommended granularity for performance.
Definition hip_runtime_api.h:1509
@ hipGraphExecUpdateErrorNotSupported
The update failed because something about the node is not supported.
Definition hip_runtime_api.h:1367
@ hipGraphExecUpdateErrorNodeTypeChanged
The update failed because a node type changed.
Definition hip_runtime_api.h:1362
@ hipGraphExecUpdateErrorTopologyChanged
The update failed because the topology changed.
Definition hip_runtime_api.h:1361
@ hipGraphExecUpdateErrorUnsupportedFunctionChange
Definition hip_runtime_api.h:1369
@ hipGraphExecUpdateError
Definition hip_runtime_api.h:1359
@ hipGraphExecUpdateErrorFunctionChanged
The update failed because the function of a kernel node changed.
Definition hip_runtime_api.h:1363
@ hipGraphExecUpdateSuccess
The update succeeded.
Definition hip_runtime_api.h:1358
@ hipGraphExecUpdateErrorParametersChanged
The update failed because the parameters changed in a way that is not supported.
Definition hip_runtime_api.h:1365
@ hipStreamCaptureStatusInvalidated
Definition hip_runtime_api.h:1380
@ hipStreamCaptureStatusNone
Stream is not capturing.
Definition hip_runtime_api.h:1378
@ hipStreamCaptureStatusActive
Stream is actively capturing.
Definition hip_runtime_api.h:1379
@ hipDeviceAttributeDirectManagedMemAccessFromHost
Definition hip_runtime_api.h:428
@ hipDeviceAttributeSurfaceAlignment
Alignment requirement for surfaces.
Definition hip_runtime_api.h:498
@ hipDeviceAttributeMaxGridDimX
Max grid size in width.
Definition hip_runtime_api.h:445
@ hipDeviceAttributeMaxSurfaceCubemapLayered
Cuda only. Maximum dimension of Cubemap layered surface.
Definition hip_runtime_api.h:454
@ hipDeviceAttributeMaxSurface3D
Maximum dimension (width, height, depth) of 3D surface.
Definition hip_runtime_api.h:452
@ hipDeviceAttributeMaxPitch
Maximum pitch in bytes allowed by memory copies.
Definition hip_runtime_api.h:475
@ hipDeviceAttributeTccDriver
Cuda only. Whether device is a Tesla device using TCC driver.
Definition hip_runtime_api.h:499
@ hipDeviceAttributeHostNativeAtomicSupported
Link between the device and the host supports native atomic operations.
Definition hip_runtime_api.h:431
@ hipDeviceAttributePageableMemoryAccessUsesHostPageTables
Device accesses pageable memory via the host's page tables.
Definition hip_runtime_api.h:484
@ hipDeviceAttributeUnused5
Previously hipDeviceAttributeGcnArchName.
Definition hip_runtime_api.h:519
@ hipDeviceAttributeMaxBlockDimY
Max block size in height.
Definition hip_runtime_api.h:443
@ hipDeviceAttributeMaxSurfaceCubemap
Cuda only. Maximum dimensions of Cubemap surface.
Definition hip_runtime_api.h:453
@ hipDeviceAttributePageableMemoryAccess
Definition hip_runtime_api.h:482
@ hipDeviceAttributeClockRate
Peak clock frequency in kilohertz.
Definition hip_runtime_api.h:419
@ hipDeviceAttributeCudaCompatibleEnd
Definition hip_runtime_api.h:512
@ hipDeviceAttributeMaxTexture1DMipmap
Maximum size of 1D mipmapped texture.
Definition hip_runtime_api.h:459
@ hipDeviceAttributeComputeCapabilityMajor
Major compute capability version number.
Definition hip_runtime_api.h:439
@ hipDeviceAttributeGlobalL1CacheSupported
Device supports caching globals in L1.
Definition hip_runtime_api.h:430
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem
Definition hip_runtime_api.h:528
@ hipDeviceAttributeAccessPolicyMaxWindowSize
Cuda only. The maximum size of the window policy in bytes.
Definition hip_runtime_api.h:414
@ hipDeviceAttributeMaxTexture3DHeight
Maximum dimension height of 3D texture.
Definition hip_runtime_api.h:467
@ hipDeviceAttributeComputeCapabilityMinor
Minor compute capability version number.
Definition hip_runtime_api.h:478
@ hipDeviceAttributeMaxTextureCubemap
Maximum dimensions of Cubemap texture.
Definition hip_runtime_api.h:470
@ hipDeviceAttributeDeviceOverlap
Definition hip_runtime_api.h:426
@ hipDeviceAttributeMaxTexture2DLinear
Maximum dimensions (width, height, pitch) of 2D textures bound to pitched memory.
Definition hip_runtime_api.h:464
@ hipDeviceAttributeMaxSurface2D
Maximum dimension (width, height) of 2D surface.
Definition hip_runtime_api.h:450
@ hipDeviceAttributeMaxSurface1DLayered
Cuda only. Maximum dimensions of 1D layered surface.
Definition hip_runtime_api.h:449
@ hipDeviceAttributeHdpRegFlushCntl
Address of the HDP_REG_COHERENCY_FLUSH_CNTL register.
Definition hip_runtime_api.h:521
@ hipDeviceAttributeComputeMode
Compute mode that device is currently in.
Definition hip_runtime_api.h:420
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc
Definition hip_runtime_api.h:522
@ hipDeviceAttributeAsicRevision
Revision of the GPU in this device.
Definition hip_runtime_api.h:531
@ hipDeviceAttributeUnused4
Previously hipDeviceAttributeGcnArch.
Definition hip_runtime_api.h:518
@ hipDeviceAttributeCooperativeMultiDeviceLaunch
Support cooperative launch on multiple devices.
Definition hip_runtime_api.h:425
@ hipDeviceAttributeMaxTexture2DHeight
Maximum dimension hight of 2D texture.
Definition hip_runtime_api.h:461
@ hipDeviceAttributePersistingL2CacheMaxSize
Maximum l2 persisting lines capacity in bytes.
Definition hip_runtime_api.h:488
@ hipDeviceAttributeEccEnabled
Whether ECC support is enabled.
Definition hip_runtime_api.h:413
@ hipDeviceAttributeCanUseHostPointerForRegisteredMem
Definition hip_runtime_api.h:417
@ hipDeviceAttributePciBusId
PCI Bus ID.
Definition hip_runtime_api.h:485
@ hipDeviceAttributeL2CacheSize
Size of L2 cache in bytes. 0 if the device doesn't have L2 cache.
Definition hip_runtime_api.h:435
@ hipDeviceAttributeKernelExecTimeout
Run time limit for kernels executed on the device.
Definition hip_runtime_api.h:434
@ hipDeviceAttributeMaxThreadsDim
Maximum dimension of a block.
Definition hip_runtime_api.h:472
@ hipDeviceAttributeSingleToDoublePrecisionPerfRatio
Cuda only. Performance ratio of single precision to double precision.
Definition hip_runtime_api.h:496
@ hipDeviceAttributeMaxGridDimY
Max grid size in height.
Definition hip_runtime_api.h:446
@ hipDeviceAttributeMultiprocessorCount
Number of multiprocessors on the device.
Definition hip_runtime_api.h:480
@ hipDeviceAttributeAmdSpecificBegin
Definition hip_runtime_api.h:513
@ hipDeviceAttributeMaxRegistersPerMultiprocessor
32-bit registers available per block.
Definition hip_runtime_api.h:491
@ hipDeviceAttributeIsMultiGpuBoard
Multiple GPU devices.
Definition hip_runtime_api.h:433
@ hipDeviceAttributeSharedMemPerBlockOptin
Maximum shared memory per block usable by special opt in.
Definition hip_runtime_api.h:494
@ hipDeviceAttributeMaxSurface2DLayered
Cuda only. Maximum dimensions of 2D layered surface.
Definition hip_runtime_api.h:451
@ hipDeviceAttributeAmdSpecificEnd
Definition hip_runtime_api.h:540
@ hipDeviceAttributeMemoryClockRate
Peak memory clock frequency in kilohertz.
Definition hip_runtime_api.h:477
@ hipDeviceAttributeMaxGridDimZ
Max grid size in depth.
Definition hip_runtime_api.h:447
@ hipDeviceAttributeHdpMemFlushCntl
Address of the HDP_MEM_COHERENCY_FLUSH_CNTL register.
Definition hip_runtime_api.h:520
@ hipDeviceAttributeUnused2
Previously hipDeviceAttributeUuid.
Definition hip_runtime_api.h:505
@ hipDeviceAttributeFineGrainSupport
'1' if Device supports fine grain, '0' otherwise
Definition hip_runtime_api.h:537
@ hipDeviceAttributeCooperativeLaunch
Support cooperative launch.
Definition hip_runtime_api.h:424
@ hipDeviceAttributeUnifiedAddressing
Cuda only. An unified address space shared with the host.
Definition hip_runtime_api.h:504
@ hipDeviceAttributeAsyncEngineCount
Asynchronous engines number.
Definition hip_runtime_api.h:415
@ hipDeviceAttributeMultiGpuBoardGroupID
Unique ID of device group on the same multi-GPU board.
Definition hip_runtime_api.h:479
@ hipDeviceAttributeStreamPrioritiesSupported
Whether to support stream priorities.
Definition hip_runtime_api.h:497
@ hipDeviceAttributeMaxSharedMemoryPerBlock
Maximum shared memory available per block in bytes.
Definition hip_runtime_api.h:493
@ hipDeviceAttributeLocalL1CacheSupported
caching locals in L1 is supported
Definition hip_runtime_api.h:436
@ hipDeviceAttributeCanUseStreamWaitValue
Definition hip_runtime_api.h:532
@ hipDeviceAttributeMaxRegistersPerBlock
Definition hip_runtime_api.h:489
@ hipDeviceAttributeMaxThreadsPerBlock
Maximum number of threads per block.
Definition hip_runtime_api.h:473
@ hipDeviceAttributeMemoryBusWidth
Global memory bus width in bits.
Definition hip_runtime_api.h:476
@ hipDeviceAttributeMemoryPoolSupportedHandleTypes
Supported handle mask for HIP Stream Ordered Memory Allocator.
Definition hip_runtime_api.h:510
@ hipDeviceAttributeComputePreemptionSupported
Device supports Compute Preemption.
Definition hip_runtime_api.h:421
@ hipDeviceAttributeMaxSurface1D
Maximum size of 1D surface.
Definition hip_runtime_api.h:448
@ hipDeviceAttributeUnused1
Previously hipDeviceAttributeName.
Definition hip_runtime_api.h:481
@ hipDeviceAttributeMaxTexture3DAlt
Maximum dimensions of alternate 3D texture.
Definition hip_runtime_api.h:469
@ hipDeviceAttributeMaxTexture1DLinear
Definition hip_runtime_api.h:457
@ hipDeviceAttributeMaxTexture2DGather
Maximum dimensions of 2D texture if gather operations performed.
Definition hip_runtime_api.h:462
@ hipDeviceAttributeWallClockRate
Constant frequency of wall clock in kilohertz.
Definition hip_runtime_api.h:538
@ hipDeviceAttributePciDeviceId
PCI Device ID.
Definition hip_runtime_api.h:486
@ hipDeviceAttributeCanMapHostMemory
Whether host memory can be mapped into device address space.
Definition hip_runtime_api.h:416
@ hipDeviceAttributeMaxTexture1DWidth
Maximum size of 1D texture.
Definition hip_runtime_api.h:455
@ hipDeviceAttributeConcurrentManagedAccess
Device can coherently access managed memory concurrently with the CPU.
Definition hip_runtime_api.h:423
@ hipDeviceAttributeVendorSpecificBegin
Definition hip_runtime_api.h:541
@ hipDeviceAttributeManagedMemory
Device supports allocating managed memory on this system.
Definition hip_runtime_api.h:440
@ hipDeviceAttributeIntegrated
Device is integrated GPU.
Definition hip_runtime_api.h:432
@ hipDeviceAttributeMaxTexture2DLayered
Maximum dimensions of 2D layered texture.
Definition hip_runtime_api.h:463
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim
Definition hip_runtime_api.h:524
@ hipDeviceAttributeMaxTexture3DDepth
Maximum dimension depth of 3D texture.
Definition hip_runtime_api.h:468
@ hipDeviceAttributeImageSupport
'1' if Device supports image, '0' otherwise.
Definition hip_runtime_api.h:534
@ hipDeviceAttributeTotalGlobalMem
Global memory available on devicice.
Definition hip_runtime_api.h:503
@ hipDeviceAttributeMaxBlocksPerMultiProcessor
Max block size per multiprocessor.
Definition hip_runtime_api.h:441
@ hipDeviceAttributeIsLargeBar
Whether it is LargeBar.
Definition hip_runtime_api.h:530
@ hipDeviceAttributeMaxTexture2DWidth
Maximum dimension width of 2D texture.
Definition hip_runtime_api.h:460
@ hipDeviceAttributeMaxBlockDimX
Max block size in width.
Definition hip_runtime_api.h:442
@ hipDeviceAttributeMaxTexture3DWidth
Maximum dimension width of 3D texture.
Definition hip_runtime_api.h:466
@ hipDeviceAttributeUnused3
Previously hipDeviceAttributeArch.
Definition hip_runtime_api.h:516
@ hipDeviceAttributeTotalConstantMemory
Constant memory size in bytes.
Definition hip_runtime_api.h:502
@ hipDeviceAttributeTextureAlignment
Alignment requirement for textures.
Definition hip_runtime_api.h:500
@ hipDeviceAttributeMaxTexture1DLayered
Maximum dimensions of 1D layered texture.
Definition hip_runtime_api.h:456
@ hipDeviceAttributeMaxSharedMemoryPerMultiprocessor
Maximum Shared Memory PerMultiprocessor.
Definition hip_runtime_api.h:517
@ hipDeviceAttributeReservedSharedMemPerBlock
Shared memory reserved by CUDA driver per block.
Definition hip_runtime_api.h:492
@ hipDeviceAttributeCudaCompatibleBegin
Definition hip_runtime_api.h:411
@ hipDeviceAttributeConcurrentKernels
Device can possibly execute multiple kernels concurrently.
Definition hip_runtime_api.h:422
@ hipDeviceAttributeLuid
8-byte locally unique identifier in 8 bytes. Undefined on TCC and non-Windows platforms
Definition hip_runtime_api.h:437
@ hipDeviceAttributePciDomainID
PCI Domain ID.
Definition hip_runtime_api.h:487
@ hipDeviceAttributeMaxThreadsPerMultiProcessor
Maximum resident threads per multiprocessor.
Definition hip_runtime_api.h:474
@ hipDeviceAttributeTexturePitchAlignment
Pitch alignment requirement for 2D texture references bound to pitched memory;.
Definition hip_runtime_api.h:501
@ hipDeviceAttributePhysicalMultiProcessorCount
Definition hip_runtime_api.h:535
@ hipDeviceAttributeHostRegisterSupported
Can device support host memory registration via hipHostRegister.
Definition hip_runtime_api.h:509
@ hipDeviceAttributeSharedMemPerMultiprocessor
Shared memory available per multiprocessor.
Definition hip_runtime_api.h:495
@ hipDeviceAttributeLuidDeviceNodeMask
Luid device node mask. Undefined on TCC and non-Windows platforms.
Definition hip_runtime_api.h:438
@ hipDeviceAttributeMaxTextureCubemapLayered
Maximum dimensions of Cubemap layered texture.
Definition hip_runtime_api.h:471
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim
Definition hip_runtime_api.h:526
@ hipDeviceAttributeVirtualMemoryManagementSupported
Device supports HIP virtual memory management.
Definition hip_runtime_api.h:508
@ hipDeviceAttributeMemoryPoolsSupported
Device supports HIP Stream Ordered Memory Allocator.
Definition hip_runtime_api.h:507
@ hipDeviceAttributeClockInstructionRate
Frequency in khz of the timer used by the device-side "clock*".
Definition hip_runtime_api.h:515
@ hipDeviceAttributeMaxTexture2DMipmap
Maximum dimensions of 2D mipmapped texture.
Definition hip_runtime_api.h:465
@ hipDeviceAttributeMaxBlockDimZ
Max block size in depth.
Definition hip_runtime_api.h:444
@ hipDeviceAttributeWarpSize
Warp size in threads.
Definition hip_runtime_api.h:506
@ hipGPUDirectRDMAWritesOrderingOwner
Definition hip_runtime_api.h:565
@ hipGPUDirectRDMAWritesOrderingNone
Definition hip_runtime_api.h:564
@ hipGPUDirectRDMAWritesOrderingAllDevices
Definition hip_runtime_api.h:566
@ hipMemAllocationTypeMax
Definition hip_runtime_api.h:975
@ hipMemAllocationTypePinned
Definition hip_runtime_api.h:974
@ hipMemAllocationTypeInvalid
Definition hip_runtime_api.h:970
@ hipMemoryTypeDevice
Definition hip_runtime_api.h:251
@ hipMemoryTypeHost
Memory is physically located on host.
Definition hip_runtime_api.h:250
@ hipMemoryTypeUnregistered
Unregistered memory.
Definition hip_runtime_api.h:249
@ hipMemoryTypeArray
Definition hip_runtime_api.h:256
@ hipMemoryTypeManaged
Definition hip_runtime_api.h:253
@ hipMemoryTypeUnified
unified address space
Definition hip_runtime_api.h:258
@ hipGraphInstantiateFlagAutoFreeOnLaunch
Automatically free memory allocated in a graph before relaunching.
Definition hip_runtime_api.h:1404
@ 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:1410
@ hipGraphInstantiateFlagUpload
Automatically upload the graph after instantiation.
Definition hip_runtime_api.h:1406
@ hipGraphInstantiateFlagDeviceLaunch
Instantiate the graph to be launched from the device.
Definition hip_runtime_api.h:1408
@ hipMemLocationTypeInvalid
Definition hip_runtime_api.h:935
@ hipMemLocationTypeDevice
Device location, thus it's HIP device ID.
Definition hip_runtime_api.h:936
@ hipArraySparseSubresourceTypeSparseLevel
Sparse level.
Definition hip_runtime_api.h:1531
@ hipArraySparseSubresourceTypeMiptail
Miptail.
Definition hip_runtime_api.h:1532
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 to 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 graph's 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 of an 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 of a memcpy node in the given graphExec.
hipError_t hipGraphExecNodeSetParams(hipGraphExec_t graphExec, hipGraphNode_t node, hipGraphNodeParams *nodeParams)
Updates parameters of an executable graph's node.
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's 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 the specified 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 hipStreamBeginCaptureToGraph(hipStream_t stream, hipGraph_t graph, const hipGraphNode_t *dependencies, const hipGraphEdgeData *dependencyData, size_t numDependencies, hipStreamCaptureMode mode)
Begins graph capture on a stream to an existing graph.
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's 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 a graph's 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 reserved for graphs on a specific device and return it back to the 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 a 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 hipHostFree(void *ptr)
Free memory allocated by the hcc hip host memory allocation API This API performs an implicit hipDevi...
hipError_t hipMallocHost(void **ptr, size_t size)
Allocate pinned host memory [Deprecated].
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 [Deprecated].
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 [Deprecated].
hipError_t hipMemAllocHost(void **ptr, size_t size)
Allocate pinned host memory [Deprecated].
hipError_t hipMemcpyAtoA(hipArray_t dstArray, size_t dstOffset, hipArray_t srcArray, size_t srcOffset, size_t ByteCount)
Copies from one 1D array to another.
hipError_t hipHostAlloc(void **ptr, size_t size, unsigned int flags)
Allocate device accessible page locked host memory.
hipError_t hipMemcpy2DArrayToArray(hipArray_t dst, size_t wOffsetDst, size_t hOffsetDst, hipArray_const_t src, size_t wOffsetSrc, size_t hOffsetSrc, size_t width, size_t height, hipMemcpyKind kind)
Copies data between host and device.
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 hipMemcpyAtoHAsync(void *dstHost, hipArray_t srcArray, size_t srcOffset, size_t ByteCount, hipStream_t stream)
Copies from one 1D array to host memory.
hipError_t hipFreeHost(void *ptr)
Frees page-locked memory This API performs an implicit hipDeviceSynchronize() call....
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 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 hipMemcpyAtoD(hipDeviceptr_t dstDevice, hipArray_t srcArray, size_t srcOffset, size_t ByteCount)
Copies from one 1D array to device memory.
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 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 hipMemcpyHtoAAsync(hipArray_t dstArray, size_t dstOffset, const void *srcHost, size_t ByteCount, hipStream_t stream)
Copies from host memory to a 1D array.
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 pointer of requested HIP driver function.
hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, const void *ptr)
Returns 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 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 hipHostGetDevicePointer(void **devPtr, void *hstPtr, unsigned int flags)
Get Device pointer from Host Pointer allocated through hipHostMalloc.
hipError_t hipMemcpyDtoA(hipArray_t dstArray, size_t dstOffset, hipDeviceptr_t srcDevice, size_t ByteCount)
Copies from device memory to a 1D array.
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 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 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 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 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 hipGetFuncBySymbol(hipFunction_t *functionPtr, const void *symbolPtr)
Gets pointer to device entry function that matches entry function symbolPtr.
hipError_t hipModuleGetFunction(hipFunction_t *function, hipModule_t module, const char *kname)
Function with kname will be extracted if present in module.
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 [Deprecated] When using this API, start the profiler with pr...
hipError_t hipProfilerStop()
Stop recording of profiling information [Deprecated] When using this API, start the profiler with pro...
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:2611
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 [Deprecated].
hipError_t hipBindTextureToMipmappedArray(const textureReference *tex, hipMipmappedArray_const_t mipmappedArray, const hipChannelFormatDesc *desc)
Binds a mipmapped array to a texture [Deprecated].
hipError_t hipTexRefGetMipmapLevelClamp(float *pminMipmapLevelClamp, float *pmaxMipmapLevelClamp, const textureReference *texRef)
Gets the minimum and maximum mipmap level clamps for a texture reference [Deprecated].
hipError_t hipTexRefGetAddressMode(enum hipTextureAddressMode *pam, const textureReference *texRef, int dim)
Gets the address mode for a texture reference [Deprecated].
hipError_t hipTexRefGetFlags(unsigned int *pFlags, const textureReference *texRef)
Gets flags for a texture reference [Deprecated].
hipError_t hipTexRefSetAddress(size_t *ByteOffset, textureReference *texRef, hipDeviceptr_t dptr, size_t bytes)
Sets an bound address for a texture reference [Deprecated].
hipError_t hipTexRefSetFilterMode(textureReference *texRef, enum hipTextureFilterMode fm)
Set filter mode for a texture reference [Deprecated].
hipError_t hipTexRefSetMipmappedArray(textureReference *texRef, struct hipMipmappedArray *mipmappedArray, unsigned int Flags)
Binds mipmapped array to a texture reference [Deprecated].
hipError_t hipTexRefGetMipmapFilterMode(enum hipTextureFilterMode *pfm, const textureReference *texRef)
Gets the mipmap filter mode for a texture reference [Deprecated].
hipError_t hipGetTextureAlignmentOffset(size_t *offset, const textureReference *texref)
Get the offset of the alignment in a texture [Deprecated].
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 [Deprecated].
hipError_t hipTexRefGetMaxAnisotropy(int *pmaxAnsio, const textureReference *texRef)
Gets the maximum anisotropy for a texture reference [Deprecated].
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 [Deprecated].
hipError_t hipUnbindTexture(const textureReference *tex)
Unbinds a texture [Deprecated].
hipError_t hipTexRefGetBorderColor(float *pBorderColor, const textureReference *texRef)
Gets the border color used by a texture reference [Deprecated].
hipError_t hipTexRefSetFormat(textureReference *texRef, hipArray_Format fmt, int NumPackedComponents)
Set format for a texture reference [Deprecated].
hipError_t hipTexRefGetAddress(hipDeviceptr_t *dev_ptr, const textureReference *texRef)
Gets the address for a texture reference [Deprecated].
hipError_t hipTexRefGetArray(hipArray_t *pArray, const textureReference *texRef)
Gets the array bound to a texture reference [Deprecated].
hipError_t hipTexRefSetFlags(textureReference *texRef, unsigned int Flags)
Set flags for a texture reference [Deprecated].
hipError_t hipTexRefSetAddressMode(textureReference *texRef, int dim, enum hipTextureAddressMode am)
Sets address mode for a texture reference [Deprecated].
hipError_t hipTexRefGetMipMappedArray(hipMipmappedArray_t *pArray, const textureReference *texRef)
Gets the mipmapped array bound to a texture reference [Deprecated].
hipError_t hipTexRefSetMaxAnisotropy(textureReference *texRef, unsigned int maxAniso)
Sets the maximum anisotropy for a texture reference [Deprecated].
hipError_t hipTexRefSetMipmapLevelClamp(textureReference *texRef, float minMipMapLevelClamp, float maxMipMapLevelClamp)
Sets mipmap level clamp for a texture reference [Deprecated].
hipError_t hipTexRefSetBorderColor(textureReference *texRef, float *pBorderColor)
Sets border color for a texture reference [Deprecated].
hipError_t hipTexRefSetArray(textureReference *tex, hipArray_const_t array, unsigned int flags)
Binds an array as a texture reference [Deprecated].
hipError_t hipTexRefSetMipmapLevelBias(textureReference *texRef, float bias)
Sets mipmap level bias for a texture reference [Deprecated].
hipError_t hipTexRefGetMipmapLevelBias(float *pbias, const textureReference *texRef)
Gets the mipmap level bias for a texture reference [Deprecated].
hipError_t hipBindTextureToArray(const textureReference *tex, hipArray_const_t array, const hipChannelFormatDesc *desc)
Binds a memory area to a texture [Deprecated].
hipError_t hipGetTextureReference(const textureReference **texref, const void *symbol)
Gets the texture reference related with the symbol [Deprecated].
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 [Deprecated].
hipError_t hipTexRefSetMipmapFilterMode(textureReference *texRef, enum hipTextureFilterMode fm)
Sets mipmap filter mode for a texture reference [Deprecated].
hipError_t hipTexRefGetFormat(hipArray_Format *pFormat, int *pNumChannels, const textureReference *texRef)
Gets texture format for a texture reference [Deprecated].
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:350
hipErrorMemoryAllocation
Memory allocation error.
Definition hip_runtime_api.h:296
hipErrorNotFound
Not found.
Definition hip_runtime_api.h:345
hipErrorProfilerDisabled
Definition hip_runtime_api.h:301
hipErrorInvalidDevicePointer
Invalid Device Pointer.
Definition hip_runtime_api.h:308
hipErrorRuntimeMemory
Definition hip_runtime_api.h:397
hipErrorInvalidImage
Invalid image.
Definition hip_runtime_api.h:316
hipErrorPeerAccessUnsupported
Definition hip_runtime_api.h:333
hipErrorArrayIsMapped
Definition hip_runtime_api.h:323
hipErrorStreamCaptureIsolation
Definition hip_runtime_api.h:378
hipErrorInvalidKernelFile
In CUDA DRV, it is CUDA_ERROR_INVALID_PTX.
Definition hip_runtime_api.h:334
hipErrorNotMapped
Definition hip_runtime_api.h:327
hipErrorGraphExecUpdateFailure
Definition hip_runtime_api.h:391
hipErrorNotInitialized
Invalid not initialized.
Definition hip_runtime_api.h:297
hipErrorInvalidResourceHandle
Resource handle (hipEvent_t or hipStream_t) invalid.
Definition hip_runtime_api.h:343
hipErrorSharedObjectInitFailed
Failed to initialize shared object.
Definition hip_runtime_api.h:339
hipErrorInvalidPitchValue
Invalid pitch value.
Definition hip_runtime_api.h:306
hipErrorNoBinaryForGpu
Definition hip_runtime_api.h:325
hipErrorInvalidContext
Produced when input context is invalid.
Definition hip_runtime_api.h:317
hipErrorStreamCaptureUnsupported
Definition hip_runtime_api.h:369
hipErrorPeerAccessNotEnabled
Peer access was never enabled from the current device.
Definition hip_runtime_api.h:355
hipErrorOperatingSystem
Not the correct operating system.
Definition hip_runtime_api.h:340
hipErrorStreamCaptureUnjoined
Definition hip_runtime_api.h:376
hipErrorInitializationError
Definition hip_runtime_api.h:299
hipErrorNotMappedAsPointer
Definition hip_runtime_api.h:329
hipErrorPriorLaunchFailure
Definition hip_runtime_api.h:312
hipErrorContextIsDestroyed
The context is already destroyed.
Definition hip_runtime_api.h:357
hipErrorInvalidValue
Definition hip_runtime_api.h:292
hipErrorLaunchTimeOut
Timeout for the launch.
Definition hip_runtime_api.h:352
hipErrorUnmapFailed
Definition hip_runtime_api.h:322
hipErrorSetOnActiveProcess
The process is active.
Definition hip_runtime_api.h:356
hipErrorFileNotFound
the file is not found.
Definition hip_runtime_api.h:337
hipErrorLaunchFailure
An exception occurred on the device while executing a kernel.
Definition hip_runtime_api.h:363
hipErrorInvalidDevice
DeviceID must be in range from 0 to compute-devices.
Definition hip_runtime_api.h:315
hipErrorUnsupportedLimit
Unsupported limit.
Definition hip_runtime_api.h:331
hipErrorMapBufferObjectFailed
Produced when the IPC memory attach failed from ROCr.
Definition hip_runtime_api.h:321
hipErrorHostMemoryAlreadyRegistered
Definition hip_runtime_api.h:359
hipErrorMissingConfiguration
Definition hip_runtime_api.h:311
hipErrorSharedObjectSymbolNotFound
Definition hip_runtime_api.h:338
hipErrorECCNotCorrectable
Definition hip_runtime_api.h:330
hipErrorStreamCaptureWrongThread
Definition hip_runtime_api.h:387
hipErrorAssert
Produced when the kernel calls assert.
Definition hip_runtime_api.h:358
hipErrorContextAlreadyInUse
The context is already in use.
Definition hip_runtime_api.h:332
hipErrorNotReady
Definition hip_runtime_api.h:346
hipErrorInvalidSource
Invalid source.
Definition hip_runtime_api.h:336
hipErrorLaunchOutOfResources
Out of resources error.
Definition hip_runtime_api.h:351
hipErrorInvalidDeviceFunction
Invalid device function.
Definition hip_runtime_api.h:313
hipErrorCooperativeLaunchTooLarge
Definition hip_runtime_api.h:364
hipErrorAlreadyMapped
Definition hip_runtime_api.h:324
hipErrorProfilerNotInitialized
Definition hip_runtime_api.h:302
hipErrorProfilerAlreadyStarted
Definition hip_runtime_api.h:303
hipErrorNoDevice
Call to hipGetDeviceCount returned 0 devices.
Definition hip_runtime_api.h:314
@ 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:319
hipErrorStreamCaptureInvalidated
Definition hip_runtime_api.h:371
hipErrorProfilerAlreadyStopped
Definition hip_runtime_api.h:304
hipErrorDeinitialized
Deinitialized.
Definition hip_runtime_api.h:300
hipErrorPeerAccessAlreadyEnabled
Definition hip_runtime_api.h:353
hipErrorNotMappedAsArray
Definition hip_runtime_api.h:328
hipErrorNotSupported
Produced when the hip API is not supported/implemented.
Definition hip_runtime_api.h:368
hipErrorInvalidConfiguration
Invalide configuration.
Definition hip_runtime_api.h:305
hipErrorStreamCaptureImplicit
Definition hip_runtime_api.h:382
hipErrorStreamCaptureMerge
Definition hip_runtime_api.h:373
hipErrorInvalidGraphicsContext
Definition hip_runtime_api.h:335
hipErrorIllegalState
Resource required is not in a valid state to perform operation.
Definition hip_runtime_api.h:344
hipErrorOutOfMemory
out of memory range.
Definition hip_runtime_api.h:294
hipErrorInvalidSymbol
Invalid symbol.
Definition hip_runtime_api.h:307
hipSuccess
Successful completion.
Definition hip_runtime_api.h:291
hipErrorUnknown
Unknown error.
Definition hip_runtime_api.h:395
hipErrorInvalidHandle
Invalide handle.
Definition hip_runtime_api.h:341
hipErrorStreamCaptureUnmatched
The capture was not initiated in this stream.
Definition hip_runtime_api.h:375
hipErrorCapturedEvent
Definition hip_runtime_api.h:385
hipErrorAlreadyAcquired
Definition hip_runtime_api.h:326
hipErrorInsufficientDriver
Definition hip_runtime_api.h:310
hipErrorHostMemoryNotRegistered
Definition hip_runtime_api.h:361
hipErrorRuntimeOther
Definition hip_runtime_api.h:399
hipErrorContextAlreadyCurrent
Definition hip_runtime_api.h:318
hipErrorInvalidMemcpyDirection
Invalid memory copy direction.
Definition hip_runtime_api.h:309
Definition hip_runtime_api.h:599
hipError_t hip_init()
Definition driver_types.h:104
Definition driver_types.h:94
Definition driver_types.h:427
Definition hip_runtime_api.h:1345
size_t height
Number of rows.
Definition hip_runtime_api.h:1351
size_t pitch
Destination device pointer pitch. Unused if height equals 1.
Definition hip_runtime_api.h:1347
hipDeviceptr_t dst
Destination pointer on device.
Definition hip_runtime_api.h:1346
unsigned int value
Value of memset to be set.
Definition hip_runtime_api.h:1348
unsigned int elementSize
Element in bytes. Must be 1, 2, or 4.
Definition hip_runtime_api.h:1349
size_t width
Width of a row.
Definition hip_runtime_api.h:1350
Definition driver_types.h:315
Definition driver_types.h:361
Definition driver_types.h:191
Definition hip_runtime_api.h:1061
uint32_t y
y
Definition hip_runtime_api.h:1063
uint32_t z
z
Definition hip_runtime_api.h:1064
uint32_t x
x
Definition hip_runtime_api.h:1062
constexpr dim3(uint32_t _x=1, uint32_t _y=1, uint32_t _z=1)
Definition hip_runtime_api.h:1066
Definition driver_types.h:116
Definition hip_runtime_api.h:1301
hipAccessProperty hitProp
Definition hip_runtime_api.h:1303
hipAccessProperty missProp
Definition hip_runtime_api.h:1305
float hitRatio
Definition hip_runtime_api.h:1304
void * base_ptr
Definition hip_runtime_api.h:1302
size_t num_bytes
Definition hip_runtime_api.h:1306
Definition hip_runtime_api.h:1538
unsigned int level
For mipmapped arrays must be a valid mipmap level. For arrays must be zero.
Definition hip_runtime_api.h:1547
struct hipArrayMapInfo::@26::@28 sparseLevel
unsigned int flags
flags for future use, must be zero now.
Definition hip_runtime_api.h:1569
union hipArrayMapInfo::@25 resource
hipArraySparseSubresourceType subresourceType
Sparse subresource type.
Definition hip_runtime_api.h:1544
unsigned int extentDepth
Depth in elements.
Definition hip_runtime_api.h:1554
unsigned int offsetX
X offset in elements.
Definition hip_runtime_api.h:1549
hipArray_t array
Definition hip_runtime_api.h:1542
hipResourceType resourceType
Resource type.
Definition hip_runtime_api.h:1539
hipMemOperationType memOperationType
Memory operation type.
Definition hip_runtime_api.h:1562
unsigned int reserved[2]
Reserved for future use, must be zero now.
Definition hip_runtime_api.h:1570
unsigned int extentWidth
Width in elements.
Definition hip_runtime_api.h:1552
union hipArrayMapInfo::@26 subresource
unsigned int extentHeight
Height in elements.
Definition hip_runtime_api.h:1553
unsigned int offsetY
Y offset in elements.
Definition hip_runtime_api.h:1550
hipMemHandleType memHandleType
Memory handle type.
Definition hip_runtime_api.h:1563
struct hipArrayMapInfo::@26::@29 miptail
hipMemGenericAllocationHandle_t memHandle
Definition hip_runtime_api.h:1565
hipMipmappedArray mipmap
Definition hip_runtime_api.h:1541
unsigned int layer
For layered arrays must be a valid layer index. Otherwise, must be zero.
Definition hip_runtime_api.h:1548
unsigned int deviceBitMask
Device ordinal bit mask.
Definition hip_runtime_api.h:1568
unsigned long long size
Extent in bytes.
Definition hip_runtime_api.h:1559
unsigned long long offset
Offset within mip tail.
Definition hip_runtime_api.h:1558
unsigned int offsetZ
Z offset in elements.
Definition hip_runtime_api.h:1551
Definition driver_types.h:60
Definition hip_runtime_api.h:1585
hipGraph_t graph
Definition hip_runtime_api.h:1586
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:156
int ipcEventSupported
Device supports IPC events.
Definition hip_runtime_api.h:211
int computePreemptionSupported
Is compute preemption supported on the device.
Definition hip_runtime_api.h:182
int maxTexture1DLinear
Maximum size for 1D textures bound to linear memory.
Definition hip_runtime_api.h:135
int timelineSemaphoreInteropSupported
Indicates external timeline semaphore support.
Definition hip_runtime_api.h:201
int pciBusID
PCI Bus ID.
Definition hip_runtime_api.h:157
int maxTexture1D
Maximum number of elements in 1D images.
Definition hip_runtime_api.h:133
int memoryBusWidth
Global memory bus width in bits.
Definition hip_runtime_api.h:164
int maxTexture2DMipmap[2]
Maximum number of elements in 2D array mipmap of images.
Definition hip_runtime_api.h:137
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:167
int l2CacheSize
L2 cache size.
Definition hip_runtime_api.h:165
int deferredMappingHipArraySupported
Definition hip_runtime_api.h:209
int asyncEngineCount
Number of async engines.
Definition hip_runtime_api.h:161
int accessPolicyMaxWindowSize
Max value of access policy window.
Definition hip_runtime_api.h:195
size_t totalConstMem
Definition hip_runtime_api.h:114
int memoryPoolsSupported
Indicates if device supports hipMallocAsync and hipMemPool APIs.
Definition hip_runtime_api.h:202
int unifiedFunctionPointers
Indicates device supports unified function pointers.
Definition hip_runtime_api.h:213
int maxTexture2DGather[2]
Maximum 2D tex dimensions if gather has to be performed.
Definition hip_runtime_api.h:139
size_t memPitch
Definition hip_runtime_api.h:108
int gpuDirectRDMAWritesOrdering
value of hipGPUDirectRDMAWritesOrdering
Definition hip_runtime_api.h:206
hipUUID uuid
UUID of a device.
Definition hip_runtime_api.h:101
size_t sharedMemPerBlock
Size of shared memory per block (in bytes).
Definition hip_runtime_api.h:105
unsigned int gpuDirectRDMAFlushWritesOptions
Definition hip_runtime_api.h:204
size_t surfaceAlignment
Alignment requirement for surface.
Definition hip_runtime_api.h:154
int reserved[63]
CUDA Reserved.
Definition hip_runtime_api.h:214
int maxTexture2DLayered[3]
Maximum number of elements in 2D array images.
Definition hip_runtime_api.h:145
int streamPrioritiesSupported
Device supports stream priority.
Definition hip_runtime_api.h:168
int cooperativeMultiDeviceLaunch
Definition hip_runtime_api.h:186
int hostRegisterSupported
Device supports hipHostRegister.
Definition hip_runtime_api.h:197
int pageableMemoryAccess
Definition hip_runtime_api.h:178
char name[256]
Device name.
Definition hip_runtime_api.h:100
size_t textureAlignment
Alignment requirement for textures.
Definition hip_runtime_api.h:125
int globalL1CacheSupported
Indicates globals are cached in L1.
Definition hip_runtime_api.h:169
int hostNativeAtomicSupported
Link between host and device supports native atomics.
Definition hip_runtime_api.h:176
int maxSurfaceCubemapLayered[2]
Maximum cubemap layered surface size.
Definition hip_runtime_api.h:153
int maxTextureCubemapLayered[2]
Maximum cubemaps layered texture dims.
Definition hip_runtime_api.h:146
size_t sharedMemPerBlockOptin
Per device m ax shared mem per block usable by special opt in.
Definition hip_runtime_api.h:189
size_t sharedMemPerMultiprocessor
Amount of shared memory available per multiprocessor.
Definition hip_runtime_api.h:171
int singleToDoublePrecisionPerfRatio
Deprecated. CUDA only.
Definition hip_runtime_api.h:177
int maxSurface2D[2]
Maximum 2D surface size.
Definition hip_runtime_api.h:148
int memoryClockRate
Max global memory clock frequency in khz.
Definition hip_runtime_api.h:163
int maxTexture2DLinear[3]
Maximum 2D tex dimensions if tex are bound to pitched memory.
Definition hip_runtime_api.h:138
int sparseHipArraySupported
Indicates if device supports sparse hip arrays.
Definition hip_runtime_api.h:198
int clockInstructionRate
Definition hip_runtime_api.h:221
int localL1CacheSupported
Locals are cahced in L1.
Definition hip_runtime_api.h:170
int regsPerMultiprocessor
registers available per multiprocessor
Definition hip_runtime_api.h:172
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:136
int cooperativeLaunch
HIP device supports cooperative launch.
Definition hip_runtime_api.h:185
int maxTexture3D[3]
Definition hip_runtime_api.h:140
int directManagedMemAccessFromHost
Definition hip_runtime_api.h:192
int cooperativeMultiDeviceUnmatchedFunc
Definition hip_runtime_api.h:226
int deviceOverlap
Deprecated. Use asyncEngineCount instead.
Definition hip_runtime_api.h:127
int pageableMemoryAccessUsesHostPageTables
Definition hip_runtime_api.h:190
unsigned int * hdpRegFlushCntl
Addres of HDP_REG_COHERENCY_FLUSH_CNTL register.
Definition hip_runtime_api.h:225
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:162
int multiGpuBoardGroupID
Unique identifier for a group of devices on same multiboard GPU.
Definition hip_runtime_api.h:175
int isMultiGpuBoard
1 if device is on a multi-GPU board, 0 if not.
Definition hip_runtime_api.h:174
int canUseHostPointerForRegisteredMem
Definition hip_runtime_api.h:183
int maxTexture1DLayered[2]
Maximum number of elements in 1D array images.
Definition hip_runtime_api.h:144
int pciDomainID
PCI Domain ID.
Definition hip_runtime_api.h:159
size_t maxSharedMemoryPerMultiProcessor
Maximum Shared Memory Per CU. HIP Only.
Definition hip_runtime_api.h:220
int maxTextureCubemap
Maximum cubemap texture dims.
Definition hip_runtime_api.h:143
int hipReserved[32]
Reserved for adding new entries for HIP/CUDA.
Definition hip_runtime_api.h:216
int cooperativeMultiDeviceUnmatchedGridDim
Definition hip_runtime_api.h:229
int gpuDirectRDMASupported
Indicates device support of RDMA APIs.
Definition hip_runtime_api.h:203
int minor
Definition hip_runtime_api.h:120
char gcnArchName[256]
AMD GCN Arch Name. HIP Only.
Definition hip_runtime_api.h:219
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:129
unsigned int memoryPoolSupportedHandleTypes
Bitmask of handle types support with mempool based IPC.
Definition hip_runtime_api.h:208
unsigned int * hdpMemFlushCntl
Addres of HDP_MEM_COHERENCY_FLUSH_CNTL register.
Definition hip_runtime_api.h:224
int concurrentManagedAccess
Definition hip_runtime_api.h:180
int integrated
APU vs dGPU.
Definition hip_runtime_api.h:130
int canMapHostMemory
Check whether HIP can map host memory.
Definition hip_runtime_api.h:131
size_t reservedSharedMemPerBlock
Shared memory reserved by driver per block.
Definition hip_runtime_api.h:196
int maxSurfaceCubemap
Maximum cubemap surface size.
Definition hip_runtime_api.h:152
int maxSurface3D[3]
Maximum 3D surface size.
Definition hip_runtime_api.h:149
int asicRevision
Revision of the GPU in this device.
Definition hip_runtime_api.h:239
size_t totalGlobalMem
Size of global memory region (in bytes).
Definition hip_runtime_api.h:104
int cooperativeMultiDeviceUnmatchedBlockDim
Definition hip_runtime_api.h:232
int maxSurface1DLayered[2]
Maximum 1D layered surface size.
Definition hip_runtime_api.h:150
int persistingL2CacheMaxSize
Device's max L2 persisting lines in bytes.
Definition hip_runtime_api.h:166
int maxSurface1D
Maximum 1D surface size.
Definition hip_runtime_api.h:147
int concurrentKernels
Device can possibly execute multiple kernels concurrently.
Definition hip_runtime_api.h:155
int isLargeBar
1: if it is a large PCI bar device, else 0
Definition hip_runtime_api.h:238
int clusterLaunch
Device supports cluster launch.
Definition hip_runtime_api.h:212
int maxTexture1DMipmap
Maximum 1D mipmap texture size.
Definition hip_runtime_api.h:134
int multiProcessorCount
Number of multi-processors (compute units).
Definition hip_runtime_api.h:128
int maxTexture3DAlt[3]
Maximum alternate 3D texture dims.
Definition hip_runtime_api.h:142
int maxGridSize[3]
Max grid dimensions (XYZ).
Definition hip_runtime_api.h:112
int pciDeviceID
PCI Device ID.
Definition hip_runtime_api.h:158
int maxBlocksPerMultiProcessor
Max number of blocks on CU.
Definition hip_runtime_api.h:194
int computeMode
Compute mode.
Definition hip_runtime_api.h:132
int maxSurface2DLayered[3]
Maximum 2D layared surface size.
Definition hip_runtime_api.h:151
int major
Definition hip_runtime_api.h:116
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:160
unsigned int luidDeviceNodeMask
LUID node mask.
Definition hip_runtime_api.h:103
int hostRegisterReadOnlySupported
Definition hip_runtime_api.h:199
int cooperativeMultiDeviceUnmatchedSharedMem
Definition hip_runtime_api.h:235
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:223
int managedMemory
Device supports allocating managed memory on this system.
Definition hip_runtime_api.h:173
size_t texturePitchAlignment
Pitch alignment requirement for texture references bound to.
Definition hip_runtime_api.h:126
Definition hip_runtime_api.h:1600
hipEvent_t event
The event to be recorded when node executes.
Definition hip_runtime_api.h:1601
Definition hip_runtime_api.h:1593
hipEvent_t event
Event to wait on.
Definition hip_runtime_api.h:1594
Definition driver_types.h:397
Definition hip_runtime_api.h:1119
unsigned int flags
Definition hip_runtime_api.h:1122
unsigned long long offset
Definition hip_runtime_api.h:1120
unsigned long long size
Definition hip_runtime_api.h:1121
Definition hip_runtime_api.h:1105
unsigned int flags
Definition hip_runtime_api.h:1116
const void * name
Definition hip_runtime_api.h:1111
int fd
Definition hip_runtime_api.h:1108
unsigned long long size
Definition hip_runtime_api.h:1115
hipExternalMemoryHandleType type
Definition hip_runtime_api.h:1106
const void * nvSciBufObject
Definition hip_runtime_api.h:1113
void * handle
Definition hip_runtime_api.h:1110
Definition hip_runtime_api.h:1125
hipExtent extent
Definition hip_runtime_api.h:1128
unsigned int numLevels
Definition hip_runtime_api.h:1130
unsigned int flags
Definition hip_runtime_api.h:1129
unsigned long long offset
Definition hip_runtime_api.h:1126
hipChannelFormatDesc formatDesc
Definition hip_runtime_api.h:1127
Definition hip_runtime_api.h:1145
unsigned int flags
Definition hip_runtime_api.h:1155
const void * name
Definition hip_runtime_api.h:1151
const void * NvSciSyncObj
Definition hip_runtime_api.h:1153
hipExternalSemaphoreHandleType type
Definition hip_runtime_api.h:1146
void * handle
Definition hip_runtime_api.h:1150
int fd
Definition hip_runtime_api.h:1148
Definition hip_runtime_api.h:1478
const hipExternalSemaphoreSignalParams * paramsArray
Total number of handles and parameters contained in extSemArray and paramsArray.
Definition hip_runtime_api.h:1482
hipExternalSemaphore_t * extSemArray
< Array containing external semaphore handles.
Definition hip_runtime_api.h:1480
unsigned int numExtSems
Definition hip_runtime_api.h:1484
Definition hip_runtime_api.h:1159
unsigned long long reserved
Definition hip_runtime_api.h:1166
unsigned long long value
Definition hip_runtime_api.h:1162
void * fence
Definition hip_runtime_api.h:1165
unsigned int flags
Definition hip_runtime_api.h:1173
unsigned long long key
Definition hip_runtime_api.h:1169
Definition hip_runtime_api.h:1490
unsigned int numExtSems
Definition hip_runtime_api.h:1496
const hipExternalSemaphoreWaitParams * paramsArray
Total number of handles and parameters contained in extSemArray and paramsArray.
Definition hip_runtime_api.h:1494
hipExternalSemaphore_t * extSemArray
< Array containing external semaphore handles.
Definition hip_runtime_api.h:1492
Definition hip_runtime_api.h:1179
unsigned long long value
Definition hip_runtime_api.h:1182
void * fence
Definition hip_runtime_api.h:1185
unsigned int timeoutMs
Definition hip_runtime_api.h:1190
unsigned long long key
Definition hip_runtime_api.h:1189
unsigned int flags
Definition hip_runtime_api.h:1194
unsigned long long reserved
Definition hip_runtime_api.h:1186
Definition hip_runtime_api.h:634
int cacheModeCA
Definition hip_runtime_api.h:636
int binaryVersion
Definition hip_runtime_api.h:635
size_t constSizeBytes
Definition hip_runtime_api.h:637
int preferredShmemCarveout
Definition hip_runtime_api.h:642
size_t sharedSizeBytes
Definition hip_runtime_api.h:644
int maxDynamicSharedSizeBytes
Definition hip_runtime_api.h:639
int ptxVersion
Definition hip_runtime_api.h:643
int numRegs
Definition hip_runtime_api.h:641
size_t localSizeBytes
Definition hip_runtime_api.h:638
int maxThreadsPerBlock
Definition hip_runtime_api.h:640
Definition hip_runtime_api.h:1083
unsigned int gridDimX
Width(X) of grid in blocks.
Definition hip_runtime_api.h:1085
unsigned int blockDimX
X dimension of each thread block.
Definition hip_runtime_api.h:1088
hipFunction_t function
Kernel to launch.
Definition hip_runtime_api.h:1084
hipStream_t hStream
Stream identifier.
Definition hip_runtime_api.h:1092
unsigned int blockDimY
Y dimension of each thread block.
Definition hip_runtime_api.h:1089
unsigned int gridDimY
Height(Y) of grid in blocks.
Definition hip_runtime_api.h:1086
unsigned int gridDimZ
Depth(Z) of grid in blocks.
Definition hip_runtime_api.h:1087
unsigned int sharedMemBytes
Shared memory.
Definition hip_runtime_api.h:1091
unsigned int blockDimZ
Z dimension of each thread block.
Definition hip_runtime_api.h:1090
void ** kernelParams
Kernel parameters.
Definition hip_runtime_api.h:1093
Definition hip_runtime_api.h:1657
unsigned char to_port
Currently no node types define non-zero ports. This field must be set to zero.
Definition hip_runtime_api.h:1668
unsigned char reserved[5]
These bytes are unused and must be zeroed.
Definition hip_runtime_api.h:1666
unsigned char type
This should be populated with a value from hipGraphDependencyType.
Definition hip_runtime_api.h:1669
unsigned char from_port
Definition hip_runtime_api.h:1659
Definition hip_runtime_api.h:1451
hipGraphInstantiateResult result_out
Definition hip_runtime_api.h:1454
hipStream_t uploadStream
Definition hip_runtime_api.h:1456
hipGraphNode_t errNode_out
Definition hip_runtime_api.h:1452
unsigned long long flags
Definition hip_runtime_api.h:1453
Definition hip_runtime_api.h:1614
hipGraphNodeType type
Definition hip_runtime_api.h:1615
int reserved0[3]
Definition hip_runtime_api.h:1616
hipMemAllocNodeParams alloc
Definition hip_runtime_api.h:1628
long long reserved1[29]
Definition hip_runtime_api.h:1618
hipEventRecordNodeParams eventRecord
Definition hip_runtime_api.h:1625
hipExternalSemaphoreSignalNodeParams extSemSignal
Definition hip_runtime_api.h:1626
hipMemFreeNodeParams free
Definition hip_runtime_api.h:1629
hipChildGraphNodeParams graph
Definition hip_runtime_api.h:1623
hipExternalSemaphoreWaitNodeParams extSemWait
Definition hip_runtime_api.h:1627
hipMemsetParams memset
Definition hip_runtime_api.h:1621
hipHostNodeParams host
Definition hip_runtime_api.h:1622
long long reserved2
Definition hip_runtime_api.h:1632
hipKernelNodeParams kernel
Definition hip_runtime_api.h:1619
hipEventWaitNodeParams eventWait
Definition hip_runtime_api.h:1624
hipMemcpyNodeParams memcpy
Definition hip_runtime_api.h:1620
Definition hip_runtime_api.h:1264
hipHostFn_t fn
Definition hip_runtime_api.h:1265
void * userData
Definition hip_runtime_api.h:1266
Definition hip_runtime_api.h:624
Definition hip_runtime_api.h:621
Definition hip_runtime_api.h:1268
dim3 gridDim
Definition hip_runtime_api.h:1272
unsigned int sharedMemBytes
Definition hip_runtime_api.h:1274
dim3 blockDim
Definition hip_runtime_api.h:1269
void ** kernelParams
Definition hip_runtime_api.h:1273
void ** extra
Definition hip_runtime_api.h:1270
void * func
Definition hip_runtime_api.h:1271
Definition hip_runtime_api.h:1072
size_t sharedMem
Shared memory.
Definition hip_runtime_api.h:1077
void ** args
Arguments.
Definition hip_runtime_api.h:1076
dim3 blockDim
Block dimensions.
Definition hip_runtime_api.h:1075
dim3 gridDim
Grid dimensions.
Definition hip_runtime_api.h:1074
void * func
Device function symbol.
Definition hip_runtime_api.h:1073
hipStream_t stream
Stream identifier.
Definition hip_runtime_api.h:1078
Definition hip_runtime_api.h:962
hipMemAccessFlags flags
Accessibility flags to set.
Definition hip_runtime_api.h:964
hipMemLocation location
Location on which the accessibility has to change.
Definition hip_runtime_api.h:963
Definition hip_runtime_api.h:1285
const hipMemAccessDesc * accessDescs
The number of memory access descriptors.
Definition hip_runtime_api.h:1288
size_t bytesize
The size of the requested allocation in bytes.
Definition hip_runtime_api.h:1291
hipMemPoolProps poolProps
Definition hip_runtime_api.h:1286
size_t accessDescCount
Definition hip_runtime_api.h:1289
void * dptr
Returned device address of the allocation.
Definition hip_runtime_api.h:1292
Definition hip_runtime_api.h:1463
void * win32HandleMetaData
Metadata for Win32 handles.
Definition hip_runtime_api.h:1467
hipMemAllocationType type
Memory allocation type.
Definition hip_runtime_api.h:1464
unsigned char gpuDirectRDMACapable
RDMA capable.
Definition hip_runtime_api.h:1470
struct hipMemAllocationProp::@24 allocFlags
unsigned short usage
Usage.
Definition hip_runtime_api.h:1471
hipMemAllocationHandleType requestedHandleType
Requested handle type.
Definition hip_runtime_api.h:1465
hipMemLocation location
Memory location.
Definition hip_runtime_api.h:1466
unsigned char compressionType
Compression type.
Definition hip_runtime_api.h:1469
Definition hip_runtime_api.h:1607
void * dptr
the pointer to be freed
Definition hip_runtime_api.h:1608
Definition hip_runtime_api.h:943
int id
Identifier for the provided location type hipMemLocationType.
Definition hip_runtime_api.h:945
hipMemLocationType type
Specifies the location type, which describes the meaning of id.
Definition hip_runtime_api.h:944
Definition hip_runtime_api.h:990
size_t maxSize
Maximum pool size. When set to 0, defaults to a system dependent value.
Definition hip_runtime_api.h:998
unsigned char reserved[56]
Reserved for future use, must be 0.
Definition hip_runtime_api.h:999
hipMemLocation location
Location where allocations should reside.
Definition hip_runtime_api.h:993
hipMemAllocationHandleType handleTypes
Handle types that will be supported by allocations from the pool.
Definition hip_runtime_api.h:992
hipMemAllocationType allocType
Allocation type. Currently must be specified as hipMemAllocationTypePinned.
Definition hip_runtime_api.h:991
void * win32SecurityAttributes
Definition hip_runtime_api.h:997
Definition hip_runtime_api.h:1004
unsigned char reserved[64]
Definition hip_runtime_api.h:1005
Definition driver_types.h:414
Definition hip_runtime_api.h:1576
int reserved[3]
Must be zero.
Definition hip_runtime_api.h:1578
int flags
Must be zero.
Definition hip_runtime_api.h:1577
hipMemcpy3DParms copyParams
Params set for the memory copy.
Definition hip_runtime_api.h:1579
Definition hip_runtime_api.h:1276
void * dst
Definition hip_runtime_api.h:1277
unsigned int value
Definition hip_runtime_api.h:1281
unsigned int elementSize
Definition hip_runtime_api.h:1278
size_t width
Definition hip_runtime_api.h:1282
size_t pitch
Definition hip_runtime_api.h:1280
size_t height
Definition hip_runtime_api.h:1279
Definition driver_types.h:138
Definition driver_types.h:388
Definition hip_runtime_api.h:265
int device
Definition hip_runtime_api.h:267
void * hostPointer
Definition hip_runtime_api.h:269
enum hipMemoryType type
Definition hip_runtime_api.h:266
int isManaged
Definition hip_runtime_api.h:270
void * devicePointer
Definition hip_runtime_api.h:268
unsigned allocationFlags
Definition hip_runtime_api.h:271
Definition driver_types.h:287
Definition driver_types.h:347
Definition texture_types.h:117
Definition hip_runtime_api.h:84
Definition texture_types.h:148
Definition texture_types.h:96
struct hipChannelFormatDesc channelDesc
Definition texture_types.h:101
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:1321
int priority
Definition hip_runtime_api.h:1325
int cooperative
Definition hip_runtime_api.h:1324
hipAccessPolicyWindow accessPolicyWindow
Definition hip_runtime_api.h:1322