HIP: Heterogenous-computing Interface for Portability
|
Classes | |
struct | dim3 |
struct | hipLaunchParams_t |
Macros | |
#define | __HIP_NODISCARD |
#define | hipStreamDefault 0x00 |
Flags that can be used with hipStreamCreateWithFlags. More... | |
#define | hipStreamNonBlocking 0x01 |
Stream does not implicitly synchronize with null stream. | |
#define | hipEventDefault 0x0 |
Flags that can be used with hipEventCreateWithFlags: More... | |
#define | hipEventBlockingSync 0x1 |
Waiting will yield CPU. Power-friendly and usage-friendly but may increase latency. | |
#define | hipEventDisableTiming 0x2 |
Disable event's capability to record timing information. May improve performance. | |
#define | hipEventInterprocess 0x4 |
Event can support IPC. More... | |
#define | hipEventReleaseToDevice 0x40000000 |
#define | hipEventReleaseToSystem 0x80000000 |
#define | hipHostMallocDefault 0x0 |
Flags that can be used with hipHostMalloc. More... | |
#define | hipHostMallocPortable 0x1 |
Memory is considered allocated by all contexts. | |
#define | hipHostMallocMapped 0x2 |
can be obtained with hipHostGetDevicePointer. More... | |
#define | hipHostMallocWriteCombined 0x4 |
#define | hipHostMallocNumaUser 0x20000000 |
Host memory allocation will follow numa policy set by user. | |
#define | hipHostMallocCoherent 0x40000000 |
allocation. More... | |
#define | hipHostMallocNonCoherent 0x80000000 |
allocation. More... | |
#define | hipMemAttachGlobal 0x01 |
Memory can be accessed by any stream on any device. | |
#define | hipMemAttachHost 0x02 |
Memory cannot be accessed by any stream on any device. | |
#define | hipMemAttachSingle 0x04 |
the associated device More... | |
#define | hipDeviceMallocDefault 0x0 |
#define | hipDeviceMallocFinegrained 0x1 |
Memory is allocated in fine grained region of device. | |
#define | hipHostRegisterDefault 0x0 |
Flags that can be used with hipHostRegister. More... | |
#define | hipHostRegisterPortable 0x1 |
Memory is considered registered by all contexts. | |
#define | hipHostRegisterMapped 0x2 |
can be obtained with hipHostGetDevicePointer. More... | |
#define | hipHostRegisterIoMemory 0x4 |
Not supported. | |
#define | hipExtHostRegisterCoarseGrained 0x8 |
Coarse Grained host memory lock. | |
#define | hipDeviceScheduleAuto 0x0 |
Automatically select between Spin and Yield. | |
#define | hipDeviceScheduleSpin 0x1 |
may consume more power. More... | |
#define | hipDeviceScheduleYield 0x2 |
power and is friendlier to other threads in the system. More... | |
#define | hipDeviceScheduleBlockingSync 0x4 |
#define | hipDeviceScheduleMask 0x7 |
#define | hipDeviceMapHost 0x8 |
#define | hipDeviceLmemResizeToMax 0x16 |
#define | hipArrayDefault 0x00 |
Default HIP array allocation flag. | |
#define | hipArrayLayered 0x01 |
#define | hipArraySurfaceLoadStore 0x02 |
#define | hipArrayCubemap 0x04 |
#define | hipArrayTextureGather 0x08 |
#define | hipOccupancyDefault 0x00 |
#define | hipCooperativeLaunchMultiDeviceNoPreSync 0x01 |
#define | hipCooperativeLaunchMultiDeviceNoPostSync 0x02 |
#define | hipCpuDeviceId ((int)-1) |
#define | hipInvalidDeviceId ((int)-2) |
Typedefs | |
typedef enum __HIP_NODISCARD hipError_t | hipError_t |
typedef enum hipDeviceAttribute_t | hipDeviceAttribute_t |
typedef enum hipMemoryAdvise | hipMemoryAdvise |
typedef enum hipMemRangeAttribute | hipMemRangeAttribute |
typedef enum hipJitOption | hipJitOption |
typedef enum hipFuncCache_t | hipFuncCache_t |
typedef enum hipSharedMemConfig | hipSharedMemConfig |
typedef struct dim3 | dim3 |
typedef struct hipLaunchParams_t | hipLaunchParams |
#define hipDeviceScheduleSpin 0x1 |
may consume more power.
Dedicate a CPU core to spin-wait. Provides lowest latency, but burns a CPU core and
#define hipDeviceScheduleYield 0x2 |
power and is friendlier to other threads in the system.
Yield the CPU to the operating system when waiting. May increase latency, but lowers
#define hipEventDefault 0x0 |
Flags that can be used with hipEventCreateWithFlags:
Default flags
#define hipEventInterprocess 0x4 |
Event can support IPC.
#define hipEventReleaseToSystem 0x80000000 |
< Use a device-scope release when recording this event. This flag is useful to obtain more precise timings of commands between events. The flag is a no-op on CUDA platforms.
#define hipHostMallocCoherent 0x40000000 |
allocation.
Allocate coherent memory. Overrides HIP_COHERENT_HOST_ALLOC for specific
#define hipHostMallocDefault 0x0 |
Flags that can be used with hipHostMalloc.
< Use a system-scope release that when recording this event. This flag is useful to make non-coherent host memory visible to the host. The flag is a no-op on CUDA platforms.
#define hipHostMallocMapped 0x2 |
can be obtained with hipHostGetDevicePointer.
Map the allocation into the address space for the current device. The device pointer
#define hipHostMallocNonCoherent 0x80000000 |
allocation.
Allocate non-coherent memory. Overrides HIP_COHERENT_HOST_ALLOC for specific
#define hipHostRegisterDefault 0x0 |
Flags that can be used with hipHostRegister.
Memory is Mapped and Portable
#define hipHostRegisterMapped 0x2 |
can be obtained with hipHostGetDevicePointer.
Map the allocation into the address space for the current device. The device pointer
#define hipMemAttachSingle 0x04 |
the associated device
Memory can only be accessed by a single stream on
#define hipStreamDefault 0x00 |
Flags that can be used with hipStreamCreateWithFlags.
Default stream creation flags. These are used with hipStreamCreate().
typedef enum hipFuncCache_t hipFuncCache_t |
typedef enum hipSharedMemConfig hipSharedMemConfig |
enum hipDeviceAttribute_t |
enum hipFuncCache_t |
enum hipMemoryAdvise |
enum hipMemRangeAttribute |
enum hipSharedMemConfig |