HIP: Heterogenous-computing Interface for Portability
hip_runtime_api.h
Go to the documentation of this file.
1 /*
2 Copyright (c) 2015 - 2021 Advanced Micro Devices, Inc. All rights reserved.
3 
4 Permission is hereby granted, free of charge, to any person obtaining a copy
5 of this software and associated documentation files (the "Software"), to deal
6 in the Software without restriction, including without limitation the rights
7 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8 copies of the Software, and to permit persons to whom the Software is
9 furnished to do so, subject to the following conditions:
10 
11 The above copyright notice and this permission notice shall be included in
12 all copies or substantial portions of the Software.
13 
14 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18 LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20 THE SOFTWARE.
21 */
22 
30 #ifndef HIP_INCLUDE_HIP_HIP_RUNTIME_API_H
31 #define HIP_INCLUDE_HIP_HIP_RUNTIME_API_H
32 
33 
34 #include <string.h> // for getDeviceProp
35 #include <hip/hip_version.h>
36 #include <hip/hip_common.h>
37 
38 enum {
39  HIP_SUCCESS = 0,
40  HIP_ERROR_INVALID_VALUE,
41  HIP_ERROR_NOT_INITIALIZED,
42  HIP_ERROR_LAUNCH_OUT_OF_RESOURCES
43 };
44 
45 typedef struct {
46  // 32-bit Atomics
47  unsigned hasGlobalInt32Atomics : 1;
48  unsigned hasGlobalFloatAtomicExch : 1;
49  unsigned hasSharedInt32Atomics : 1;
50  unsigned hasSharedFloatAtomicExch : 1;
51  unsigned hasFloatAtomicAdd : 1;
52 
53  // 64-bit Atomics
54  unsigned hasGlobalInt64Atomics : 1;
55  unsigned hasSharedInt64Atomics : 1;
56 
57  // Doubles
58  unsigned hasDoubles : 1;
59 
60  // Warp cross-lane operations
61  unsigned hasWarpVote : 1;
62  unsigned hasWarpBallot : 1;
63  unsigned hasWarpShuffle : 1;
64  unsigned hasFunnelShift : 1;
65 
66  // Sync
67  unsigned hasThreadFenceSystem : 1;
68  unsigned hasSyncThreadsExt : 1;
69 
70  // Misc
71  unsigned hasSurfaceFuncs : 1;
72  unsigned has3dGrid : 1;
73  unsigned hasDynamicParallelism : 1;
75 
76 
77 //---
78 // Common headers for both NVCC and HCC paths:
79 
84 typedef struct hipDeviceProp_t {
85  char name[256];
86  size_t totalGlobalMem;
89  int warpSize;
91  int maxThreadsDim[3];
92  int maxGridSize[3];
93  int clockRate;
96  size_t totalConstMem;
97  int major;
98  int minor;
101  int multiProcessorCount;
112  int pciBusID;
117  int gcnArch;
118  char gcnArchName[256];
124  int maxTexture2D[2];
125  int maxTexture3D[3];
126  unsigned int* hdpMemFlushCntl;
127  unsigned int* hdpRegFlushCntl;
128  size_t memPitch;
133  int tccDriver;
141  int isLargeBar;
151 
152 
156 typedef enum hipMemoryType {
164 
165 
169 typedef struct hipPointerAttribute_t {
170  enum hipMemoryType memoryType;
171  int device;
172  void* devicePointer;
173  void* hostPointer;
174  int isManaged;
175  unsigned allocationFlags; /* flags specified when memory was allocated*/
176  /* peers? */
178 
179 
180 // hack to get these to show up in Doxygen:
187 // Ignoring error-code return values from hip APIs is discouraged. On C++17,
188 // we can make that yield a warning
189 #if __cplusplus >= 201703L
190 #define __HIP_NODISCARD [[nodiscard]]
191 #else
192 #define __HIP_NODISCARD
193 #endif
194 
195 /*
196  * @brief hipError_t
197  * @enum
198  * @ingroup Enumerations
199  */
200 // Developer note - when updating these, update the hipErrorName and hipErrorString functions in
201 // NVCC and HCC paths Also update the hipCUDAErrorTohipError function in NVCC path.
202 
203 typedef enum __HIP_NODISCARD hipError_t {
206  hipErrorOutOfMemory = 2,
208  // Deprecated
210  hipErrorNotInitialized = 3,
211  // Deprecated
212  hipErrorInitializationError = 3,
213  hipErrorDeinitialized = 4,
214  hipErrorProfilerDisabled = 5,
215  hipErrorProfilerNotInitialized = 6,
216  hipErrorProfilerAlreadyStarted = 7,
217  hipErrorProfilerAlreadyStopped = 8,
218  hipErrorInvalidConfiguration = 9,
219  hipErrorInvalidPitchValue = 12,
220  hipErrorInvalidSymbol = 13,
223  hipErrorInsufficientDriver = 35,
224  hipErrorMissingConfiguration = 52,
225  hipErrorPriorLaunchFailure = 53,
226  hipErrorInvalidDeviceFunction = 98,
229  hipErrorInvalidImage = 200,
231  hipErrorContextAlreadyCurrent = 202,
232  hipErrorMapFailed = 205,
233  // Deprecated
235  hipErrorUnmapFailed = 206,
236  hipErrorArrayIsMapped = 207,
237  hipErrorAlreadyMapped = 208,
238  hipErrorNoBinaryForGpu = 209,
239  hipErrorAlreadyAcquired = 210,
240  hipErrorNotMapped = 211,
241  hipErrorNotMappedAsArray = 212,
242  hipErrorNotMappedAsPointer = 213,
243  hipErrorECCNotCorrectable = 214,
244  hipErrorUnsupportedLimit = 215,
245  hipErrorContextAlreadyInUse = 216,
246  hipErrorPeerAccessUnsupported = 217,
248  hipErrorInvalidGraphicsContext = 219,
249  hipErrorInvalidSource = 300,
250  hipErrorFileNotFound = 301,
251  hipErrorSharedObjectSymbolNotFound = 302,
252  hipErrorSharedObjectInitFailed = 303,
253  hipErrorOperatingSystem = 304,
254  hipErrorInvalidHandle = 400,
255  // Deprecated
257  hipErrorNotFound = 500,
259  hipErrorIllegalAddress = 700,
264  hipErrorLaunchTimeOut = 702,
266  704,
268  705,
269  hipErrorSetOnActiveProcess = 708,
270  hipErrorContextIsDestroyed = 709,
273  712,
275  713,
277  719,
279  720,
280  hipErrorNotSupported = 801,
297  hipErrorCapturedEvent = 907,
302  hipErrorUnknown = 999, //< Unknown error.
306  // HSA Runtime Error Codes start here.
308  hipErrorRuntimeOther = 1053,
310  hipErrorTbd
312 } hipError_t;
313 
314 #undef __HIP_NODISCARD
315 
316 /*
317  * @brief hipDeviceAttribute_t
318  * @enum
319  * @ingroup Enumerations
320  */
321 typedef enum hipDeviceAttribute_t {
364 
367 
374 
394 
397 
398 enum hipComputeMode {
399  hipComputeModeDefault = 0,
400  hipComputeModeExclusive = 1,
401  hipComputeModeProhibited = 2,
402  hipComputeModeExclusiveProcess = 3
403 };
404 
409 #if (defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && !(defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__))
410 
411 #include <stdint.h>
412 #include <stddef.h>
413 #ifndef GENERIC_GRID_LAUNCH
414 #define GENERIC_GRID_LAUNCH 1
415 #endif
416 #include <hip/amd_detail/host_defines.h>
417 #include <hip/driver_types.h>
418 #include <hip/texture_types.h>
419 #include <hip/surface_types.h>
420 #if defined(_MSC_VER)
421 #define DEPRECATED(msg) __declspec(deprecated(msg))
422 #else // !defined(_MSC_VER)
423 #define DEPRECATED(msg) __attribute__ ((deprecated(msg)))
424 #endif // !defined(_MSC_VER)
425 #define DEPRECATED_MSG "This API is marked as deprecated and may not be supported in future releases. For more details please refer https://github.com/ROCm-Developer-Tools/HIP/blob/master/docs/markdown/hip_deprecated_api_list.md"
426 #define HIP_LAUNCH_PARAM_BUFFER_POINTER ((void*)0x01)
427 #define HIP_LAUNCH_PARAM_BUFFER_SIZE ((void*)0x02)
428 #define HIP_LAUNCH_PARAM_END ((void*)0x03)
429 #ifdef __cplusplus
430  #define __dparm(x) \
431  = x
432 #else
433  #define __dparm(x)
434 #endif
435 #ifdef __GNUC__
436 #pragma GCC visibility push (default)
437 #endif
438 #ifdef __cplusplus
439 namespace hip_impl {
440 hipError_t hip_init();
441 } // namespace hip_impl
442 #endif
443 // Structure definitions:
444 #ifdef __cplusplus
445 extern "C" {
446 #endif
447 //---
448 // API-visible structures
449 typedef struct ihipCtx_t* hipCtx_t;
450 // Note many APIs also use integer deviceIds as an alternative to the device pointer:
451 typedef int hipDevice_t;
452 typedef enum hipDeviceP2PAttr {
453  hipDevP2PAttrPerformanceRank = 0,
454  hipDevP2PAttrAccessSupported,
455  hipDevP2PAttrNativeAtomicSupported,
456  hipDevP2PAttrHipArrayAccessSupported
457 } hipDeviceP2PAttr;
458 typedef struct ihipStream_t* hipStream_t;
459 #define hipIpcMemLazyEnablePeerAccess 0
460 #define HIP_IPC_HANDLE_SIZE 64
461 typedef struct hipIpcMemHandle_st {
462  char reserved[HIP_IPC_HANDLE_SIZE];
464 typedef struct hipIpcEventHandle_st {
465  char reserved[HIP_IPC_HANDLE_SIZE];
467 typedef struct ihipModule_t* hipModule_t;
468 typedef struct ihipModuleSymbol_t* hipFunction_t;
469 typedef struct hipFuncAttributes {
470  int binaryVersion;
471  int cacheModeCA;
472  size_t constSizeBytes;
473  size_t localSizeBytes;
474  int maxDynamicSharedSizeBytes;
475  int maxThreadsPerBlock;
476  int numRegs;
477  int preferredShmemCarveout;
478  int ptxVersion;
479  size_t sharedSizeBytes;
481 typedef struct ihipEvent_t* hipEvent_t;
482 enum hipLimit_t {
483  hipLimitPrintfFifoSize = 0x01,
484  hipLimitMallocHeapSize = 0x02,
485 };
490 #define hipStreamDefault \
492  0x00
493 #define hipStreamNonBlocking 0x01
494 #define hipEventDefault 0x0
496 #define hipEventBlockingSync \
497  0x1
498 #define hipEventDisableTiming \
499  0x2
500 #define hipEventInterprocess 0x4
501 #define hipEventReleaseToDevice \
502  0x40000000
503 #define hipEventReleaseToSystem \
506  0x80000000
507 #define hipHostMallocDefault 0x0
511 #define hipHostMallocPortable 0x1
512 #define hipHostMallocMapped \
513  0x2
514 #define hipHostMallocWriteCombined 0x4
516 #define hipHostMallocNumaUser \
517  0x20000000
518 #define hipHostMallocCoherent \
519  0x40000000
520 #define hipHostMallocNonCoherent \
522  0x80000000
523 #define hipMemAttachGlobal 0x01
525 #define hipMemAttachHost 0x02
526 #define hipMemAttachSingle 0x04
527 #define hipDeviceMallocDefault 0x0
529 #define hipDeviceMallocFinegrained 0x1
530 #define hipMallocSignalMemory 0x2
531 #define hipHostRegisterDefault 0x0
533 #define hipHostRegisterPortable 0x1
534 #define hipHostRegisterMapped \
535  0x2
536 #define hipHostRegisterIoMemory 0x4
538 #define hipExtHostRegisterCoarseGrained 0x8
539 #define hipDeviceScheduleAuto 0x0
540 #define hipDeviceScheduleSpin \
541  0x1
542 #define hipDeviceScheduleYield \
544  0x2
545 #define hipDeviceScheduleBlockingSync 0x4
547 #define hipDeviceScheduleMask 0x7
548 #define hipDeviceMapHost 0x8
549 #define hipDeviceLmemResizeToMax 0x16
550 #define hipArrayDefault 0x00
551 #define hipArrayLayered 0x01
552 #define hipArraySurfaceLoadStore 0x02
553 #define hipArrayCubemap 0x04
554 #define hipArrayTextureGather 0x08
555 #define hipOccupancyDefault 0x00
556 #define hipCooperativeLaunchMultiDeviceNoPreSync 0x01
557 #define hipCooperativeLaunchMultiDeviceNoPostSync 0x02
558 #define hipCpuDeviceId ((int)-1)
559 #define hipInvalidDeviceId ((int)-2)
560 // Flags that can be used with hipExtLaunch Set of APIs
561 #define hipExtAnyOrderLaunch 0x01
562 // Flags to be used with hipStreamWaitValue32 and hipStreamWaitValue64
563 #define hipStreamWaitValueGte 0x0
564 #define hipStreamWaitValueEq 0x1
565 #define hipStreamWaitValueAnd 0x2
566 #define hipStreamWaitValueNor 0x3
567 // Stream per thread
568 #define hipStreamPerThread ((hipStream_t)2)
569 /*
570  * @brief HIP Memory Advise values
571  * @enum
572  * @ingroup Enumerations
573  */
574 typedef enum hipMemoryAdvise {
592 /*
593  * @brief HIP Coherency Mode
594  * @enum
595  * @ingroup Enumerations
596  */
606 /*
607  * @brief HIP range attributes
608  * @enum
609  * @ingroup Enumerations
610  */
611 typedef enum hipMemRangeAttribute {
622 /*
623  * @brief hipJitOption
624  * @enum
625  * @ingroup Enumerations
626  */
627 typedef enum hipJitOption {
628  hipJitOptionMaxRegisters = 0,
629  hipJitOptionThreadsPerBlock,
630  hipJitOptionWallTime,
631  hipJitOptionInfoLogBuffer,
632  hipJitOptionInfoLogBufferSizeBytes,
633  hipJitOptionErrorLogBuffer,
634  hipJitOptionErrorLogBufferSizeBytes,
635  hipJitOptionOptimizationLevel,
636  hipJitOptionTargetFromContext,
637  hipJitOptionTarget,
638  hipJitOptionFallbackStrategy,
639  hipJitOptionGenerateDebugInfo,
640  hipJitOptionLogVerbose,
641  hipJitOptionGenerateLineInfo,
642  hipJitOptionCacheMode,
643  hipJitOptionSm3xOpt,
644  hipJitOptionFastCompile,
645  hipJitOptionNumOptions
646 } hipJitOption;
650 typedef enum hipFuncAttribute {
651  hipFuncAttributeMaxDynamicSharedMemorySize = 8,
652  hipFuncAttributePreferredSharedMemoryCarveout = 9,
653  hipFuncAttributeMax
658 typedef enum hipFuncCache_t {
667 typedef enum hipSharedMemConfig {
678 typedef struct dim3 {
679  uint32_t x;
680  uint32_t y;
681  uint32_t z;
682 #ifdef __cplusplus
683  constexpr __host__ __device__ dim3(uint32_t _x = 1, uint32_t _y = 1, uint32_t _z = 1) : x(_x), y(_y), z(_z){};
684 #endif
686 typedef struct hipLaunchParams_t {
687  void* func;
690  void **args;
691  size_t sharedMem;
692  hipStream_t stream;
694 typedef enum hipExternalMemoryHandleType_enum {
695  hipExternalMemoryHandleTypeOpaqueFd = 1,
696  hipExternalMemoryHandleTypeOpaqueWin32 = 2,
697  hipExternalMemoryHandleTypeOpaqueWin32Kmt = 3,
698  hipExternalMemoryHandleTypeD3D12Heap = 4,
699  hipExternalMemoryHandleTypeD3D12Resource = 5,
700  hipExternalMemoryHandleTypeD3D11Resource = 6,
701  hipExternalMemoryHandleTypeD3D11ResourceKmt = 7,
702 } hipExternalMemoryHandleType;
704  hipExternalMemoryHandleType type;
705  union {
706  int fd;
707  struct {
708  void *handle;
709  const void *name;
710  } win32;
711  } handle;
712  unsigned long long size;
713  unsigned int flags;
716  unsigned long long offset;
717  unsigned long long size;
718  unsigned int flags;
720 typedef void* hipExternalMemory_t;
721 typedef enum hipExternalSemaphoreHandleType_enum {
722  hipExternalSemaphoreHandleTypeOpaqueFd = 1,
723  hipExternalSemaphoreHandleTypeOpaqueWin32 = 2,
724  hipExternalSemaphoreHandleTypeOpaqueWin32Kmt = 3,
725  hipExternalSemaphoreHandleTypeD3D12Fence = 4
726 } hipExternalSemaphoreHandleType;
728  hipExternalSemaphoreHandleType type;
729  union {
730  int fd;
731  struct {
732  void* handle;
733  const void* name;
734  } win32;
735  } handle;
736  unsigned int flags;
738 typedef void* hipExternalSemaphore_t;
740  struct {
741  struct {
742  unsigned long long value;
743  } fence;
744  struct {
745  unsigned long long key;
746  } keyedMutex;
747  unsigned int reserved[12];
748  } params;
749  unsigned int flags;
750  unsigned int reserved[16];
756  struct {
757  struct {
758  unsigned long long value;
759  } fence;
760  struct {
761  unsigned long long key;
762  unsigned int timeoutMs;
763  } keyedMutex;
764  unsigned int reserved[10];
765  } params;
766  unsigned int flags;
767  unsigned int reserved[16];
769 
770 #if __HIP_HAS_GET_PCH
771 
776  void __hipGetPCH(const char** pch, unsigned int*size);
777 #endif
778 
779 /*
780  * @brief HIP Devices used by current OpenGL Context.
781  * @enum
782  * @ingroup Enumerations
783  */
784 typedef enum hipGLDeviceList {
791 
792 /*
793  * @brief HIP Access falgs for Interop resources.
794  * @enum
795  * @ingroup Enumerations
796  */
798  hipGraphicsRegisterFlagsNone = 0,
801  2,
804  8
806 
807 typedef struct _hipGraphicsResource hipGraphicsResource;
808 
809 typedef hipGraphicsResource* hipGraphicsResource_t;
810 
811 // Doxygen end group GlobalDefs
813 //-------------------------------------------------------------------------------------------------
814 // The handle allows the async commands to use the stream even if the parent hipStream_t goes
815 // out-of-scope.
816 // typedef class ihipStream_t * hipStream_t;
817 /*
818  * Opaque structure allows the true event (pointed at by the handle) to remain "live" even if the
819  * surrounding hipEvent_t goes out-of-scope. This is handy for cases where the hipEvent_t goes
820  * out-of-scope but the true event is being written by some async queue or device */
821 // typedef struct hipEvent_t {
822 // struct ihipEvent_t *_handle;
823 //} hipEvent_t;
842 // TODO-ctx - more description on error codes.
843 hipError_t hipInit(unsigned int flags);
859 hipError_t hipDriverGetVersion(int* driverVersion);
872 hipError_t hipRuntimeGetVersion(int* runtimeVersion);
880 hipError_t hipDeviceGet(hipDevice_t* device, int ordinal);
889 hipError_t hipDeviceComputeCapability(int* major, int* minor, hipDevice_t device);
898 hipError_t hipDeviceGetName(char* name, int len, hipDevice_t device);
908 hipError_t hipDeviceGetP2PAttribute(int* value, hipDeviceP2PAttr attr,
909  int srcDevice, int dstDevice);
918 hipError_t hipDeviceGetPCIBusId(char* pciBusId, int len, int device);
926 hipError_t hipDeviceGetByPCIBusId(int* device, const char* pciBusId);
934 hipError_t hipDeviceTotalMem(size_t* bytes, hipDevice_t device);
935 // doxygen end initialization
954 hipError_t hipDeviceSynchronize(void);
966 hipError_t hipDeviceReset(void);
998 hipError_t hipSetDevice(int deviceId);
1012 hipError_t hipGetDevice(int* deviceId);
1025 hipError_t hipGetDeviceCount(int* count);
1035 hipError_t hipDeviceGetAttribute(int* pi, hipDeviceAttribute_t attr, int deviceId);
1049 hipError_t hipGetDeviceProperties(hipDeviceProp_t* prop, int deviceId);
1060 hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig);
1071 hipError_t hipDeviceGetCacheConfig(hipFuncCache_t* cacheConfig);
1082 hipError_t hipDeviceGetLimit(size_t* pValue, enum hipLimit_t limit);
1102 hipError_t hipGetDeviceFlags(unsigned int* flags);
1139 hipError_t hipSetDeviceFlags(unsigned flags);
1148 hipError_t hipChooseDevice(int* device, const hipDeviceProp_t* prop);
1161 hipError_t hipExtGetLinkTypeAndHopCount(int device1, int device2, uint32_t* linktype, uint32_t* hopcount);
1162 // TODO: implement IPC apis
1188 hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t* handle, void* devPtr);
1225 hipError_t hipIpcOpenMemHandle(void** devPtr, hipIpcMemHandle_t handle, unsigned int flags);
1244 hipError_t hipIpcCloseMemHandle(void* devPtr);
1245 
1260 hipError_t hipIpcGetEventHandle(hipIpcEventHandle_t* handle, hipEvent_t event);
1261 
1277 hipError_t hipIpcOpenEventHandle(hipEvent_t* event, hipIpcEventHandle_t handle);
1278 
1279 // end doxygen Device
1303 hipError_t hipFuncSetAttribute(const void* func, hipFuncAttribute attr, int value);
1314 hipError_t hipFuncSetCacheConfig(const void* func, hipFuncCache_t config);
1327 hipError_t hipFuncSetSharedMemConfig(const void* func, hipSharedMemConfig config);
1328 //doxygen end execution
1350 hipError_t hipGetLastError(void);
1361 hipError_t hipPeekAtLastError(void);
1370 const char* hipGetErrorName(hipError_t hip_error);
1381 const char* hipGetErrorString(hipError_t hipError);
1382 // end doxygen Error
1411 hipError_t hipStreamCreate(hipStream_t* stream);
1428 hipError_t hipStreamCreateWithFlags(hipStream_t* stream, unsigned int flags);
1446 hipError_t hipStreamCreateWithPriority(hipStream_t* stream, unsigned int flags, int priority);
1460 hipError_t hipDeviceGetStreamPriorityRange(int* leastPriority, int* greatestPriority);
1479 hipError_t hipStreamDestroy(hipStream_t stream);
1495 hipError_t hipStreamQuery(hipStream_t stream);
1515 hipError_t hipStreamSynchronize(hipStream_t stream);
1535 hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags);
1549 hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int* flags);
1563 hipError_t hipStreamGetPriority(hipStream_t stream, int* priority);
1583 hipError_t hipExtStreamCreateWithCUMask(hipStream_t* stream, uint32_t cuMaskSize, const uint32_t* cuMask);
1596 hipError_t hipExtStreamGetCUMask(hipStream_t stream, uint32_t cuMaskSize, uint32_t* cuMask);
1600 typedef void (*hipStreamCallback_t)(hipStream_t stream, hipError_t status, void* userData);
1616 hipError_t hipStreamAddCallback(hipStream_t stream, hipStreamCallback_t callback, void* userData,
1617  unsigned int flags);
1618 // end doxygen Stream
1661 hipError_t hipStreamWaitValue32(hipStream_t stream, void* ptr, uint32_t value, unsigned int flags,
1662  uint32_t mask __dparm(0xFFFFFFFF));
1695 hipError_t hipStreamWaitValue64(hipStream_t stream, void* ptr, uint64_t value, unsigned int flags,
1696  uint64_t mask __dparm(0xFFFFFFFFFFFFFFFF));
1716 hipError_t hipStreamWriteValue32(hipStream_t stream, void* ptr, uint32_t value, unsigned int flags);
1736 hipError_t hipStreamWriteValue64(hipStream_t stream, void* ptr, uint64_t value, unsigned int flags);
1737 // end doxygen Stream Memory Operations
1770 hipError_t hipEventCreateWithFlags(hipEvent_t* event, unsigned flags);
1782 hipError_t hipEventCreate(hipEvent_t* event);
1810 #ifdef __cplusplus
1811 hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream = NULL);
1812 #else
1813 hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream);
1814 #endif
1815 
1831 hipError_t hipEventDestroy(hipEvent_t event);
1849 hipError_t hipEventSynchronize(hipEvent_t event);
1885 hipError_t hipEventElapsedTime(float* ms, hipEvent_t start, hipEvent_t stop);
1901 hipError_t hipEventQuery(hipEvent_t event);
1902 // end doxygen Events
1929 hipError_t hipPointerGetAttributes(hipPointerAttribute_t* attributes, const void* ptr);
1930 
1941 hipError_t hipImportExternalSemaphore(hipExternalSemaphore_t* extSem_out,
1942  const hipExternalSemaphoreHandleDesc* semHandleDesc);
1955 hipError_t hipSignalExternalSemaphoresAsync(const hipExternalSemaphore_t* extSemArray,
1956  const hipExternalSemaphoreSignalParams* paramsArray,
1957  unsigned int numExtSems, hipStream_t stream);
1970 hipError_t hipWaitExternalSemaphoresAsync(const hipExternalSemaphore_t* extSemArray,
1971  const hipExternalSemaphoreWaitParams* paramsArray,
1972  unsigned int numExtSems, hipStream_t stream);
1982 hipError_t hipDestroyExternalSemaphore(hipExternalSemaphore_t extSem);
1983 
1994 hipError_t hipImportExternalMemory(hipExternalMemory_t* extMem_out, const hipExternalMemoryHandleDesc* memHandleDesc);
2006 hipError_t hipExternalMemoryGetMappedBuffer(void **devPtr, hipExternalMemory_t extMem, const hipExternalMemoryBufferDesc *bufferDesc);
2016 hipError_t hipDestroyExternalMemory(hipExternalMemory_t extMem);
2030 hipError_t hipMalloc(void** ptr, size_t size);
2045 hipError_t hipExtMallocWithFlags(void** ptr, size_t sizeBytes, unsigned int flags);
2058 DEPRECATED("use hipHostMalloc instead")
2059 hipError_t hipMallocHost(void** ptr, size_t size);
2072 DEPRECATED("use hipHostMalloc instead")
2073 hipError_t hipMemAllocHost(void** ptr, size_t size);
2087 hipError_t hipHostMalloc(void** ptr, size_t size, unsigned int flags);
2107 hipError_t hipMallocManaged(void** dev_ptr,
2108  size_t size,
2109  unsigned int flags __dparm(hipMemAttachGlobal));
2120 hipError_t hipMemPrefetchAsync(const void* dev_ptr,
2121  size_t count,
2122  int device,
2123  hipStream_t stream __dparm(0));
2134 hipError_t hipMemAdvise(const void* dev_ptr,
2135  size_t count,
2136  hipMemoryAdvise advice,
2137  int device);
2150 hipError_t hipMemRangeGetAttribute(void* data,
2151  size_t data_size,
2152  hipMemRangeAttribute attribute,
2153  const void* dev_ptr,
2154  size_t count);
2169 hipError_t hipMemRangeGetAttributes(void** data,
2170  size_t* data_sizes,
2171  hipMemRangeAttribute* attributes,
2172  size_t num_attributes,
2173  const void* dev_ptr,
2174  size_t count);
2187 hipError_t hipStreamAttachMemAsync(hipStream_t stream,
2188  void* dev_ptr,
2189  size_t length __dparm(0),
2190  unsigned int flags __dparm(hipMemAttachSingle));
2191 // end doxygen Managed Memory
2208 DEPRECATED("use hipHostMalloc instead")
2209 hipError_t hipHostAlloc(void** ptr, size_t size, unsigned int flags);
2221 hipError_t hipHostGetDevicePointer(void** devPtr, void* hstPtr, unsigned int flags);
2231 hipError_t hipHostGetFlags(unsigned int* flagsPtr, void* hostPtr);
2268 hipError_t hipHostRegister(void* hostPtr, size_t sizeBytes, unsigned int flags);
2277 hipError_t hipHostUnregister(void* hostPtr);
2296 hipError_t hipMallocPitch(void** ptr, size_t* pitch, size_t width, size_t height);
2318 hipError_t hipMemAllocPitch(hipDeviceptr_t* dptr, size_t* pitch, size_t widthInBytes, size_t height, unsigned int elementSizeBytes);
2332 hipError_t hipFree(void* ptr);
2342 DEPRECATED("use hipHostFree instead")
2343 hipError_t hipFreeHost(void* ptr);
2357 hipError_t hipHostFree(void* ptr);
2387 hipError_t hipMemcpy(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind);
2388 // TODO: Add description
2389 hipError_t hipMemcpyWithStream(void* dst, const void* src, size_t sizeBytes,
2390  hipMemcpyKind kind, hipStream_t stream);
2408 hipError_t hipMemcpyHtoD(hipDeviceptr_t dst, void* src, size_t sizeBytes);
2426 hipError_t hipMemcpyDtoH(void* dst, hipDeviceptr_t src, size_t sizeBytes);
2444 hipError_t hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes);
2462 hipError_t hipMemcpyHtoDAsync(hipDeviceptr_t dst, void* src, size_t sizeBytes, hipStream_t stream);
2480 hipError_t hipMemcpyDtoHAsync(void* dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream);
2498 hipError_t hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes,
2499  hipStream_t stream);
2500 
2515 hipError_t hipModuleGetGlobal(hipDeviceptr_t* dptr, size_t* bytes,
2516  hipModule_t hmod, const char* name);
2517 hipError_t hipGetSymbolAddress(void** devPtr, const void* symbol);
2518 hipError_t hipGetSymbolSize(size_t* size, const void* symbol);
2519 hipError_t hipMemcpyToSymbol(const void* symbol, const void* src,
2520  size_t sizeBytes, size_t offset __dparm(0),
2521  hipMemcpyKind kind __dparm(hipMemcpyHostToDevice));
2522 hipError_t hipMemcpyToSymbolAsync(const void* symbol, const void* src,
2523  size_t sizeBytes, size_t offset,
2524  hipMemcpyKind kind, hipStream_t stream __dparm(0));
2525 hipError_t hipMemcpyFromSymbol(void* dst, const void* symbol,
2526  size_t sizeBytes, size_t offset __dparm(0),
2527  hipMemcpyKind kind __dparm(hipMemcpyDeviceToHost));
2528 hipError_t hipMemcpyFromSymbolAsync(void* dst, const void* symbol,
2529  size_t sizeBytes, size_t offset,
2530  hipMemcpyKind kind,
2531  hipStream_t stream __dparm(0));
2560 hipError_t hipMemcpyAsync(void* dst, const void* src, size_t sizeBytes, hipMemcpyKind kind,
2561  hipStream_t stream __dparm(0));
2571 hipError_t hipMemset(void* dst, int value, size_t sizeBytes);
2581 hipError_t hipMemsetD8(hipDeviceptr_t dest, unsigned char value, size_t count);
2597 hipError_t hipMemsetD8Async(hipDeviceptr_t dest, unsigned char value, size_t count, hipStream_t stream __dparm(0));
2607 hipError_t hipMemsetD16(hipDeviceptr_t dest, unsigned short value, size_t count);
2623 hipError_t hipMemsetD16Async(hipDeviceptr_t dest, unsigned short value, size_t count, hipStream_t stream __dparm(0));
2633 hipError_t hipMemsetD32(hipDeviceptr_t dest, int value, size_t count);
2649 hipError_t hipMemsetAsync(void* dst, int value, size_t sizeBytes, hipStream_t stream __dparm(0));
2665 hipError_t hipMemsetD32Async(hipDeviceptr_t dst, int value, size_t count,
2666  hipStream_t stream __dparm(0));
2677 hipError_t hipMemset2D(void* dst, size_t pitch, int value, size_t width, size_t height);
2689 hipError_t hipMemset2DAsync(void* dst, size_t pitch, int value, size_t width, size_t height,hipStream_t stream __dparm(0));
2698 hipError_t hipMemset3D(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent );
2708 hipError_t hipMemset3DAsync(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent ,hipStream_t stream __dparm(0));
2718 hipError_t hipMemGetInfo(size_t* free, size_t* total);
2719 hipError_t hipMemPtrGetInfo(void* ptr, size_t* size);
2732 hipError_t hipMallocArray(hipArray** array, const hipChannelFormatDesc* desc, size_t width,
2733  size_t height __dparm(0), unsigned int flags __dparm(hipArrayDefault));
2734 hipError_t hipArrayCreate(hipArray** pHandle, const HIP_ARRAY_DESCRIPTOR* pAllocateArray);
2735 hipError_t hipArrayDestroy(hipArray* array);
2736 hipError_t hipArray3DCreate(hipArray** array, const HIP_ARRAY3D_DESCRIPTOR* pAllocateArray);
2737 hipError_t hipMalloc3D(hipPitchedPtr* pitchedDevPtr, hipExtent extent);
2746 hipError_t hipFreeArray(hipArray* array);
2754 hipError_t hipFreeMipmappedArray(hipMipmappedArray_t mipmappedArray);
2766 hipError_t hipMalloc3DArray(hipArray** array, const struct hipChannelFormatDesc* desc,
2767  struct hipExtent extent, unsigned int flags);
2780  hipMipmappedArray_t *mipmappedArray,
2781  const struct hipChannelFormatDesc* desc,
2782  struct hipExtent extent,
2783  unsigned int numLevels,
2784  unsigned int flags __dparm(0));
2795  hipArray_t *levelArray,
2796  hipMipmappedArray_const_t mipmappedArray,
2797  unsigned int level);
2814 hipError_t hipMemcpy2D(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width,
2815  size_t height, hipMemcpyKind kind);
2825 hipError_t hipMemcpyParam2D(const hip_Memcpy2D* pCopy);
2836 hipError_t hipMemcpyParam2DAsync(const hip_Memcpy2D* pCopy, hipStream_t stream __dparm(0));
2854 hipError_t hipMemcpy2DAsync(void* dst, size_t dpitch, const void* src, size_t spitch, size_t width,
2855  size_t height, hipMemcpyKind kind, hipStream_t stream __dparm(0));
2873 hipError_t hipMemcpy2DToArray(hipArray* dst, size_t wOffset, size_t hOffset, const void* src,
2874  size_t spitch, size_t width, size_t height, hipMemcpyKind kind);
2893 hipError_t hipMemcpy2DToArrayAsync(hipArray* dst, size_t wOffset, size_t hOffset, const void* src,
2894  size_t spitch, size_t width, size_t height, hipMemcpyKind kind,
2895  hipStream_t stream __dparm(0));
2911 DEPRECATED(DEPRECATED_MSG)
2912 hipError_t hipMemcpyToArray(hipArray* dst, size_t wOffset, size_t hOffset, const void* src,
2913  size_t count, hipMemcpyKind kind);
2929 DEPRECATED(DEPRECATED_MSG)
2930 hipError_t hipMemcpyFromArray(void* dst, hipArray_const_t srcArray, size_t wOffset, size_t hOffset,
2931  size_t count, hipMemcpyKind kind);
2949 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);
2968 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 __dparm(0));
2982 hipError_t hipMemcpyAtoH(void* dst, hipArray* srcArray, size_t srcOffset, size_t count);
2996 hipError_t hipMemcpyHtoA(hipArray* dstArray, size_t dstOffset, const void* srcHost, size_t count);
3007 hipError_t hipMemcpy3D(const struct hipMemcpy3DParms* p);
3019 hipError_t hipMemcpy3DAsync(const struct hipMemcpy3DParms* p, hipStream_t stream __dparm(0));
3030 hipError_t hipDrvMemcpy3D(const HIP_MEMCPY3D* pCopy);
3042 hipError_t hipDrvMemcpy3DAsync(const HIP_MEMCPY3D* pCopy, hipStream_t stream);
3043 // doxygen end Memory
3071 hipError_t hipDeviceCanAccessPeer(int* canAccessPeer, int deviceId, int peerDeviceId);
3088 hipError_t hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags);
3100 hipError_t hipDeviceDisablePeerAccess(int peerDeviceId);
3113 hipError_t hipMemGetAddressRange(hipDeviceptr_t* pbase, size_t* psize, hipDeviceptr_t dptr);
3114 #ifndef USE_PEER_NON_UNIFIED
3115 #define USE_PEER_NON_UNIFIED 1
3116 #endif
3117 #if USE_PEER_NON_UNIFIED == 1
3118 
3129 hipError_t hipMemcpyPeer(void* dst, int dstDeviceId, const void* src, int srcDeviceId,
3130  size_t sizeBytes);
3143 hipError_t hipMemcpyPeerAsync(void* dst, int dstDeviceId, const void* src, int srcDevice,
3144  size_t sizeBytes, hipStream_t stream __dparm(0));
3145 #endif
3146 // doxygen end PeerToPeer
3176 DEPRECATED(DEPRECATED_MSG)
3177 hipError_t hipCtxCreate(hipCtx_t* ctx, unsigned int flags, hipDevice_t device);
3188 DEPRECATED(DEPRECATED_MSG)
3189 hipError_t hipCtxDestroy(hipCtx_t ctx);
3200 DEPRECATED(DEPRECATED_MSG)
3201 hipError_t hipCtxPopCurrent(hipCtx_t* ctx);
3212 DEPRECATED(DEPRECATED_MSG)
3213 hipError_t hipCtxPushCurrent(hipCtx_t ctx);
3224 DEPRECATED(DEPRECATED_MSG)
3225 hipError_t hipCtxSetCurrent(hipCtx_t ctx);
3236 DEPRECATED(DEPRECATED_MSG)
3237 hipError_t hipCtxGetCurrent(hipCtx_t* ctx);
3248 DEPRECATED(DEPRECATED_MSG)
3249 hipError_t hipCtxGetDevice(hipDevice_t* device);
3267 DEPRECATED(DEPRECATED_MSG)
3268 hipError_t hipCtxGetApiVersion(hipCtx_t ctx, int* apiVersion);
3282 DEPRECATED(DEPRECATED_MSG)
3283 hipError_t hipCtxGetCacheConfig(hipFuncCache_t* cacheConfig);
3297 DEPRECATED(DEPRECATED_MSG)
3298 hipError_t hipCtxSetCacheConfig(hipFuncCache_t cacheConfig);
3312 DEPRECATED(DEPRECATED_MSG)
3327 DEPRECATED(DEPRECATED_MSG)
3340 DEPRECATED(DEPRECATED_MSG)
3341 hipError_t hipCtxSynchronize(void);
3352 DEPRECATED(DEPRECATED_MSG)
3353 hipError_t hipCtxGetFlags(unsigned int* flags);
3373 DEPRECATED(DEPRECATED_MSG)
3374 hipError_t hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags);
3391 DEPRECATED(DEPRECATED_MSG)
3392 hipError_t hipCtxDisablePeerAccess(hipCtx_t peerCtx);
3393 // doxygen end Context deprecated
3409 hipError_t hipDevicePrimaryCtxGetState(hipDevice_t dev, unsigned int* flags, int* active);
3422 hipError_t hipDevicePrimaryCtxRelease(hipDevice_t dev);
3434 hipError_t hipDevicePrimaryCtxRetain(hipCtx_t* pctx, hipDevice_t dev);
3445 hipError_t hipDevicePrimaryCtxReset(hipDevice_t dev);
3457 hipError_t hipDevicePrimaryCtxSetFlags(hipDevice_t dev, unsigned int flags);
3458 // doxygen end Context Management
3480 hipError_t hipModuleLoad(hipModule_t* module, const char* fname);
3490 hipError_t hipModuleUnload(hipModule_t module);
3501 hipError_t hipModuleGetFunction(hipFunction_t* function, hipModule_t module, const char* kname);
3510 hipError_t hipFuncGetAttributes(struct hipFuncAttributes* attr, const void* func);
3520 hipError_t hipFuncGetAttribute(int* value, hipFunction_attribute attrib, hipFunction_t hfunc);
3530 hipError_t hipModuleGetTexRef(textureReference** texRef, hipModule_t hmod, const char* name);
3540 hipError_t hipModuleLoadData(hipModule_t* module, const void* image);
3553 hipError_t hipModuleLoadDataEx(hipModule_t* module, const void* image, unsigned int numOptions,
3554  hipJitOption* options, void** optionValues);
3579 hipError_t hipModuleLaunchKernel(hipFunction_t f, unsigned int gridDimX, unsigned int gridDimY,
3580  unsigned int gridDimZ, unsigned int blockDimX,
3581  unsigned int blockDimY, unsigned int blockDimZ,
3582  unsigned int sharedMemBytes, hipStream_t stream,
3583  void** kernelParams, void** extra);
3599 hipError_t hipLaunchCooperativeKernel(const void* f, dim3 gridDim, dim3 blockDimX,
3600  void** kernelParams, unsigned int sharedMemBytes,
3601  hipStream_t stream);
3613  int numDevices, unsigned int flags);
3626  int numDevices, unsigned int flags);
3627 // doxygen end Module
3649 //TODO - Match CUoccupancyB2DSize
3650 hipError_t hipModuleOccupancyMaxPotentialBlockSize(int* gridSize, int* blockSize,
3651  hipFunction_t f, size_t dynSharedMemPerBlk,
3652  int blockSizeLimit);
3665 //TODO - Match CUoccupancyB2DSize
3666 hipError_t hipModuleOccupancyMaxPotentialBlockSizeWithFlags(int* gridSize, int* blockSize,
3667  hipFunction_t f, size_t dynSharedMemPerBlk,
3668  int blockSizeLimit, unsigned int flags);
3678  int* numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk);
3689  int* numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags);
3699  int* numBlocks, const void* f, int blockSize, size_t dynSharedMemPerBlk);
3710  int* numBlocks, const void* f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags __dparm(hipOccupancyDefault));
3722 hipError_t hipOccupancyMaxPotentialBlockSize(int* gridSize, int* blockSize,
3723  const void* f, size_t dynSharedMemPerBlk,
3724  int blockSizeLimit);
3725 // doxygen end Occupancy
3739 // TODO - expand descriptions:
3745 DEPRECATED("use roctracer/rocTX instead")
3746 hipError_t hipProfilerStart();
3752 DEPRECATED("use roctracer/rocTX instead")
3753 hipError_t hipProfilerStop();
3754 // doxygen end profiler
3778 hipError_t hipConfigureCall(dim3 gridDim, dim3 blockDim, size_t sharedMem __dparm(0), hipStream_t stream __dparm(0));
3789 hipError_t hipSetupArgument(const void* arg, size_t size, size_t offset);
3798 hipError_t hipLaunchByPtr(const void* func);
3813  dim3 blockDim,
3814  size_t sharedMem __dparm(0),
3815  hipStream_t stream __dparm(0));
3829 hipError_t __hipPopCallConfiguration(dim3 *gridDim,
3830  dim3 *blockDim,
3831  size_t *sharedMem,
3832  hipStream_t *stream);
3848 hipError_t hipLaunchKernel(const void* function_address,
3849  dim3 numBlocks,
3850  dim3 dimBlocks,
3851  void** args,
3852  size_t sharedMemBytes __dparm(0),
3853  hipStream_t stream __dparm(0));
3861 hipError_t hipDrvMemcpy2DUnaligned(const hip_Memcpy2D* pCopy);
3862 //TODO: Move this to hip_ext.h
3863 hipError_t hipExtLaunchKernel(const void* function_address, dim3 numBlocks, dim3 dimBlocks,
3864  void** args, size_t sharedMemBytes, hipStream_t stream,
3865  hipEvent_t startEvent, hipEvent_t stopEvent, int flags);
3866 // doxygen end Clang launch
3884 DEPRECATED(DEPRECATED_MSG)
3885 hipError_t hipBindTexture(
3886  size_t* offset,
3887  const textureReference* tex,
3888  const void* devPtr,
3889  const hipChannelFormatDesc* desc,
3890  size_t size __dparm(UINT_MAX));
3891 DEPRECATED(DEPRECATED_MSG)
3892 hipError_t hipBindTexture2D(
3893  size_t* offset,
3894  const textureReference* tex,
3895  const void* devPtr,
3896  const hipChannelFormatDesc* desc,
3897  size_t width,
3898  size_t height,
3899  size_t pitch);
3900 DEPRECATED(DEPRECATED_MSG)
3901 hipError_t hipBindTextureToArray(
3902  const textureReference* tex,
3903  hipArray_const_t array,
3904  const hipChannelFormatDesc* desc);
3905 DEPRECATED(DEPRECATED_MSG)
3906 hipError_t hipGetTextureAlignmentOffset(
3907  size_t* offset,
3908  const textureReference* texref);
3909 DEPRECATED(DEPRECATED_MSG)
3910 hipError_t hipUnbindTexture(const textureReference* tex);
3911 // doxygen end deprecated texture management
3915 hipError_t hipBindTextureToMipmappedArray(
3916  const textureReference* tex,
3917  hipMipmappedArray_const_t mipmappedArray,
3918  const hipChannelFormatDesc* desc);
3919  hipError_t hipGetTextureReference(
3920  const textureReference** texref,
3921  const void* symbol);
3922 hipError_t hipCreateTextureObject(
3923  hipTextureObject_t* pTexObject,
3924  const hipResourceDesc* pResDesc,
3925  const hipTextureDesc* pTexDesc,
3926  const struct hipResourceViewDesc* pResViewDesc);
3927 hipError_t hipDestroyTextureObject(hipTextureObject_t textureObject);
3928 hipError_t hipGetChannelDesc(
3929  hipChannelFormatDesc* desc,
3930  hipArray_const_t array);
3931 hipError_t hipGetTextureObjectResourceDesc(
3932  hipResourceDesc* pResDesc,
3933  hipTextureObject_t textureObject);
3934 hipError_t hipGetTextureObjectResourceViewDesc(
3935  struct hipResourceViewDesc* pResViewDesc,
3936  hipTextureObject_t textureObject);
3937 hipError_t hipGetTextureObjectTextureDesc(
3938  hipTextureDesc* pTexDesc,
3939  hipTextureObject_t textureObject);
3940 DEPRECATED(DEPRECATED_MSG)
3941 hipError_t hipTexRefGetAddress(
3942  hipDeviceptr_t* dev_ptr,
3943  const textureReference* texRef);
3944 DEPRECATED(DEPRECATED_MSG)
3945 hipError_t hipTexRefGetAddressMode(
3946  enum hipTextureAddressMode* pam,
3947  const textureReference* texRef,
3948  int dim);
3949 DEPRECATED(DEPRECATED_MSG)
3950 hipError_t hipTexRefGetFilterMode(
3951  enum hipTextureFilterMode* pfm,
3952  const textureReference* texRef);
3953 DEPRECATED(DEPRECATED_MSG)
3954 hipError_t hipTexRefGetFlags(
3955  unsigned int* pFlags,
3956  const textureReference* texRef);
3957 DEPRECATED(DEPRECATED_MSG)
3958 hipError_t hipTexRefGetFormat(
3959  hipArray_Format* pFormat,
3960  int* pNumChannels,
3961  const textureReference* texRef);
3962 DEPRECATED(DEPRECATED_MSG)
3963 hipError_t hipTexRefGetMaxAnisotropy(
3964  int* pmaxAnsio,
3965  const textureReference* texRef);
3966 DEPRECATED(DEPRECATED_MSG)
3967 hipError_t hipTexRefGetMipmapFilterMode(
3968  enum hipTextureFilterMode* pfm,
3969  const textureReference* texRef);
3970 DEPRECATED(DEPRECATED_MSG)
3971 hipError_t hipTexRefGetMipmapLevelBias(
3972  float* pbias,
3973  const textureReference* texRef);
3974 DEPRECATED(DEPRECATED_MSG)
3975 hipError_t hipTexRefGetMipmapLevelClamp(
3976  float* pminMipmapLevelClamp,
3977  float* pmaxMipmapLevelClamp,
3978  const textureReference* texRef);
3979 DEPRECATED(DEPRECATED_MSG)
3980 hipError_t hipTexRefGetMipMappedArray(
3981  hipMipmappedArray_t* pArray,
3982  const textureReference* texRef);
3983 DEPRECATED(DEPRECATED_MSG)
3984 hipError_t hipTexRefSetAddress(
3985  size_t* ByteOffset,
3986  textureReference* texRef,
3987  hipDeviceptr_t dptr,
3988  size_t bytes);
3989 DEPRECATED(DEPRECATED_MSG)
3990 hipError_t hipTexRefSetAddress2D(
3991  textureReference* texRef,
3992  const HIP_ARRAY_DESCRIPTOR* desc,
3993  hipDeviceptr_t dptr,
3994  size_t Pitch);
3995 hipError_t hipTexRefSetAddressMode(
3996  textureReference* texRef,
3997  int dim,
3998  enum hipTextureAddressMode am);
3999 hipError_t hipTexRefSetArray(
4000  textureReference* tex,
4001  hipArray_const_t array,
4002  unsigned int flags);
4003 hipError_t hipTexRefSetFilterMode(
4004  textureReference* texRef,
4005  enum hipTextureFilterMode fm);
4006 hipError_t hipTexRefSetFlags(
4007  textureReference* texRef,
4008  unsigned int Flags);
4009 hipError_t hipTexRefSetFormat(
4010  textureReference* texRef,
4011  hipArray_Format fmt,
4012  int NumPackedComponents);
4013 DEPRECATED(DEPRECATED_MSG)
4014 hipError_t hipTexRefSetMaxAnisotropy(
4015  textureReference* texRef,
4016  unsigned int maxAniso);
4017 hipError_t hipTexObjectCreate(
4018  hipTextureObject_t* pTexObject,
4019  const HIP_RESOURCE_DESC* pResDesc,
4020  const HIP_TEXTURE_DESC* pTexDesc,
4021  const HIP_RESOURCE_VIEW_DESC* pResViewDesc);
4022 hipError_t hipTexObjectDestroy(
4023  hipTextureObject_t texObject);
4024 hipError_t hipTexObjectGetResourceDesc(
4025  HIP_RESOURCE_DESC* pResDesc,
4026  hipTextureObject_t texObject);
4027 hipError_t hipTexObjectGetResourceViewDesc(
4028  HIP_RESOURCE_VIEW_DESC* pResViewDesc,
4029  hipTextureObject_t texObject);
4030 hipError_t hipTexObjectGetTextureDesc(
4031  HIP_TEXTURE_DESC* pTexDesc,
4032  hipTextureObject_t texObject);
4033 // doxygen end Texture management
4037 // The following are not supported.
4038 DEPRECATED(DEPRECATED_MSG)
4039 hipError_t hipTexRefSetBorderColor(
4040  textureReference* texRef,
4041  float* pBorderColor);
4042 hipError_t hipTexRefSetMipmapFilterMode(
4043  textureReference* texRef,
4044  enum hipTextureFilterMode fm);
4045 hipError_t hipTexRefSetMipmapLevelBias(
4046  textureReference* texRef,
4047  float bias);
4048 hipError_t hipTexRefSetMipmapLevelClamp(
4049  textureReference* texRef,
4050  float minMipMapLevelClamp,
4051  float maxMipMapLevelClamp);
4052 hipError_t hipTexRefSetMipmappedArray(
4053  textureReference* texRef,
4054  struct hipMipmappedArray* mipmappedArray,
4055  unsigned int Flags);
4056 hipError_t hipMipmappedArrayCreate(
4057  hipMipmappedArray_t* pHandle,
4058  HIP_ARRAY3D_DESCRIPTOR* pMipmappedArrayDesc,
4059  unsigned int numMipmapLevels);
4060 hipError_t hipMipmappedArrayDestroy(
4061  hipMipmappedArray_t hMipmappedArray);
4062 hipError_t hipMipmappedArrayGetLevel(
4063  hipArray_t* pLevelArray,
4064  hipMipmappedArray_t hMipMappedArray,
4065  unsigned int level);
4074 // This group is for HIPrtc
4075 
4076 // doxygen end Runtime
4084 hipError_t hipRegisterApiCallback(uint32_t id, void* fun, void* arg);
4085 hipError_t hipRemoveApiCallback(uint32_t id);
4086 hipError_t hipRegisterActivityCallback(uint32_t id, void* fun, void* arg);
4087 hipError_t hipRemoveActivityCallback(uint32_t id);
4088 const char* hipApiName(uint32_t id);
4089 const char* hipKernelNameRef(const hipFunction_t f);
4090 const char* hipKernelNameRefByPtr(const void* hostFunction, hipStream_t stream);
4091 int hipGetStreamDeviceId(hipStream_t stream);
4092 
4103 typedef struct ihipGraph* hipGraph_t;
4107 typedef struct hipGraphNode* hipGraphNode_t;
4111 typedef struct hipGraphExec* hipGraphExec_t;
4112 typedef enum hipGraphNodeType {
4124  hipGraphNodeTypeCount
4126 typedef void (*hipHostFn_t)(void* userData);
4127 typedef struct hipHostNodeParams {
4128  hipHostFn_t fn;
4129  void* userData;
4131 typedef struct hipKernelNodeParams {
4132  dim3 blockDim;
4133  void** extra;
4134  void* func;
4135  dim3 gridDim;
4136  void** kernelParams;
4137  unsigned int sharedMemBytes;
4139 typedef struct hipMemsetParams {
4140  void* dst;
4141  unsigned int elementSize;
4142  size_t height;
4143  size_t pitch;
4144  unsigned int value;
4145  size_t width;
4146 } hipMemsetParams;
4149  hipGraphExecUpdateError = 0x1,
4154  0x4,
4156  0x5,
4158  0x6,
4159  hipGraphExecUpdateErrorUnsupportedFunctionChange = 0x7
4161 typedef enum hipStreamCaptureMode {
4162  hipStreamCaptureModeGlobal = 0,
4163  hipStreamCaptureModeThreadLocal,
4164  hipStreamCaptureModeRelaxed
4165 } hipStreamCaptureMode;
4185 hipError_t hipStreamBeginCapture(hipStream_t stream, hipStreamCaptureMode mode);
4186 
4199 hipError_t hipStreamEndCapture(hipStream_t stream, hipGraph_t* pGraph);
4200 
4211 hipError_t hipGraphCreate(hipGraph_t* pGraph, unsigned int flags);
4212 
4222 hipError_t hipGraphDestroy(hipGraph_t graph);
4223 
4233 hipError_t hipGraphExecDestroy(hipGraphExec_t pGraphExec);
4234 
4249 hipError_t hipGraphInstantiate(hipGraphExec_t* pGraphExec, hipGraph_t graph,
4250  hipGraphNode_t* pErrorNode, char* pLogBuffer, size_t bufferSize);
4251 
4252 // Launches an executable graph in a stream.
4262 hipError_t hipGraphLaunch(hipGraphExec_t graphExec, hipStream_t stream);
4263 
4276 hipError_t hipGraphAddKernelNode(hipGraphNode_t* pGraphNode, hipGraph_t graph,
4277  const hipGraphNode_t* pDependencies, size_t numDependencies,
4278  const hipKernelNodeParams* pNodeParams);
4279 
4280 
4293 hipError_t hipGraphAddMemcpyNode(hipGraphNode_t* pGraphNode, hipGraph_t graph,
4294  const hipGraphNode_t* pDependencies, size_t numDependencies,
4295  const hipMemcpy3DParms* pCopyParams);
4296 
4312 hipError_t hipGraphAddMemcpyNode1D(hipGraphNode_t* pGraphNode, hipGraph_t graph,
4313  const hipGraphNode_t* pDependencies, size_t numDependencies,
4314  void* dst, const void* src, size_t count, hipMemcpyKind kind);
4315 
4328 hipError_t hipGraphAddMemsetNode(hipGraphNode_t* pGraphNode, hipGraph_t graph,
4329  const hipGraphNode_t* pDependencies, size_t numDependencies,
4330  const hipMemsetParams* pMemsetParams);
4331 
4342 hipError_t hipGraphGetNodes(hipGraph_t graph, hipGraphNode_t* nodes, size_t* numNodes);
4343 
4354 hipError_t hipGraphGetRootNodes(hipGraph_t graph, hipGraphNode_t* pRootNodes,
4355  size_t* pNumRootNodes);
4356 
4367 
4378 
4389 
4399 hipError_t hipGraphMemcpyNodeSetParams(hipGraphNode_t node, const hipMemcpy3DParms* pNodeParams);
4400 
4411 
4421 hipError_t hipGraphMemsetNodeSetParams(hipGraphNode_t node, const hipMemsetParams* pNodeParams);
4422 
4434  const hipKernelNodeParams* pNodeParams);
4446 hipError_t hipGraphAddDependencies(hipGraph_t graph, const hipGraphNode_t* from,
4447  const hipGraphNode_t* to, size_t numDependencies);
4448 
4460 hipError_t hipGraphAddEmptyNode(hipGraphNode_t* pGraphNode, hipGraph_t graph,
4461  const hipGraphNode_t* pDependencies, size_t numDependencies);
4462 
4463 // doxygen end graph API
4467 #ifdef __cplusplus
4468 } /* extern "c" */
4469 #endif
4470 #ifdef __cplusplus
4471 #if defined(__clang__) && defined(__HIP__)
4472 template <typename T>
4473 static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSize(int* gridSize, int* blockSize,
4474  T f, size_t dynSharedMemPerBlk = 0, int blockSizeLimit = 0) {
4475  return hipOccupancyMaxPotentialBlockSize(gridSize, blockSize, reinterpret_cast<const void*>(f),dynSharedMemPerBlk,blockSizeLimit);
4476 }
4477 template <typename T>
4478 static hipError_t __host__ inline hipOccupancyMaxPotentialBlockSizeWithFlags(int* gridSize, int* blockSize,
4479  T f, size_t dynSharedMemPerBlk = 0, int blockSizeLimit = 0, unsigned int flags = 0 ) {
4480  return hipOccupancyMaxPotentialBlockSize(gridSize, blockSize, reinterpret_cast<const void*>(f),dynSharedMemPerBlk,blockSizeLimit);
4481 }
4482 #endif // defined(__clang__) && defined(__HIP__)
4483 template <typename T>
4484 hipError_t hipGetSymbolAddress(void** devPtr, const T &symbol) {
4485  return ::hipGetSymbolAddress(devPtr, (const void *)&symbol);
4486 }
4487 template <typename T>
4488 hipError_t hipGetSymbolSize(size_t* size, const T &symbol) {
4489  return ::hipGetSymbolSize(size, (const void *)&symbol);
4490 }
4491 template <typename T>
4492 hipError_t hipMemcpyToSymbol(const T& symbol, const void* src, size_t sizeBytes,
4493  size_t offset __dparm(0),
4494  hipMemcpyKind kind __dparm(hipMemcpyHostToDevice)) {
4495  return ::hipMemcpyToSymbol((const void*)&symbol, src, sizeBytes, offset, kind);
4496 }
4497 template <typename T>
4498 hipError_t hipMemcpyToSymbolAsync(const T& symbol, const void* src, size_t sizeBytes, size_t offset,
4499  hipMemcpyKind kind, hipStream_t stream __dparm(0)) {
4500  return ::hipMemcpyToSymbolAsync((const void*)&symbol, src, sizeBytes, offset, kind, stream);
4501 }
4502 template <typename T>
4503 hipError_t hipMemcpyFromSymbol(void* dst, const T &symbol,
4504  size_t sizeBytes, size_t offset __dparm(0),
4505  hipMemcpyKind kind __dparm(hipMemcpyDeviceToHost)) {
4506  return ::hipMemcpyFromSymbol(dst, (const void*)&symbol, sizeBytes, offset, kind);
4507 }
4508 template <typename T>
4509 hipError_t hipMemcpyFromSymbolAsync(void* dst, const T& symbol, size_t sizeBytes, size_t offset,
4510  hipMemcpyKind kind, hipStream_t stream __dparm(0)) {
4511  return ::hipMemcpyFromSymbolAsync(dst, (const void*)&symbol, sizeBytes, offset, kind, stream);
4512 }
4513 template <class T>
4515  int* numBlocks, T f, int blockSize, size_t dynSharedMemPerBlk) {
4517  numBlocks, reinterpret_cast<const void*>(f), blockSize, dynSharedMemPerBlk);
4518 }
4519 template <class T>
4521  int* numBlocks, T f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags) {
4523  numBlocks, reinterpret_cast<const void*>(f), blockSize, dynSharedMemPerBlk, flags);
4524 }
4525 template <typename F>
4526 inline hipError_t hipOccupancyMaxPotentialBlockSize(int* gridSize, int* blockSize,
4527  F kernel, size_t dynSharedMemPerBlk, uint32_t blockSizeLimit) {
4528 return hipOccupancyMaxPotentialBlockSize(gridSize, blockSize,(hipFunction_t)kernel, dynSharedMemPerBlk, blockSizeLimit);
4529 }
4530 template <class T>
4531 inline hipError_t hipLaunchCooperativeKernel(T f, dim3 gridDim, dim3 blockDim,
4532  void** kernelParams, unsigned int sharedMemBytes, hipStream_t stream) {
4533  return hipLaunchCooperativeKernel(reinterpret_cast<const void*>(f), gridDim,
4534  blockDim, kernelParams, sharedMemBytes, stream);
4535 }
4536 template <class T>
4537 inline hipError_t hipLaunchCooperativeKernelMultiDevice(hipLaunchParams* launchParamsList,
4538  unsigned int numDevices, unsigned int flags = 0) {
4539  return hipLaunchCooperativeKernelMultiDevice(launchParamsList, numDevices, flags);
4540 }
4541 template <class T>
4542 inline hipError_t hipExtLaunchMultiKernelMultiDevice(hipLaunchParams* launchParamsList,
4543  unsigned int numDevices, unsigned int flags = 0) {
4544  return hipExtLaunchMultiKernelMultiDevice(launchParamsList, numDevices, flags);
4545 }
4546 hipError_t hipCreateSurfaceObject(hipSurfaceObject_t* pSurfObject, const hipResourceDesc* pResDesc);
4547 hipError_t hipDestroySurfaceObject(hipSurfaceObject_t surfaceObject);
4548 template <class T, int dim, enum hipTextureReadMode readMode>
4549 DEPRECATED(DEPRECATED_MSG)
4550 static inline hipError_t hipBindTexture(size_t* offset, const struct texture<T, dim, readMode>& tex,
4551  const void* devPtr, size_t size = UINT_MAX) {
4552  return hipBindTexture(offset, &tex, devPtr, &tex.channelDesc, size);
4553 }
4554 template <class T, int dim, enum hipTextureReadMode readMode>
4555 DEPRECATED(DEPRECATED_MSG)
4556 static inline hipError_t
4557  hipBindTexture(size_t* offset, const struct texture<T, dim, readMode>& tex, const void* devPtr,
4558  const struct hipChannelFormatDesc& desc, size_t size = UINT_MAX) {
4559  return hipBindTexture(offset, &tex, devPtr, &desc, size);
4560 }
4561 template<class T, int dim, enum hipTextureReadMode readMode>
4562 DEPRECATED(DEPRECATED_MSG)
4563 static inline hipError_t hipBindTexture2D(
4564  size_t *offset,
4565  const struct texture<T, dim, readMode> &tex,
4566  const void *devPtr,
4567  size_t width,
4568  size_t height,
4569  size_t pitch)
4570 {
4571  return hipBindTexture2D(offset, &tex, devPtr, &tex.channelDesc, width, height, pitch);
4572 }
4573 template<class T, int dim, enum hipTextureReadMode readMode>
4574 DEPRECATED(DEPRECATED_MSG)
4575 static inline hipError_t hipBindTexture2D(
4576  size_t *offset,
4577  const struct texture<T, dim, readMode> &tex,
4578  const void *devPtr,
4579  const struct hipChannelFormatDesc &desc,
4580  size_t width,
4581  size_t height,
4582  size_t pitch)
4583 {
4584  return hipBindTexture2D(offset, &tex, devPtr, &desc, width, height, pitch);
4585 }
4586 template<class T, int dim, enum hipTextureReadMode readMode>
4587 DEPRECATED(DEPRECATED_MSG)
4588 static inline hipError_t hipBindTextureToArray(
4589  const struct texture<T, dim, readMode> &tex,
4590  hipArray_const_t array)
4591 {
4592  struct hipChannelFormatDesc desc;
4593  hipError_t err = hipGetChannelDesc(&desc, array);
4594  return (err == hipSuccess) ? hipBindTextureToArray(&tex, array, &desc) : err;
4595 }
4596 template<class T, int dim, enum hipTextureReadMode readMode>
4597 DEPRECATED(DEPRECATED_MSG)
4598 static inline hipError_t hipBindTextureToArray(
4599  const struct texture<T, dim, readMode> &tex,
4600  hipArray_const_t array,
4601  const struct hipChannelFormatDesc &desc)
4602 {
4603  return hipBindTextureToArray(&tex, array, &desc);
4604 }
4605 template<class T, int dim, enum hipTextureReadMode readMode>
4606 static inline hipError_t hipBindTextureToMipmappedArray(
4607  const struct texture<T, dim, readMode> &tex,
4608  hipMipmappedArray_const_t mipmappedArray)
4609 {
4610  struct hipChannelFormatDesc desc;
4611  hipArray_t levelArray;
4612  hipError_t err = hipGetMipmappedArrayLevel(&levelArray, mipmappedArray, 0);
4613  if (err != hipSuccess) {
4614  return err;
4615  }
4616  err = hipGetChannelDesc(&desc, levelArray);
4617  return (err == hipSuccess) ? hipBindTextureToMipmappedArray(&tex, mipmappedArray, &desc) : err;
4618 }
4619 template<class T, int dim, enum hipTextureReadMode readMode>
4620 static inline hipError_t hipBindTextureToMipmappedArray(
4621  const struct texture<T, dim, readMode> &tex,
4622  hipMipmappedArray_const_t mipmappedArray,
4623  const struct hipChannelFormatDesc &desc)
4624 {
4625  return hipBindTextureToMipmappedArray(&tex, mipmappedArray, &desc);
4626 }
4627 template<class T, int dim, enum hipTextureReadMode readMode>
4628 DEPRECATED(DEPRECATED_MSG)
4629 static inline hipError_t hipUnbindTexture(
4630  const struct texture<T, dim, readMode> &tex)
4631 {
4632  return hipUnbindTexture(&tex);
4633 }
4634 
4635 
4636 #endif // __cplusplus
4637 
4645 typedef unsigned int GLuint;
4646 
4647 // Queries devices associated with GL Context.
4648 hipError_t hipGLGetDevices(unsigned int* pHipDeviceCount, int* pHipDevices,
4649  unsigned int hipDeviceCount, hipGLDeviceList deviceList);
4650 // Registers a GL Buffer for interop and returns corresponding graphics resource.
4651 hipError_t hipGraphicsGLRegisterBuffer(hipGraphicsResource** resource, GLuint buffer,
4652  unsigned int flags);
4653 // Maps a graphics resource for hip access.
4654 hipError_t hipGraphicsMapResources(int count, hipGraphicsResource_t* resources,
4655  hipStream_t stream __dparm(0) );
4656 // Gets device accessible address of a graphics resource.
4657 hipError_t hipGraphicsResourceGetMappedPointer(void** devPtr, size_t* size,
4658  hipGraphicsResource_t resource);
4659 // Unmaps a graphics resource for hip access.
4660 hipError_t hipGraphicsUnmapResources(int count, hipGraphicsResource_t* resources,
4661  hipStream_t stream __dparm(0));
4662 // Unregisters a graphics resource.
4663 hipError_t hipGraphicsUnregisterResource(hipGraphicsResource_t resource);
4664 // doxygen end GL Interop
4669 #ifdef __GNUC__
4670 #pragma GCC visibility pop
4671 #endif
4672 // doxygen end HIP API
4677 #elif !(defined(__HIP_PLATFORM_HCC__) || defined(__HIP_PLATFORM_AMD__)) && (defined(__HIP_PLATFORM_NVCC__) || defined(__HIP_PLATFORM_NVIDIA__))
4678 #include "hip/nvidia_detail/nvidia_hip_runtime_api.h"
4679 #else
4680 #error("Must define exactly one of __HIP_PLATFORM_AMD__ or __HIP_PLATFORM_NVIDIA__");
4681 #endif
4682 
4683 
4695 #if defined(__cplusplus) && !defined(__HIP_DISABLE_CPP_FUNCTIONS__)
4696 template <class T>
4697 static inline hipError_t hipMalloc(T** devPtr, size_t size) {
4698  return hipMalloc((void**)devPtr, size);
4699 }
4700 
4701 // Provide an override to automatically typecast the pointer type from void**, and also provide a
4702 // default for the flags.
4703 template <class T>
4704 static inline hipError_t hipHostMalloc(T** ptr, size_t size,
4705  unsigned int flags = hipHostMallocDefault) {
4706  return hipHostMalloc((void**)ptr, size, flags);
4707 }
4708 
4709 template <class T>
4710 static inline hipError_t hipMallocManaged(T** devPtr, size_t size,
4711  unsigned int flags = hipMemAttachGlobal) {
4712  return hipMallocManaged((void**)devPtr, size, flags);
4713 }
4714 #endif
4715 #endif
4716 
4717 #if USE_PROF_API
4718 #include <hip/amd_detail/hip_prof_str.h>
4719 #endif
hipFuncAttributes
Definition: hip_runtime_api.h:469
hipExternalMemoryBufferDesc_st
Definition: hip_runtime_api.h:715
hipPointerGetAttributes
hipError_t hipPointerGetAttributes(hipPointerAttribute_t *attributes, const void *ptr)
Return attributes for the specified pointer.
hipGraphExecUpdateErrorFunctionChanged
@ hipGraphExecUpdateErrorFunctionChanged
The update failed because the function of a kernel node changed.
Definition: hip_runtime_api.h:4153
hipDeviceAttributeMaxPitch
@ hipDeviceAttributeMaxPitch
Maximum pitch in bytes allowed by memory copies.
Definition: hip_runtime_api.h:368
hipMemset3DAsync
hipError_t hipMemset3DAsync(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent, hipStream_t stream __dparm(0))
Fills asynchronously the memory area pointed to by pitchedDevPtr with the constant value.
hipGraphExecUpdateErrorTopologyChanged
@ hipGraphExecUpdateErrorTopologyChanged
The update failed because the topology changed.
Definition: hip_runtime_api.h:4151
hipMemcpy3D
hipError_t hipMemcpy3D(const struct hipMemcpy3DParms *p)
Copies data between host and device.
hipErrorStreamCaptureImplicit
hipErrorStreamCaptureImplicit
Definition: hip_runtime_api.h:296
hipIpcOpenMemHandle
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...
hipCtxEnablePeerAccess
hipError_t hipCtxEnablePeerAccess(hipCtx_t peerCtx, unsigned int flags)
Enables direct access to memory allocations in a peer context.
hipGraphicsRegisterFlags
hipGraphicsRegisterFlags
Definition: hip_runtime_api.h:797
hipDeviceProp_t::regsPerBlock
int regsPerBlock
Registers per block.
Definition: hip_runtime_api.h:88
hipMallocPitch
hipError_t hipMallocPitch(void **ptr, size_t *pitch, size_t width, size_t height)
hipSetDevice
hipError_t hipSetDevice(int deviceId)
Set default device to be used for subsequent hip API calls from this thread.
hipDeviceAttributeManagedMemory
@ hipDeviceAttributeManagedMemory
Device supports allocating managed memory on this system.
Definition: hip_runtime_api.h:384
hipDeviceGetP2PAttribute
hipError_t hipDeviceGetP2PAttribute(int *value, hipDeviceP2PAttr attr, int srcDevice, int dstDevice)
Returns a value for attr of link between two devices.
hipMemsetD16Async
hipError_t hipMemsetD16Async(hipDeviceptr_t dest, unsigned short value, size_t count, hipStream_t stream __dparm(0))
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant short value v...
hipMemcpy2DFromArrayAsync
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 __dparm(0))
Copies data between host and device asynchronously.
hipDeviceAttributeMemoryBusWidth
@ hipDeviceAttributeMemoryBusWidth
Global memory bus width in bits.
Definition: hip_runtime_api.h:339
hipDeviceAttributePageableMemoryAccessUsesHostPageTables
@ hipDeviceAttributePageableMemoryAccessUsesHostPageTables
Definition: hip_runtime_api.h:391
hipDestroyExternalMemory
hipError_t hipDestroyExternalMemory(hipExternalMemory_t extMem)
Destroys an external memory object.
hipGraphNode_t
struct hipGraphNode * hipGraphNode_t
Definition: hip_runtime_api.h:4107
hipGetErrorString
const char * hipGetErrorString(hipError_t hipError)
Return handy text string message to explain the error which occurred.
hipGraphLaunch
hipError_t hipGraphLaunch(hipGraphExec_t graphExec, hipStream_t stream)
launches an executable graph in a stream
hipGetDeviceFlags
hipError_t hipGetDeviceFlags(unsigned int *flags)
Gets the flags set for current device.
hipDeviceGetByPCIBusId
hipError_t hipDeviceGetByPCIBusId(int *device, const char *pciBusId)
Returns a handle to a compute device.
hipErrorInvalidMemcpyDirection
hipErrorInvalidMemcpyDirection
Invalid memory copy direction.
Definition: hip_runtime_api.h:222
hipMalloc3DArray
hipError_t hipMalloc3DArray(hipArray **array, const struct hipChannelFormatDesc *desc, struct hipExtent extent, unsigned int flags)
Allocate an array on the device.
hipDeviceArch_t::hasGlobalInt64Atomics
unsigned hasGlobalInt64Atomics
64-bit integer atomics for global memory.
Definition: hip_runtime_api.h:54
hipDeviceProp_t::minor
int minor
Definition: hip_runtime_api.h:100
hipDeviceAttributeMaxBlockDimX
@ hipDeviceAttributeMaxBlockDimX
Maximum x-dimension of a block.
Definition: hip_runtime_api.h:323
hipErrorInvalidDevicePointer
hipErrorInvalidDevicePointer
Invalid Device Pointer.
Definition: hip_runtime_api.h:221
hipChooseDevice
hipError_t hipChooseDevice(int *device, const hipDeviceProp_t *prop)
Device which matches hipDeviceProp_t is returned.
hipGraphGetRootNodes
hipError_t hipGraphGetRootNodes(hipGraph_t graph, hipGraphNode_t *pRootNodes, size_t *pNumRootNodes)
Returns graph's root nodes.
hipMemRangeGetAttribute
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.
hipStreamBeginCapture
hipError_t hipStreamBeginCapture(hipStream_t stream, hipStreamCaptureMode mode)
Begins graph capture on a stream.
hipMemcpy2DAsync
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 __dparm(0))
Copies data between host and device.
hipLaunchKernel
hipError_t hipLaunchKernel(const void *function_address, dim3 numBlocks, dim3 dimBlocks, void **args, size_t sharedMemBytes __dparm(0), hipStream_t stream __dparm(0))
C compliant kernel launch API.
hipMemsetD32
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...
hipGLDeviceList
hipGLDeviceList
Definition: hip_runtime_api.h:784
hipGraphCreate
hipError_t hipGraphCreate(hipGraph_t *pGraph, unsigned int flags)
Creates a graph.
hipErrorMapBufferObjectFailed
hipErrorMapBufferObjectFailed
Produced when the IPC memory attach failed from ROCr.
Definition: hip_runtime_api.h:234
hipDeviceProp_t::texturePitchAlignment
size_t texturePitchAlignment
Pitch alignment requirement for texture references bound to pitched memory.
Definition: hip_runtime_api.h:130
hipGraphExecDestroy
hipError_t hipGraphExecDestroy(hipGraphExec_t pGraphExec)
Destroys an executable graph.
hipDeviceAttributeMaxGridDimX
@ hipDeviceAttributeMaxGridDimX
Maximum x-dimension of a grid.
Definition: hip_runtime_api.h:326
hipDeviceArch_t::hasThreadFenceSystem
unsigned hasThreadFenceSystem
__threadfence_system.
Definition: hip_runtime_api.h:67
hipStreamCreate
hipError_t hipStreamCreate(hipStream_t *stream)
Create an asynchronous stream.
hipGraphNodeTypeGraph
@ hipGraphNodeTypeGraph
Node which executes an embedded graph.
Definition: hip_runtime_api.h:4117
hipGraphAddMemcpyNode1D
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.
hipDeviceProp_t::pageableMemoryAccessUsesHostPageTables
int pageableMemoryAccessUsesHostPageTables
Device accesses pageable memory via the host's page tables.
Definition: hip_runtime_api.h:149
hipDeviceGetStreamPriorityRange
hipError_t hipDeviceGetStreamPriorityRange(int *leastPriority, int *greatestPriority)
Returns numerical values that correspond to the least and greatest stream priority.
hipGraphAddKernelNode
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.
hipWaitExternalSemaphoresAsync
hipError_t hipWaitExternalSemaphoresAsync(const hipExternalSemaphore_t *extSemArray, const hipExternalSemaphoreWaitParams *paramsArray, unsigned int numExtSems, hipStream_t stream)
Waits on a set of external semaphore objects.
hipIpcEventHandle_st
Definition: hip_runtime_api.h:464
hipMemAdviseSetPreferredLocation
@ hipMemAdviseSetPreferredLocation
Definition: hip_runtime_api.h:578
hipDeviceProp_t::maxTexture3D
int maxTexture3D[3]
Maximum dimensions (width, height, depth) of 3D images, in image elements.
Definition: hip_runtime_api.h:125
hipStreamCreateWithPriority
hipError_t hipStreamCreateWithPriority(hipStream_t *stream, unsigned int flags, int priority)
Create an asynchronous stream with the specified priority.
hipMemRangeAttributeCoherencyMode
@ hipMemRangeAttributeCoherencyMode
Definition: hip_runtime_api.h:619
hipFuncCache_t
hipFuncCache_t
Definition: hip_runtime_api.h:658
hipGraphAddDependencies
hipError_t hipGraphAddDependencies(hipGraph_t graph, const hipGraphNode_t *from, const hipGraphNode_t *to, size_t numDependencies)
Adds dependency edges to a graph.
hipDeviceProp_t::cooperativeMultiDeviceUnmatchedBlockDim
int cooperativeMultiDeviceUnmatchedBlockDim
Definition: hip_runtime_api.h:138
hipPeekAtLastError
hipError_t hipPeekAtLastError(void)
Return last error returned by any HIP runtime API call.
hipGraph_t
struct ihipGraph * hipGraph_t
Definition: hip_runtime_api.h:4103
hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int *numBlocks, const void *f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags __dparm(hipOccupancyDefault))
Returns occupancy for a device function.
hipModuleGetTexRef
hipError_t hipModuleGetTexRef(textureReference **texRef, hipModule_t hmod, const char *name)
returns the handle of the texture reference with the name from the module.
hipMemcpy3DAsync
hipError_t hipMemcpy3DAsync(const struct hipMemcpy3DParms *p, hipStream_t stream __dparm(0))
Copies data between host and device asynchronously.
hipDeviceGetPCIBusId
hipError_t hipDeviceGetPCIBusId(char *pciBusId, int len, int device)
Returns a PCI Bus Id string for the device, overloaded to take int device ID.
hipGraphDestroy
hipError_t hipGraphDestroy(hipGraph_t graph)
Destroys a graph.
hipHostGetFlags
hipError_t hipHostGetFlags(unsigned int *flagsPtr, void *hostPtr)
Return flags associated with host pointer.
hipErrorHostMemoryNotRegistered
hipErrorHostMemoryNotRegistered
Produced when trying to unlock a non-page-locked memory.
Definition: hip_runtime_api.h:274
hipGraphNodeTypeKernel
@ hipGraphNodeTypeKernel
GPU kernel node.
Definition: hip_runtime_api.h:4113
hipErrorRuntimeOther
hipErrorRuntimeOther
Definition: hip_runtime_api.h:309
hipDeviceAttributeClockRate
@ hipDeviceAttributeClockRate
Peak clock frequency in kilohertz.
Definition: hip_runtime_api.h:337
hipMemGetAddressRange
hipError_t hipMemGetAddressRange(hipDeviceptr_t *pbase, size_t *psize, hipDeviceptr_t dptr)
Get information on memory allocations.
hipDeviceProp_t::asicRevision
int asicRevision
Revision of the GPU in this device.
Definition: hip_runtime_api.h:143
hipDeviceAttributeDirectManagedMemAccessFromHost
@ hipDeviceAttributeDirectManagedMemAccessFromHost
Definition: hip_runtime_api.h:385
hipGraphNodeTypeMemcpyFromSymbol
@ hipGraphNodeTypeMemcpyFromSymbol
MemcpyFromSymbol node.
Definition: hip_runtime_api.h:4122
hipDestroyExternalSemaphore
hipError_t hipDestroyExternalSemaphore(hipExternalSemaphore_t extSem)
Destroys an external semaphore object and releases any references to the underlying resource....
hipStreamWaitEvent
hipError_t hipStreamWaitEvent(hipStream_t stream, hipEvent_t event, unsigned int flags)
Make the specified compute stream wait for an event.
hipFuncCachePreferEqual
@ hipFuncCachePreferEqual
prefer equal size L1 cache and shared memory
Definition: hip_runtime_api.h:662
hipGraphInstantiate
hipError_t hipGraphInstantiate(hipGraphExec_t *pGraphExec, hipGraph_t graph, hipGraphNode_t *pErrorNode, char *pLogBuffer, size_t bufferSize)
Creates an executable graph from a graph.
hipDeviceAttributeMaxGridDimZ
@ hipDeviceAttributeMaxGridDimZ
Maximum z-dimension of a grid.
Definition: hip_runtime_api.h:328
hipGetDevice
hipError_t hipGetDevice(int *deviceId)
Return the default device id for the calling host thread.
hipMallocArray
hipError_t hipMallocArray(hipArray **array, const hipChannelFormatDesc *desc, size_t width, size_t height __dparm(0), unsigned int flags __dparm(hipArrayDefault))
Allocate an array on the device.
hipGraphNodeTypeHost
@ hipGraphNodeTypeHost
Host (executable) node.
Definition: hip_runtime_api.h:4116
hipGraphExecKernelNodeSetParams
hipError_t hipGraphExecKernelNodeSetParams(hipGraphExec_t hGraphExec, hipGraphNode_t node, const hipKernelNodeParams *pNodeParams)
Sets the parameters for a kernel node in the given graphExec.
hipCtxSetCurrent
hipError_t hipCtxSetCurrent(hipCtx_t ctx)
Set the passed context as current/default.
hipMemRangeCoherencyModeCoarseGrain
@ hipMemRangeCoherencyModeCoarseGrain
Definition: hip_runtime_api.h:600
hipMemcpyToArray
hipError_t hipMemcpyToArray(hipArray *dst, size_t wOffset, size_t hOffset, const void *src, size_t count, hipMemcpyKind kind)
Copies data between host and device.
HIP_MEMCPY3D
Definition: driver_types.h:379
hipMemoryTypeDevice
@ hipMemoryTypeDevice
Definition: hip_runtime_api.h:158
hipDeviceAttributeMaxRegistersPerBlock
@ hipDeviceAttributeMaxRegistersPerBlock
Definition: hip_runtime_api.h:333
hipMemcpyDtoDAsync
hipError_t hipMemcpyDtoDAsync(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
Copy data from Device to Device asynchronously.
hipErrorNoDevice
hipErrorNoDevice
Call to hipGetDeviceCount returned 0 devices.
Definition: hip_runtime_api.h:227
hipDeviceProp_t::isLargeBar
int isLargeBar
1: if it is a large PCI bar device, else 0
Definition: hip_runtime_api.h:142
hipDeviceAttributeComputeCapabilityMinor
@ hipDeviceAttributeComputeCapabilityMinor
Minor compute capability version number.
Definition: hip_runtime_api.h:347
hipGraphMemcpyNodeSetParams
hipError_t hipGraphMemcpyNodeSetParams(hipGraphNode_t node, const hipMemcpy3DParms *pNodeParams)
Sets a memcpy node's parameters.
hipDeviceAttributeAsicRevision
@ hipDeviceAttributeAsicRevision
Revision of the GPU in this device.
Definition: hip_runtime_api.h:383
hipStreamCaptureStatus
hipStreamCaptureStatus
Definition: hip_runtime_api.h:4166
hipMemcpy2DFromArray
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.
hipGraphExecUpdateError
@ hipGraphExecUpdateError
Definition: hip_runtime_api.h:4149
hipModuleOccupancyMaxPotentialBlockSizeWithFlags
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
hipDeviceProp_t::concurrentManagedAccess
int concurrentManagedAccess
Device can coherently access managed memory concurrently with the CPU.
Definition: hip_runtime_api.h:146
hipDeviceProp_t::l2CacheSize
int l2CacheSize
L2 cache size.
Definition: hip_runtime_api.h:104
hipDevicePrimaryCtxRelease
hipError_t hipDevicePrimaryCtxRelease(hipDevice_t dev)
Release the primary context on the GPU.
hipDeviceProp_t::textureAlignment
size_t textureAlignment
Alignment requirement for textures.
Definition: hip_runtime_api.h:129
hipHostMalloc
hipError_t hipHostMalloc(void **ptr, size_t size, unsigned int flags)
Allocate device accessible page locked host memory.
hipDeviceAttributeKernelExecTimeout
@ hipDeviceAttributeKernelExecTimeout
Run time limit for kernels executed on the device.
Definition: hip_runtime_api.h:371
dim3::y
uint32_t y
y
Definition: hip_runtime_api.h:680
hipDeviceAttributeL2CacheSize
@ hipDeviceAttributeL2CacheSize
Definition: hip_runtime_api.h:342
hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedGridDim
Definition: hip_runtime_api.h:377
hipDeviceGetName
hipError_t hipDeviceGetName(char *name, int len, hipDevice_t device)
Returns an identifer string for the device.
hipDeviceAttributeMaxTexture3DWidth
@ hipDeviceAttributeMaxTexture3DWidth
Maximum dimension width of 3D images in image elements.
Definition: hip_runtime_api.h:361
hipDeviceArch_t::hasSurfaceFuncs
unsigned hasSurfaceFuncs
Surface functions.
Definition: hip_runtime_api.h:71
hipDeviceAttributeIntegrated
@ hipDeviceAttributeIntegrated
iGPU
Definition: hip_runtime_api.h:355
hipDeviceProp_t::isMultiGpuBoard
int isMultiGpuBoard
1 if device is on a multi-GPU board, 0 if not.
Definition: hip_runtime_api.h:115
hipMemcpyParam2DAsync
hipError_t hipMemcpyParam2DAsync(const hip_Memcpy2D *pCopy, hipStream_t stream __dparm(0))
Copies memory for 2D arrays.
hipDeviceAttributeMaxGridDimY
@ hipDeviceAttributeMaxGridDimY
Maximum y-dimension of a grid.
Definition: hip_runtime_api.h:327
hipMemAdviseUnsetCoarseGrain
@ hipMemAdviseUnsetCoarseGrain
Restores cache coherency policy back to fine-grain.
Definition: hip_runtime_api.h:590
hipMemoryTypeHost
@ hipMemoryTypeHost
Memory is physically located on host.
Definition: hip_runtime_api.h:157
hipDeviceEnablePeerAccess
hipError_t hipDeviceEnablePeerAccess(int peerDeviceId, unsigned int flags)
Enable direct access from current device's virtual address space to memory allocations physically loc...
hipCtxSetCacheConfig
hipError_t hipCtxSetCacheConfig(hipFuncCache_t cacheConfig)
Set L1/Shared cache partition.
hipExternalMemoryGetMappedBuffer
hipError_t hipExternalMemoryGetMappedBuffer(void **devPtr, hipExternalMemory_t extMem, const hipExternalMemoryBufferDesc *bufferDesc)
Maps a buffer onto an imported memory object.
hipErrorInvalidContext
hipErrorInvalidContext
Produced when input context is invalid.
Definition: hip_runtime_api.h:230
hipDeviceArch_t::hasSharedInt64Atomics
unsigned hasSharedInt64Atomics
64-bit integer atomics for shared memory.
Definition: hip_runtime_api.h:55
hipDeviceProp_t::computeMode
int computeMode
Compute mode.
Definition: hip_runtime_api.h:106
hipGraphicsRegisterFlagsReadOnly
@ hipGraphicsRegisterFlagsReadOnly
HIP will not write to this registered resource.
Definition: hip_runtime_api.h:799
hipMallocMipmappedArray
hipError_t hipMallocMipmappedArray(hipMipmappedArray_t *mipmappedArray, const struct hipChannelFormatDesc *desc, struct hipExtent extent, unsigned int numLevels, unsigned int flags __dparm(0))
Allocate a mipmapped array on the device.
hipExternalSemaphoreHandleDesc_st
Definition: hip_runtime_api.h:727
hipCtxPushCurrent
hipError_t hipCtxPushCurrent(hipCtx_t ctx)
Push the context to be set as current/ default context.
hipDeviceAttributeIsMultiGpuBoard
@ hipDeviceAttributeIsMultiGpuBoard
Multiple GPU devices.
Definition: hip_runtime_api.h:354
hipSharedMemConfig
hipSharedMemConfig
Definition: hip_runtime_api.h:667
hipGraphGetNodes
hipError_t hipGraphGetNodes(hipGraph_t graph, hipGraphNode_t *nodes, size_t *numNodes)
Returns graph nodes.
hipDrvMemcpy3D
hipError_t hipDrvMemcpy3D(const HIP_MEMCPY3D *pCopy)
Copies data between host and device.
dim3::x
uint32_t x
x
Definition: hip_runtime_api.h:679
hipDeviceProp_t::clockRate
int clockRate
Max clock frequency of the multiProcessors in khz.
Definition: hip_runtime_api.h:93
hipDeviceProp_t::hdpRegFlushCntl
unsigned int * hdpRegFlushCntl
Addres of HDP_REG_COHERENCY_FLUSH_CNTL register.
Definition: hip_runtime_api.h:127
hipErrorPeerAccessNotEnabled
hipErrorPeerAccessNotEnabled
Peer access was never enabled from the current device.
Definition: hip_runtime_api.h:267
hipDeviceComputeCapability
hipError_t hipDeviceComputeCapability(int *major, int *minor, hipDevice_t device)
Returns the compute capability of the device.
hipStreamCallback_t
void(* hipStreamCallback_t)(hipStream_t stream, hipError_t status, void *userData)
Definition: hip_runtime_api.h:1600
hipDeviceProp_t::maxTexture1DLinear
int maxTexture1DLinear
Maximum size for 1D textures bound to linear memory.
Definition: hip_runtime_api.h:122
hipGraphKernelNodeSetParams
hipError_t hipGraphKernelNodeSetParams(hipGraphNode_t node, const hipKernelNodeParams *pNodeParams)
Sets a kernel node's parameters.
hipDeviceArch_t::hasDynamicParallelism
unsigned hasDynamicParallelism
Dynamic parallelism.
Definition: hip_runtime_api.h:73
hipMemoryAdvise
hipMemoryAdvise
Definition: hip_runtime_api.h:574
hip_Memcpy2D
Definition: driver_types.h:95
hipGetMipmappedArrayLevel
hipError_t hipGetMipmappedArrayLevel(hipArray_t *levelArray, hipMipmappedArray_const_t mipmappedArray, unsigned int level)
Gets a mipmap level of a HIP mipmapped array.
hipExternalSemaphoreWaitParams_st
Definition: hip_runtime_api.h:755
hipDeviceProp_t::canMapHostMemory
int canMapHostMemory
Check whether HIP can map host memory.
Definition: hip_runtime_api.h:116
hipDeviceProp_t::sharedMemPerBlock
size_t sharedMemPerBlock
Size of shared memory region (in bytes).
Definition: hip_runtime_api.h:87
hipModuleOccupancyMaxPotentialBlockSize
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
__hipPushCallConfiguration
hipError_t __hipPushCallConfiguration(dim3 gridDim, dim3 blockDim, size_t sharedMem __dparm(0), hipStream_t stream __dparm(0))
Push configuration of a kernel launch.
hipIpcCloseMemHandle
hipError_t hipIpcCloseMemHandle(void *devPtr)
Close memory mapped with hipIpcOpenMemHandle.
hipDeviceAttributeConcurrentManagedAccess
@ hipDeviceAttributeConcurrentManagedAccess
Definition: hip_runtime_api.h:387
hipGraphExecUpdateErrorParametersChanged
@ hipGraphExecUpdateErrorParametersChanged
The update failed because the parameters changed in a way that is not supported.
Definition: hip_runtime_api.h:4155
hipDevicePrimaryCtxGetState
hipError_t hipDevicePrimaryCtxGetState(hipDevice_t dev, unsigned int *flags, int *active)
Get the state of the primary context.
hipDeviceAttributeCooperativeMultiDeviceLaunch
@ hipDeviceAttributeCooperativeMultiDeviceLaunch
Support cooperative launch on multiple devices.
Definition: hip_runtime_api.h:357
hipLaunchCooperativeKernelMultiDevice
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...
hipDeviceProp_t::maxThreadsPerMultiProcessor
int maxThreadsPerMultiProcessor
Maximum resident threads per multi-processor.
Definition: hip_runtime_api.h:105
hipDeviceSetCacheConfig
hipError_t hipDeviceSetCacheConfig(hipFuncCache_t cacheConfig)
Set L1/Shared cache partition.
hipDeviceProp_t::major
int major
Definition: hip_runtime_api.h:97
hipDeviceAttributeMaxSharedMemoryPerBlock
@ hipDeviceAttributeMaxSharedMemoryPerBlock
Definition: hip_runtime_api.h:329
hipMemcpyAtoH
hipError_t hipMemcpyAtoH(void *dst, hipArray *srcArray, size_t srcOffset, size_t count)
Copies data between host and device.
hipGetDeviceCount
hipError_t hipGetDeviceCount(int *count)
Return number of compute-capable devices.
hipSuccess
hipSuccess
Successful completion.
Definition: hip_runtime_api.h:204
hipExternalSemaphoreWaitParams
struct hipExternalSemaphoreWaitParams_st hipExternalSemaphoreWaitParams
hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags
hipError_t hipModuleOccupancyMaxActiveBlocksPerMultiprocessorWithFlags(int *numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk, unsigned int flags)
Returns occupancy for a device function.
hipSetupArgument
hipError_t hipSetupArgument(const void *arg, size_t size, size_t offset)
Set a kernel argument.
hipStreamAttachMemAsync
hipError_t hipStreamAttachMemAsync(hipStream_t stream, void *dev_ptr, size_t length __dparm(0), unsigned int flags __dparm(hipMemAttachSingle))
Attach memory to a stream asynchronously in HIP.
hipHostUnregister
hipError_t hipHostUnregister(void *hostPtr)
Un-register host pointer.
hipErrorStreamCaptureInvalidated
hipErrorStreamCaptureInvalidated
Definition: hip_runtime_api.h:285
hipStreamWriteValue32
hipError_t hipStreamWriteValue32(hipStream_t stream, void *ptr, uint32_t value, unsigned int flags)
Enqueues a write command to the stream.[BETA].
hipStreamGetFlags
hipError_t hipStreamGetFlags(hipStream_t stream, unsigned int *flags)
Return flags associated with this stream.
hipMemsetD8Async
hipError_t hipMemsetD8Async(hipDeviceptr_t dest, unsigned char value, size_t count, hipStream_t stream __dparm(0))
Fills the first sizeBytes bytes of the memory area pointed to by dest with the constant byte value va...
hipDeviceAttributeMaxThreadsPerBlock
@ hipDeviceAttributeMaxThreadsPerBlock
Maximum number of threads per block.
Definition: hip_runtime_api.h:322
hipExtStreamCreateWithCUMask
hipError_t hipExtStreamCreateWithCUMask(hipStream_t *stream, uint32_t cuMaskSize, const uint32_t *cuMask)
Create an asynchronous stream with the specified CU mask.
hipGraphExecUpdateErrorNotSupported
@ hipGraphExecUpdateErrorNotSupported
The update failed because something about the node is not supported.
Definition: hip_runtime_api.h:4157
hipDeviceProp_t::gcnArch
int gcnArch
DEPRECATED: use gcnArchName instead.
Definition: hip_runtime_api.h:117
hipStreamSynchronize
hipError_t hipStreamSynchronize(hipStream_t stream)
Wait for all commands in stream to complete.
hipDeviceArch_t
Definition: hip_runtime_api.h:45
hipGetErrorName
const char * hipGetErrorName(hipError_t hip_error)
Return name of the specified error code in text form.
hipDeviceProp_t::kernelExecTimeoutEnabled
int kernelExecTimeoutEnabled
Run time limit for kernels executed on the device.
Definition: hip_runtime_api.h:131
dim3
struct dim3 dim3
hipDeviceGet
hipError_t hipDeviceGet(hipDevice_t *device, int ordinal)
Returns a handle to a compute device.
hipStreamWaitValue64
hipError_t hipStreamWaitValue64(hipStream_t stream, void *ptr, uint64_t value, unsigned int flags, uint64_t mask __dparm(0xFFFFFFFFFFFFFFFF))
Enqueues a wait command to the stream.[BETA].
hipMemcpyDtoD
hipError_t hipMemcpyDtoD(hipDeviceptr_t dst, hipDeviceptr_t src, size_t sizeBytes)
Copy data from Device to Device.
hipSurfaceObject_t
unsigned long long hipSurfaceObject_t
Definition: surface_types.h:33
hipStreamWaitValue32
hipError_t hipStreamWaitValue32(hipStream_t stream, void *ptr, uint32_t value, unsigned int flags, uint32_t mask __dparm(0xFFFFFFFF))
Enqueues a wait command to the stream.[BETA].
hipDeviceProp_t::maxTexture1D
int maxTexture1D
Maximum number of elements in 1D images.
Definition: hip_runtime_api.h:123
hipMemcpy3DParms
Definition: driver_types.h:369
hipDeviceAttributeMaxBlockDimZ
@ hipDeviceAttributeMaxBlockDimZ
Maximum z-dimension of a block.
Definition: hip_runtime_api.h:325
hipStreamCaptureStatusInvalidated
@ hipStreamCaptureStatusInvalidated
Definition: hip_runtime_api.h:4169
hipMallocManaged
hipError_t hipMallocManaged(void **dev_ptr, size_t size, unsigned int flags __dparm(hipMemAttachGlobal))
Allocates memory that will be automatically managed by HIP.
hipIpcGetMemHandle
hipError_t hipIpcGetMemHandle(hipIpcMemHandle_t *handle, void *devPtr)
Gets an interprocess memory handle for an existing device memory allocation.
hipMemcpyHtoD
hipError_t hipMemcpyHtoD(hipDeviceptr_t dst, void *src, size_t sizeBytes)
Copy data from Host to Device.
hipDriverGetVersion
hipError_t hipDriverGetVersion(int *driverVersion)
Returns the approximate HIP driver version.
hipGraphMemcpyNodeGetParams
hipError_t hipGraphMemcpyNodeGetParams(hipGraphNode_t node, hipMemcpy3DParms *pNodeParams)
Gets a memcpy node's parameters.
hipDeviceArch_t::hasDoubles
unsigned hasDoubles
Double-precision floating point.
Definition: hip_runtime_api.h:58
hipErrorInvalidKernelFile
hipErrorInvalidKernelFile
In CUDA DRV, it is CUDA_ERROR_INVALID_PTX.
Definition: hip_runtime_api.h:247
hipDeviceProp_t::maxThreadsPerBlock
int maxThreadsPerBlock
Max work items per work group or workgroup max size.
Definition: hip_runtime_api.h:90
hipCtxGetFlags
hipError_t hipCtxGetFlags(unsigned int *flags)
Return flags used for creating default context.
hipDeviceAttributeMaxBlockDimY
@ hipDeviceAttributeMaxBlockDimY
Maximum y-dimension of a block.
Definition: hip_runtime_api.h:324
hipMemcpy2DToArray
hipError_t hipMemcpy2DToArray(hipArray *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.
hipMemAllocPitch
hipError_t hipMemAllocPitch(hipDeviceptr_t *dptr, size_t *pitch, size_t widthInBytes, size_t height, unsigned int elementSizeBytes)
hipDeviceProp_t
Definition: hip_runtime_api.h:84
hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedBlockDim
Definition: hip_runtime_api.h:379
hipErrorStreamCaptureUnjoined
hipErrorStreamCaptureUnjoined
Definition: hip_runtime_api.h:290
hipDeviceAttributeMaxTexture2DHeight
@ hipDeviceAttributeMaxTexture2DHeight
Maximum dimension height of 2D images in image elements.
Definition: hip_runtime_api.h:360
hipDeviceArch_t::hasSharedInt32Atomics
unsigned hasSharedInt32Atomics
32-bit integer atomics for shared memory.
Definition: hip_runtime_api.h:49
hipErrorInvalidValue
hipErrorInvalidValue
Definition: hip_runtime_api.h:205
hipDeviceProp_t::memPitch
size_t memPitch
Maximum pitch in bytes allowed by memory copies.
Definition: hip_runtime_api.h:128
hipMemsetD32Async
hipError_t hipMemsetD32Async(hipDeviceptr_t dst, int value, size_t count, hipStream_t stream __dparm(0))
Fills the memory area pointed to by dev with the constant integer value for specified number of times...
hipGraphNodeTypeMemcpy
@ hipGraphNodeTypeMemcpy
Memcpy 3D node.
Definition: hip_runtime_api.h:4114
hipDeviceProp_t::pciBusID
int pciBusID
PCI Bus ID.
Definition: hip_runtime_api.h:112
hipStreamEndCapture
hipError_t hipStreamEndCapture(hipStream_t stream, hipGraph_t *pGraph)
Ends capture on a stream, returning the captured graph.
hipMemRangeGetAttributes
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.
hipRuntimeGetVersion
hipError_t hipRuntimeGetVersion(int *runtimeVersion)
Returns the approximate HIP Runtime version.
hipDeviceAttributeComputeCapabilityMajor
@ hipDeviceAttributeComputeCapabilityMajor
Major compute capability version number.
Definition: hip_runtime_api.h:346
hipConfigureCall
hipError_t hipConfigureCall(dim3 gridDim, dim3 blockDim, size_t sharedMem __dparm(0), hipStream_t stream __dparm(0))
Configure a kernel launch.
hipLaunchCooperativeKernel
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...
hipEventQuery
hipError_t hipEventQuery(hipEvent_t event)
Query event status.
hipDeviceAttributeMaxTexture3DDepth
@ hipDeviceAttributeMaxTexture3DDepth
Maximum dimensions depth of 3D images in image elements.
Definition: hip_runtime_api.h:363
hipExtLaunchMultiKernelMultiDevice
hipError_t hipExtLaunchMultiKernelMultiDevice(hipLaunchParams *launchParamsList, int numDevices, unsigned int flags)
Launches kernels on multiple devices and guarantees all specified kernels are dispatched on respectiv...
hipErrorRuntimeMemory
hipErrorRuntimeMemory
Definition: hip_runtime_api.h:307
hipDeviceAttributeMaxThreadsPerMultiProcessor
@ hipDeviceAttributeMaxThreadsPerMultiProcessor
Definition: hip_runtime_api.h:344
hipStreamGetPriority
hipError_t hipStreamGetPriority(hipStream_t stream, int *priority)
Query the priority of a stream.
hipOccupancyMaxActiveBlocksPerMultiprocessor
hipError_t hipOccupancyMaxActiveBlocksPerMultiprocessor(int *numBlocks, const void *f, int blockSize, size_t dynSharedMemPerBlk)
Returns occupancy for a device function.
hipDeviceProp_t::arch
hipDeviceArch_t arch
Architectural feature flags. New for HIP.
Definition: hip_runtime_api.h:109
hipCtxGetApiVersion
hipError_t hipCtxGetApiVersion(hipCtx_t ctx, int *apiVersion)
Returns the approximate HIP api version.
hipSharedMemBankSizeFourByte
@ hipSharedMemBankSizeFourByte
Definition: hip_runtime_api.h:669
hipEventSynchronize
hipError_t hipEventSynchronize(hipEvent_t event)
Wait for an event to complete.
hipFuncCachePreferNone
@ hipFuncCachePreferNone
no preference for shared memory or L1 (default)
Definition: hip_runtime_api.h:659
hipCtxCreate
hipError_t hipCtxCreate(hipCtx_t *ctx, unsigned int flags, hipDevice_t device)
Create a context and set it as current/ default context.
hipDeviceAttributeHdpRegFlushCntl
@ hipDeviceAttributeHdpRegFlushCntl
Address of the HDP_REG_COHERENCY_FLUSH_CNTL register.
Definition: hip_runtime_api.h:366
hipErrorStreamCaptureUnmatched
hipErrorStreamCaptureUnmatched
The capture was not initiated in this stream.
Definition: hip_runtime_api.h:289
hipMemRangeCoherencyModeFineGrain
@ hipMemRangeCoherencyModeFineGrain
Definition: hip_runtime_api.h:598
hipHostFree
hipError_t hipHostFree(void *ptr)
Free memory allocated by the hcc hip host memory allocation API This API performs an implicit hipDevi...
hipDeviceAttributePciBusId
@ hipDeviceAttributePciBusId
PCI Bus ID.
Definition: hip_runtime_api.h:350
hipMemsetD16
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...
hipDeviceProp_t::tccDriver
int tccDriver
1:If device is Tesla device using TCC driver, else 0
Definition: hip_runtime_api.h:133
hipMipmappedArray
Definition: driver_types.h:117
hipMemRangeAttributeAccessedBy
@ hipMemRangeAttributeAccessedBy
Definition: hip_runtime_api.h:615
hipDeviceGetLimit
hipError_t hipDeviceGetLimit(size_t *pValue, enum hipLimit_t limit)
Get Resource limits of current device.
hipLaunchParams_t::args
void ** args
Arguments.
Definition: hip_runtime_api.h:690
hipMalloc
hipError_t hipMalloc(void **ptr, size_t size)
Allocate memory on the default accelerator.
hipGraphExecUpdateErrorNodeTypeChanged
@ hipGraphExecUpdateErrorNodeTypeChanged
The update failed because a node type changed.
Definition: hip_runtime_api.h:4152
hipMemoryTypeUnified
@ hipMemoryTypeUnified
Not used currently.
Definition: hip_runtime_api.h:162
hipMemsetParams
Definition: hip_runtime_api.h:4139
hipIpcMemHandle_st
Definition: hip_runtime_api.h:461
hipEventElapsedTime
hipError_t hipEventElapsedTime(float *ms, hipEvent_t start, hipEvent_t stop)
Return the elapsed time between two events.
hipGetLastError
hipError_t hipGetLastError(void)
Return last error returned by any HIP runtime API call and resets the stored error code to hipSuccess...
hipInit
hipError_t hipInit(unsigned int flags)
Explicitly initializes the HIP runtime.
hipGraphNodeTypeEmpty
@ hipGraphNodeTypeEmpty
Empty (no-op) node.
Definition: hip_runtime_api.h:4118
hipDeviceAttributeTexturePitchAlignment
@ hipDeviceAttributeTexturePitchAlignment
Pitch alignment requirement for 2D texture references bound to pitched memory;.
Definition: hip_runtime_api.h:370
hipDeviceAttributeWarpSize
@ hipDeviceAttributeWarpSize
Warp size in threads.
Definition: hip_runtime_api.h:332
hipDeviceArch_t::hasGlobalInt32Atomics
unsigned hasGlobalInt32Atomics
32-bit integer atomics for global memory.
Definition: hip_runtime_api.h:47
HIP_TEXTURE_DESC_st
Definition: driver_types.h:165
hipFuncSetCacheConfig
hipError_t hipFuncSetCacheConfig(const void *func, hipFuncCache_t config)
Set Cache configuration for a specific function.
hipCtxPopCurrent
hipError_t hipCtxPopCurrent(hipCtx_t *ctx)
Pop the current/default context and return the popped context.
hipArray
Definition: driver_types.h:82
hipDeviceArch_t::hasSyncThreadsExt
unsigned hasSyncThreadsExt
__syncthreads_count, syncthreads_and, syncthreads_or.
Definition: hip_runtime_api.h:68
hipHostAlloc
hipError_t hipHostAlloc(void **ptr, size_t size, unsigned int flags)
Allocate device accessible page locked host memory [Deprecated].
hipMemoryTypeArray
@ hipMemoryTypeArray
Definition: hip_runtime_api.h:160
hipErrorInvalidDevice
hipErrorInvalidDevice
DeviceID must be in range 0...#compute-devices.
Definition: hip_runtime_api.h:228
hipDeviceArch_t::hasFunnelShift
unsigned hasFunnelShift
Funnel two words into one with shift&mask caps.
Definition: hip_runtime_api.h:64
hipDeviceAttributeMaxTexture3DHeight
@ hipDeviceAttributeMaxTexture3DHeight
Maximum dimensions height of 3D images in image elements.
Definition: hip_runtime_api.h:362
hipGraphExec_t
struct hipGraphExec * hipGraphExec_t
Definition: hip_runtime_api.h:4111
hipDeviceAttributeMemoryClockRate
@ hipDeviceAttributeMemoryClockRate
Peak memory clock frequency in kilohertz.
Definition: hip_runtime_api.h:338
hipErrorNotReady
hipErrorNotReady
Definition: hip_runtime_api.h:258
hipHostGetDevicePointer
hipError_t hipHostGetDevicePointer(void **devPtr, void *hstPtr, unsigned int flags)
Get Device pointer from Host Pointer allocated through hipHostMalloc.
hipExternalSemaphoreSignalParams_st
Definition: hip_runtime_api.h:739
hipMemGetInfo
hipError_t hipMemGetInfo(size_t *free, size_t *total)
Query memory info. Return snapshot of free memory, and total allocatable memory on the device.
hipEventDestroy
hipError_t hipEventDestroy(hipEvent_t event)
Destroy the specified event.
hipMemAdviseSetCoarseGrain
@ hipMemAdviseSetCoarseGrain
Definition: hip_runtime_api.h:585
hipPointerAttribute_t
struct hipPointerAttribute_t hipPointerAttribute_t
hipDeviceSetSharedMemConfig
hipError_t hipDeviceSetSharedMemConfig(hipSharedMemConfig config)
The bank width of shared memory on current device is set.
hipDeviceReset
hipError_t hipDeviceReset(void)
The state of current device is discarded and updated to a fresh state.
hipDeviceProp_t::maxGridSize
int maxGridSize[3]
Max grid dimensions (XYZ).
Definition: hip_runtime_api.h:92
hipDeviceAttributeComputeMode
@ hipDeviceAttributeComputeMode
Compute mode that device is currently in.
Definition: hip_runtime_api.h:341
hipSetDeviceFlags
hipError_t hipSetDeviceFlags(unsigned flags)
The current device behavior is changed according the flags passed.
hipCtxGetCurrent
hipError_t hipCtxGetCurrent(hipCtx_t *ctx)
Get the handle of the current/ default context.
hipErrorStreamCaptureIsolation
hipErrorStreamCaptureIsolation
Definition: hip_runtime_api.h:292
hipGraphAddMemcpyNode
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.
hipDeviceAttributePciDeviceId
@ hipDeviceAttributePciDeviceId
PCI Device ID.
Definition: hip_runtime_api.h:351
hipFuncGetAttributes
hipError_t hipFuncGetAttributes(struct hipFuncAttributes *attr, const void *func)
Find out attributes for a given function.
hipKernelNodeParams
Definition: hip_runtime_api.h:4131
HIP_ARRAY3D_DESCRIPTOR
Definition: driver_types.h:74
hipFuncGetAttribute
hipError_t hipFuncGetAttribute(int *value, hipFunction_attribute attrib, hipFunction_t hfunc)
Find out a specific attribute for a given function.
hipMemAdviseUnsetReadMostly
@ hipMemAdviseUnsetReadMostly
Undo the effect of hipMemAdviseSetReadMostly.
Definition: hip_runtime_api.h:577
hipDeviceProp_t::maxSharedMemoryPerMultiProcessor
size_t maxSharedMemoryPerMultiProcessor
Maximum Shared Memory Per Multiprocessor.
Definition: hip_runtime_api.h:114
hipDeviceProp_t::clockInstructionRate
int clockInstructionRate
Definition: hip_runtime_api.h:107
hipIpcOpenEventHandle
hipError_t hipIpcOpenEventHandle(hipEvent_t *event, hipIpcEventHandle_t handle)
Opens an interprocess event handles.
dim3
Definition: hip_runtime_api.h:678
hipStreamQuery
hipError_t hipStreamQuery(hipStream_t stream)
Return hipSuccess if all of the operations in the specified stream have completed,...
hipLaunchByPtr
hipError_t hipLaunchByPtr(const void *func)
Launch a kernel.
hipExtStreamGetCUMask
hipError_t hipExtStreamGetCUMask(hipStream_t stream, uint32_t cuMaskSize, uint32_t *cuMask)
Get CU mask associated with an asynchronous stream.
hipExtMallocWithFlags
hipError_t hipExtMallocWithFlags(void **ptr, size_t sizeBytes, unsigned int flags)
Allocate memory on the default accelerator.
hipMemcpy2DToArrayAsync
hipError_t hipMemcpy2DToArrayAsync(hipArray *dst, size_t wOffset, size_t hOffset, const void *src, size_t spitch, size_t width, size_t height, hipMemcpyKind kind, hipStream_t stream __dparm(0))
Copies data between host and device.
hipDeviceProp_t::hdpMemFlushCntl
unsigned int * hdpMemFlushCntl
Addres of HDP_MEM_COHERENCY_FLUSH_CNTL register.
Definition: hip_runtime_api.h:126
hipDevicePrimaryCtxSetFlags
hipError_t hipDevicePrimaryCtxSetFlags(hipDevice_t dev, unsigned int flags)
Set flags for the primary context.
hipErrorStreamCaptureMerge
hipErrorStreamCaptureMerge
Definition: hip_runtime_api.h:287
hipPointerAttribute_t
Definition: hip_runtime_api.h:169
hipGraphNodeTypeWaitEvent
@ hipGraphNodeTypeWaitEvent
External event wait node.
Definition: hip_runtime_api.h:4119
hipDeviceAttributeTotalConstantMemory
@ hipDeviceAttributeTotalConstantMemory
Constant memory size in bytes.
Definition: hip_runtime_api.h:331
hipFree
hipError_t hipFree(void *ptr)
Free memory allocated by the hcc hip memory allocation API. This API performs an implicit hipDeviceSy...
hipGraphMemsetNodeSetParams
hipError_t hipGraphMemsetNodeSetParams(hipGraphNode_t node, const hipMemsetParams *pNodeParams)
Sets a memset node's parameters.
hipDeviceArch_t::hasWarpShuffle
unsigned hasWarpShuffle
Warp shuffle operations. (__shfl_*).
Definition: hip_runtime_api.h:63
hipLaunchParams_t::func
void * func
Device function symbol.
Definition: hip_runtime_api.h:687
hipArrayDefault
#define hipArrayDefault
Default HIP array allocation flag.
Definition: hip_runtime_api.h:550
hipDevicePrimaryCtxRetain
hipError_t hipDevicePrimaryCtxRetain(hipCtx_t *pctx, hipDevice_t dev)
Retain the primary context on the GPU.
hipGLDeviceListCurrentFrame
@ hipGLDeviceListCurrentFrame
frame
Definition: hip_runtime_api.h:786
hipCtxSynchronize
hipError_t hipCtxSynchronize(void)
Blocks until the default context has completed all preceding requested tasks.
hipMemcpyHtoA
hipError_t hipMemcpyHtoA(hipArray *dstArray, size_t dstOffset, const void *srcHost, size_t count)
Copies data between host and device.
hipFreeHost
hipError_t hipFreeHost(void *ptr)
Free memory allocated by the hcc hip host memory allocation API. [Deprecated].
surface_types.h
Defines surface types for HIP runtime.
hipDeviceProp_t::memoryBusWidth
int memoryBusWidth
Global memory bus width in bits.
Definition: hip_runtime_api.h:95
hipGraphExecUpdateSuccess
@ hipGraphExecUpdateSuccess
The update succeeded.
Definition: hip_runtime_api.h:4148
hipStreamAddCallback
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...
hipDeviceArch_t::hasWarpVote
unsigned hasWarpVote
Warp vote instructions (__any, __all).
Definition: hip_runtime_api.h:61
hipDeviceProp_t::name
char name[256]
Device name.
Definition: hip_runtime_api.h:85
hipLaunchParams_t::stream
hipStream_t stream
Stream identifier.
Definition: hip_runtime_api.h:692
hipMemcpyDtoHAsync
hipError_t hipMemcpyDtoHAsync(void *dst, hipDeviceptr_t src, size_t sizeBytes, hipStream_t stream)
Copy data from Device to Host asynchronously.
hipDeviceArch_t::hasGlobalFloatAtomicExch
unsigned hasGlobalFloatAtomicExch
32-bit float atomic exch for global memory.
Definition: hip_runtime_api.h:48
hipMemRangeCoherencyMode
hipMemRangeCoherencyMode
Definition: hip_runtime_api.h:597
hipGraphNodeTypeEventRecord
@ hipGraphNodeTypeEventRecord
External event record node.
Definition: hip_runtime_api.h:4120
hipErrorStreamCaptureUnsupported
hipErrorStreamCaptureUnsupported
Definition: hip_runtime_api.h:283
hipDeviceProp_t::concurrentKernels
int concurrentKernels
Device can possibly execute multiple kernels concurrently.
Definition: hip_runtime_api.h:110
hipMemRangeAttributeReadMostly
@ hipMemRangeAttributeReadMostly
Definition: hip_runtime_api.h:612
hipDeviceArch_t::hasWarpBallot
unsigned hasWarpBallot
Warp ballot instructions (__ballot).
Definition: hip_runtime_api.h:62
hipMemRangeAttributeLastPrefetchLocation
@ hipMemRangeAttributeLastPrefetchLocation
prefetched
Definition: hip_runtime_api.h:617
hipDeviceProp_t::totalGlobalMem
size_t totalGlobalMem
Size of global memory region (in bytes).
Definition: hip_runtime_api.h:86
hipDeviceAttributeTextureAlignment
@ hipDeviceAttributeTextureAlignment
Alignment requirement for textures.
Definition: hip_runtime_api.h:369
hipDrvMemcpy3DAsync
hipError_t hipDrvMemcpy3DAsync(const HIP_MEMCPY3D *pCopy, hipStream_t stream)
Copies data between host and device asynchronously.
hipEventRecord
hipError_t hipEventRecord(hipEvent_t event, hipStream_t stream)
Record an event in the specified stream.
hipExternalMemoryHandleDesc_st
Definition: hip_runtime_api.h:703
hipLaunchParams_t::gridDim
dim3 gridDim
Grid dimentions.
Definition: hip_runtime_api.h:688
hipDeviceProp_t::directManagedMemAccessFromHost
int directManagedMemAccessFromHost
Host can directly access managed memory on the device without migration.
Definition: hip_runtime_api.h:145
hipMemcpy2D
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.
hipExtent
Definition: driver_types.h:358
hipPitchedPtr
Definition: driver_types.h:352
hipHostMallocDefault
#define hipHostMallocDefault
Flags that can be used with hipHostMalloc.
Definition: hip_runtime_api.h:510
hipDeviceProp_t::gcnArchName
char gcnArchName[256]
AMD GCN Arch Name.
Definition: hip_runtime_api.h:118
hipSharedMemBankSizeDefault
@ hipSharedMemBankSizeDefault
The compiler selects a device-specific value for the banking.
Definition: hip_runtime_api.h:668
hipMemset2D
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.
hipMemset3D
hipError_t hipMemset3D(hipPitchedPtr pitchedDevPtr, int value, hipExtent extent)
Fills synchronously the memory area pointed to by pitchedDevPtr with the constant value.
hipStreamCreateWithFlags
hipError_t hipStreamCreateWithFlags(hipStream_t *stream, unsigned int flags)
Create an asynchronous stream.
hipDeviceGetAttribute
hipError_t hipDeviceGetAttribute(int *pi, hipDeviceAttribute_t attr, int deviceId)
Query for a specific device attribute.
hipMemcpyFromArray
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.
hipDeviceAttributeCanMapHostMemory
@ hipDeviceAttributeCanMapHostMemory
Device can map host memory into device address space.
Definition: hip_runtime_api.h:372
hipDeviceProp_t::maxThreadsDim
int maxThreadsDim[3]
Max number of threads in each dimension (XYZ) of a block.
Definition: hip_runtime_api.h:91
hipGraphNodeTypeMemcpy1D
@ hipGraphNodeTypeMemcpy1D
Memcpy 1D node.
Definition: hip_runtime_api.h:4121
hipMemcpyPeerAsync
hipError_t hipMemcpyPeerAsync(void *dst, int dstDeviceId, const void *src, int srcDevice, size_t sizeBytes, hipStream_t stream __dparm(0))
Copies memory from one device to memory on another device.
hipDrvMemcpy2DUnaligned
hipError_t hipDrvMemcpy2DUnaligned(const hip_Memcpy2D *pCopy)
hipMemcpyHtoDAsync
hipError_t hipMemcpyHtoDAsync(hipDeviceptr_t dst, void *src, size_t sizeBytes, hipStream_t stream)
Copy data from Host to Device asynchronously.
hipDeviceProp_t::cooperativeMultiDeviceLaunch
int cooperativeMultiDeviceLaunch
HIP device supports cooperative launch on multiple devices.
Definition: hip_runtime_api.h:121
hipSignalExternalSemaphoresAsync
hipError_t hipSignalExternalSemaphoresAsync(const hipExternalSemaphore_t *extSemArray, const hipExternalSemaphoreSignalParams *paramsArray, unsigned int numExtSems, hipStream_t stream)
Signals a set of external semaphore objects.
hipMemcpyDtoH
hipError_t hipMemcpyDtoH(void *dst, hipDeviceptr_t src, size_t sizeBytes)
Copy data from Device to Host.
hipDeviceArch_t::has3dGrid
unsigned has3dGrid
Grid and group dims are 3D (rather than 2D).
Definition: hip_runtime_api.h:72
hipDeviceGetCacheConfig
hipError_t hipDeviceGetCacheConfig(hipFuncCache_t *cacheConfig)
Set Cache configuration for a specific function.
hipModuleGetGlobal
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...
hipMemcpyPeer
hipError_t hipMemcpyPeer(void *dst, int dstDeviceId, const void *src, int srcDeviceId, size_t sizeBytes)
Copies memory from one device to memory on another device.
hipDeviceAttributeMaxTexture1DWidth
@ hipDeviceAttributeMaxTexture1DWidth
Maximum number of elements in 1D images.
Definition: hip_runtime_api.h:358
hipDeviceAttributeCooperativeLaunch
@ hipDeviceAttributeCooperativeLaunch
Support cooperative launch.
Definition: hip_runtime_api.h:356
hipImportExternalSemaphore
hipError_t hipImportExternalSemaphore(hipExternalSemaphore_t *extSem_out, const hipExternalSemaphoreHandleDesc *semHandleDesc)
Imports an external semaphore.
hipModuleLoadDataEx
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....
hipFreeMipmappedArray
hipError_t hipFreeMipmappedArray(hipMipmappedArray_t mipmappedArray)
Frees a mipmapped array on the device.
hipGraphNodeType
hipGraphNodeType
Definition: hip_runtime_api.h:4112
hipDeviceAttributeMultiprocessorCount
@ hipDeviceAttributeMultiprocessorCount
Number of multiprocessors on the device.
Definition: hip_runtime_api.h:340
hipGLDeviceListAll
@ hipGLDeviceListAll
All hip devices used by current OpenGL context.
Definition: hip_runtime_api.h:785
hipRegisterApiCallback
hipError_t hipRegisterApiCallback(uint32_t id, void *fun, void *arg)
hipIpcGetEventHandle
hipError_t hipIpcGetEventHandle(hipIpcEventHandle_t *handle, hipEvent_t event)
Gets an opaque interprocess handle for an event.
hipDeviceProp_t::pciDeviceID
int pciDeviceID
PCI Device ID.
Definition: hip_runtime_api.h:113
hipGetDeviceProperties
hipError_t hipGetDeviceProperties(hipDeviceProp_t *prop, int deviceId)
Returns device properties.
hipGraphAddEmptyNode
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.
hipMemcpy
hipError_t hipMemcpy(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind)
Copy data from src to dst.
hipDeviceProp_t::memoryClockRate
int memoryClockRate
Max global memory clock frequency in khz.
Definition: hip_runtime_api.h:94
hipEventCreateWithFlags
hipError_t hipEventCreateWithFlags(hipEvent_t *event, unsigned flags)
Create an event with the specified flags.
hipMemAdviseUnsetAccessedBy
@ hipMemAdviseUnsetAccessedBy
Definition: hip_runtime_api.h:583
hipErrorCooperativeLaunchTooLarge
hipErrorCooperativeLaunchTooLarge
Definition: hip_runtime_api.h:278
hipDeviceProp_t::pageableMemoryAccess
int pageableMemoryAccess
Definition: hip_runtime_api.h:147
hipDeviceProp_t::warpSize
int warpSize
Warp size.
Definition: hip_runtime_api.h:89
hipDeviceTotalMem
hipError_t hipDeviceTotalMem(size_t *bytes, hipDevice_t device)
Returns the total amount of memory on the device.
hipFreeArray
hipError_t hipFreeArray(hipArray *array)
Frees an array on the device.
hipErrorAssert
hipErrorAssert
Produced when the kernel calls assert.
Definition: hip_runtime_api.h:271
textureReference
Definition: texture_types.h:88
hipErrorCapturedEvent
hipErrorCapturedEvent
Definition: hip_runtime_api.h:299
hipDeviceProp_t::cooperativeMultiDeviceUnmatchedFunc
int cooperativeMultiDeviceUnmatchedFunc
Definition: hip_runtime_api.h:134
hipCtxGetSharedMemConfig
hipError_t hipCtxGetSharedMemConfig(hipSharedMemConfig *pConfig)
Get Shared memory bank configuration.
hipDeviceProp_t::cooperativeMultiDeviceUnmatchedGridDim
int cooperativeMultiDeviceUnmatchedGridDim
Definition: hip_runtime_api.h:136
hipDeviceCanAccessPeer
hipError_t hipDeviceCanAccessPeer(int *canAccessPeer, int deviceId, int peerDeviceId)
Determine if a device can access a peer's memory.
hipMemAdviseUnsetPreferredLocation
@ hipMemAdviseUnsetPreferredLocation
Clear the preferred location for the data.
Definition: hip_runtime_api.h:580
hipModuleGetFunction
hipError_t hipModuleGetFunction(hipFunction_t *function, hipModule_t module, const char *kname)
Function with kname will be extracted if present in module.
hipErrorStreamCaptureWrongThread
hipErrorStreamCaptureWrongThread
Definition: hip_runtime_api.h:301
hipDeviceArch_t::hasFloatAtomicAdd
unsigned hasFloatAtomicAdd
32-bit float atomic add in global and shared memory.
Definition: hip_runtime_api.h:51
hipMemRangeCoherencyModeIndeterminate
@ hipMemRangeCoherencyModeIndeterminate
Definition: hip_runtime_api.h:602
hipCtxDisablePeerAccess
hipError_t hipCtxDisablePeerAccess(hipCtx_t peerCtx)
Disable direct access from current context's virtual address space to memory allocations physically l...
hipDeviceProp_t::cooperativeLaunch
int cooperativeLaunch
HIP device supports cooperative launch.
Definition: hip_runtime_api.h:120
hipDeviceArch_t::hasSharedFloatAtomicExch
unsigned hasSharedFloatAtomicExch
32-bit float atomic exch for shared memory.
Definition: hip_runtime_api.h:50
hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedSharedMem
Definition: hip_runtime_api.h:381
HIP_RESOURCE_DESC_st
Definition: driver_types.h:282
hipTextureDesc
Definition: texture_types.h:109
hipResourceViewDesc
Definition: driver_types.h:314
hipDeviceProp_t::multiProcessorCount
int multiProcessorCount
Number of multi-processors (compute units).
Definition: hip_runtime_api.h:103
dim3::z
uint32_t z
z
Definition: hip_runtime_api.h:681
hipCtxSetSharedMemConfig
hipError_t hipCtxSetSharedMemConfig(hipSharedMemConfig config)
Set Shared memory bank configuration.
hipGraphNodeTypeMemset
@ hipGraphNodeTypeMemset
Memset 1D node.
Definition: hip_runtime_api.h:4115
hipDeviceProp_t::integrated
int integrated
APU vs dGPU.
Definition: hip_runtime_api.h:119
hipMemsetD8
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...
hipMemset2DAsync
hipError_t hipMemset2DAsync(void *dst, size_t pitch, int value, size_t width, size_t height, hipStream_t stream __dparm(0))
Fills asynchronously the memory area pointed to by dst with the constant value.
hipHostNodeParams
Definition: hip_runtime_api.h:4127
hipDeviceProp_t::ECCEnabled
int ECCEnabled
Device has ECC support enabled.
Definition: hip_runtime_api.h:132
HIP_ARRAY_DESCRIPTOR
Definition: driver_types.h:68
hipCtxGetDevice
hipError_t hipCtxGetDevice(hipDevice_t *device)
Get the handle of the device associated with current/default context.
hipDeviceAttributeCanUseStreamWaitValue
@ hipDeviceAttributeCanUseStreamWaitValue
Definition: hip_runtime_api.h:393
hipLaunchParams_t::blockDim
dim3 blockDim
Block dimentions.
Definition: hip_runtime_api.h:689
hipDeviceProp_t::totalConstMem
size_t totalConstMem
Size of shared memory region (in bytes).
Definition: hip_runtime_api.h:96
hipDeviceProp_t::maxTexture2D
int maxTexture2D[2]
Maximum dimensions (width, height) of 2D images, in image elements.
Definition: hip_runtime_api.h:124
hipMemAllocHost
hipError_t hipMemAllocHost(void **ptr, size_t size)
Allocate pinned host memory [Deprecated].
hipMemAttachGlobal
#define hipMemAttachGlobal
Memory can be accessed by any stream on any device.
Definition: hip_runtime_api.h:524
hipLaunchParams_t
Definition: hip_runtime_api.h:686
hipFuncCachePreferShared
@ hipFuncCachePreferShared
prefer larger shared memory and smaller L1 cache
Definition: hip_runtime_api.h:660
hipStreamWriteValue64
hipError_t hipStreamWriteValue64(hipStream_t stream, void *ptr, uint64_t value, unsigned int flags)
Enqueues a write command to the stream.[BETA].
hipMemRangeAttributePreferredLocation
@ hipMemRangeAttributePreferredLocation
The preferred location of the range.
Definition: hip_runtime_api.h:614
hipErrorHostMemoryAlreadyRegistered
hipErrorHostMemoryAlreadyRegistered
Produced when trying to lock a page-locked memory.
Definition: hip_runtime_api.h:272
hipMemAdviseSetReadMostly
@ hipMemAdviseSetReadMostly
Definition: hip_runtime_api.h:575
hipFuncAttribute
hipFuncAttribute
Definition: hip_runtime_api.h:650
hipStreamCaptureStatusNone
@ hipStreamCaptureStatusNone
Stream is not capturing.
Definition: hip_runtime_api.h:4167
hipGraphMemsetNodeGetParams
hipError_t hipGraphMemsetNodeGetParams(hipGraphNode_t node, hipMemsetParams *pNodeParams)
Gets a memset node's parameters.
hipSharedMemBankSizeEightByte
@ hipSharedMemBankSizeEightByte
Definition: hip_runtime_api.h:671
hipDeviceAttribute_t
hipDeviceAttribute_t
Definition: hip_runtime_api.h:321
hipFuncSetSharedMemConfig
hipError_t hipFuncSetSharedMemConfig(const void *func, hipSharedMemConfig config)
Set shared memory configuation for a specific function.
hipExtGetLinkTypeAndHopCount
hipError_t hipExtGetLinkTypeAndHopCount(int device1, int device2, uint32_t *linktype, uint32_t *hopcount)
Returns the link type and hop count between two devices.
hipMemAdviseSetAccessedBy
@ hipMemAdviseSetAccessedBy
Definition: hip_runtime_api.h:581
hipGraphicsRegisterFlagsWriteDiscard
@ hipGraphicsRegisterFlagsWriteDiscard
HIP will only write and will not read from this registered resource.
Definition: hip_runtime_api.h:800
hipResourceDesc
Definition: driver_types.h:258
hipErrorMemoryAllocation
hipErrorMemoryAllocation
Memory allocation error.
Definition: hip_runtime_api.h:209
hipErrorLaunchFailure
hipErrorLaunchFailure
An exception occurred on the device while executing a kernel.
Definition: hip_runtime_api.h:276
hipGraphicsRegisterFlagsSurfaceLoadStore
@ hipGraphicsRegisterFlagsSurfaceLoadStore
HIP will bind this resource to a surface.
Definition: hip_runtime_api.h:802
hipDeviceSynchronize
hipError_t hipDeviceSynchronize(void)
Waits on all active streams on current device.
hipCtxGetCacheConfig
hipError_t hipCtxGetCacheConfig(hipFuncCache_t *cacheConfig)
Set Cache configuration for a specific function.
hipLaunchParams_t::sharedMem
size_t sharedMem
Shared memory.
Definition: hip_runtime_api.h:691
hipCtxDestroy
hipError_t hipCtxDestroy(hipCtx_t ctx)
Destroy a HIP context.
hipModuleLaunchKernel
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...
hipDeviceAttributeConcurrentKernels
@ hipDeviceAttributeConcurrentKernels
Definition: hip_runtime_api.h:348
hipGraphKernelNodeGetParams
hipError_t hipGraphKernelNodeGetParams(hipGraphNode_t node, hipKernelNodeParams *pNodeParams)
Gets kernel node's parameters.
hipDeviceProp_t::cooperativeMultiDeviceUnmatchedSharedMem
int cooperativeMultiDeviceUnmatchedSharedMem
Definition: hip_runtime_api.h:140
hipProfilerStart
hipError_t hipProfilerStart()
Start recording of profiling information When using this API, start the profiler with profiling disab...
hipDeviceGetSharedMemConfig
hipError_t hipDeviceGetSharedMemConfig(hipSharedMemConfig *pConfig)
Returns bank width of shared memory for current device.
hipErrorNotSupported
hipErrorNotSupported
Produced when the hip API is not supported/implemented.
Definition: hip_runtime_api.h:282
hipMemcpyAsync
hipError_t hipMemcpyAsync(void *dst, const void *src, size_t sizeBytes, hipMemcpyKind kind, hipStream_t stream __dparm(0))
Copy data from src to dst asynchronously.
hipErrorLaunchOutOfResources
hipErrorLaunchOutOfResources
Out of resources error.
Definition: hip_runtime_api.h:263
hipOccupancyMaxPotentialBlockSize
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
hipStreamDestroy
hipError_t hipStreamDestroy(hipStream_t stream)
Destroys the specified stream.
hipHostRegister
hipError_t hipHostRegister(void *hostPtr, size_t sizeBytes, unsigned int flags)
Register host memory so it can be accessed from the current device.
hipStreamCaptureStatusActive
@ hipStreamCaptureStatusActive
Stream is actively capturing.
Definition: hip_runtime_api.h:4168
hipModuleLoad
hipError_t hipModuleLoad(hipModule_t *module, const char *fname)
Loads code object from file into a hipModule_t.
hipProfilerStop
hipError_t hipProfilerStop()
Stop recording of profiling information. When using this API, start the profiler with profiling disab...
hipErrorInvalidResourceHandle
hipErrorInvalidResourceHandle
Resource handle (hipEvent_t or hipStream_t) invalid.
Definition: hip_runtime_api.h:256
hipEventCreate
hipError_t hipEventCreate(hipEvent_t *event)
hipDeviceAttributePageableMemoryAccess
@ hipDeviceAttributePageableMemoryAccess
Definition: hip_runtime_api.h:389
hipGraphAddMemsetNode
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.
HIP_RESOURCE_VIEW_DESC_st
Definition: driver_types.h:328
hipMemoryType
hipMemoryType
Definition: hip_runtime_api.h:156
hipGraphicsRegisterFlagsTextureGather
@ hipGraphicsRegisterFlagsTextureGather
HIP will perform texture gather operations on this registered resource.
Definition: hip_runtime_api.h:803
hipGLDeviceListNextFrame
@ hipGLDeviceListNextFrame
frame.
Definition: hip_runtime_api.h:788
hipMemsetAsync
hipError_t hipMemsetAsync(void *dst, int value, size_t sizeBytes, hipStream_t stream __dparm(0))
Fills the first sizeBytes bytes of the memory area pointed to by dev with the constant byte value val...
hipMallocHost
hipError_t hipMallocHost(void **ptr, size_t size)
Allocate pinned host memory [Deprecated].
hipDeviceAttributeMaxTexture2DWidth
@ hipDeviceAttributeMaxTexture2DWidth
Maximum dimension width of 2D images in image elements.
Definition: hip_runtime_api.h:359
hipDeviceProp_t::pciDomainID
int pciDomainID
PCI Domain ID.
Definition: hip_runtime_api.h:111
hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc
@ hipDeviceAttributeCooperativeMultiDeviceUnmatchedFunc
Definition: hip_runtime_api.h:375
hipModuleLoadData
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.
hipFuncCachePreferL1
@ hipFuncCachePreferL1
prefer larger L1 cache and smaller shared memory
Definition: hip_runtime_api.h:661
hipMemAttachSingle
#define hipMemAttachSingle
the associated device
Definition: hip_runtime_api.h:526
hipGraphNodeTypeMemcpyToSymbol
@ hipGraphNodeTypeMemcpyToSymbol
MemcpyToSymbol node.
Definition: hip_runtime_api.h:4123
hipMemcpyParam2D
hipError_t hipMemcpyParam2D(const hip_Memcpy2D *pCopy)
Copies memory for 2D arrays.
hipMemPrefetchAsync
hipError_t hipMemPrefetchAsync(const void *dev_ptr, size_t count, int device, hipStream_t stream __dparm(0))
Prefetches memory to the specified destination device using HIP.
hipDeviceProp_t::managedMemory
int managedMemory
Device supports allocating managed memory on this system.
Definition: hip_runtime_api.h:144
hipGraphExecUpdateResult
hipGraphExecUpdateResult
Definition: hip_runtime_api.h:4147
hipDeviceAttributeHdpMemFlushCntl
@ hipDeviceAttributeHdpMemFlushCntl
Address of the HDP_MEM_COHERENCY_FLUSH_CNTL register.
Definition: hip_runtime_api.h:365
hipMemset
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...
hipDeviceDisablePeerAccess
hipError_t hipDeviceDisablePeerAccess(int peerDeviceId)
Disable direct access from current device's virtual address space to memory allocations physically lo...
hipModuleOccupancyMaxActiveBlocksPerMultiprocessor
hipError_t hipModuleOccupancyMaxActiveBlocksPerMultiprocessor(int *numBlocks, hipFunction_t f, int blockSize, size_t dynSharedMemPerBlk)
Returns occupancy for a device function.
hipFuncSetAttribute
hipError_t hipFuncSetAttribute(const void *func, hipFuncAttribute attr, int value)
Set attribute for a specific function.
hipDeviceAttributeEccEnabled
@ hipDeviceAttributeEccEnabled
Device has ECC support enabled.
Definition: hip_runtime_api.h:373
__hipPopCallConfiguration
hipError_t __hipPopCallConfiguration(dim3 *gridDim, dim3 *blockDim, size_t *sharedMem, hipStream_t *stream)
Pop configuration of a kernel launch.
hipDeviceProp_t
struct hipDeviceProp_t hipDeviceProp_t
hipDeviceAttributeMaxSharedMemoryPerMultiprocessor
@ hipDeviceAttributeMaxSharedMemoryPerMultiprocessor
Definition: hip_runtime_api.h:352
hipDevicePrimaryCtxReset
hipError_t hipDevicePrimaryCtxReset(hipDevice_t dev)
Resets the primary context on the GPU.
hipChannelFormatDesc
Definition: driver_types.h:47
hipModuleUnload
hipError_t hipModuleUnload(hipModule_t module)
Frees the module.
hipMemRangeAttribute
hipMemRangeAttribute
Definition: hip_runtime_api.h:611
hipMemAdvise
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.
hipErrorPeerAccessAlreadyEnabled
hipErrorPeerAccessAlreadyEnabled
Peer access was already enabled from the current device.
Definition: hip_runtime_api.h:265
hipImportExternalMemory
hipError_t hipImportExternalMemory(hipExternalMemory_t *extMem_out, const hipExternalMemoryHandleDesc *memHandleDesc)
Imports an external memory object.