|
HIP: Heterogenous-computing Interface for Portability
|
Classes | |
| struct | dim3 |
Macros | |
| #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 | hipHostMallocDefault 0x0 |
| Flags that can be used with hipHostMalloc. | |
| #define | hipHostMallocPortable 0x1 |
| #define | hipHostMallocMapped 0x2 |
| #define | hipHostMallocWriteCombined 0x4 |
| #define | hipHostRegisterDefault 0x0 |
| Flags that can be used with hipHostRegister. More... | |
| #define | hipHostRegisterPortable 0x1 |
| Memory is considered registered by all contexts. HIP only supports one context so this is always assumed true. | |
| #define | hipHostRegisterMapped 0x2 |
| Map the allocation into the address space for the current device. The device pointer can be obtained with hipHostGetDevicePointer. | |
| #define | hipHostRegisterIoMemory 0x4 |
| Not supported. | |
Typedefs | |
| typedef enum hipError_t | hipError_t |
| typedef enum hipDeviceAttribute_t | hipDeviceAttribute_t |
| typedef enum hipFuncCache | hipFuncCache |
| typedef enum hipSharedMemConfig | hipSharedMemConfig |
| typedef struct dim3 | dim3 |
| #define hipEventDefault 0x0 |
Flags that can be used with hipEventCreateWithFlags:
Default flags
| #define hipEventInterprocess 0x4 |
Event can support IPC.
| #define hipHostRegisterDefault 0x0 |
Flags that can be used with hipHostRegister.
Memory is Mapped and Portable
| #define hipStreamDefault 0x00 |
Flags that can be used with hipStreamCreateWithFlags.
Default stream creation flags. These are used with hipStreamCreate().
| typedef enum hipFuncCache hipFuncCache |
| typedef enum hipSharedMemConfig hipSharedMemConfig |
| enum hipDeviceAttribute_t |
| enum hipError_t |
| Enumerator | |
|---|---|
| hipSuccess |
Successful completion. |
| hipErrorMemoryAllocation |
Memory allocation error. |
| hipErrorMemoryFree |
Memory free error. |
| hipErrorUnknownSymbol |
Unknown symbol. |
| hipErrorOutOfResources |
Out of resources error. |
| hipErrorInvalidValue |
One or more of the parameters passed to the API call is NULL or not in an acceptable range. |
| hipErrorInvalidResourceHandle |
Resource handle (hipEvent_t or hipStream_t) invalid. |
| hipErrorInvalidDevice |
DeviceID must be in range 0...#compute-devices. |
| hipErrorInvalidMemcpyDirection |
Invalid memory copy direction. |
| hipErrorInvalidDevicePointer |
Invalid Device Pointer. |
| hipErrorInitializationError |
TODO comment from hipErrorInitializationError. |
| hipErrorNoDevice |
Call to hipGetDeviceCount returned 0 devices. |
| hipErrorNotReady |
Indicates that asynchronous operations enqueued earlier are not ready. This is not actually an error, but is used to distinguish from hipSuccess (which indicates completion). APIs that return this error include hipEventQuery and hipStreamQuery. |
| hipErrorUnknown |
Unknown error. |
| hipErrorRuntimeMemory |
HSA runtime memory call returned error. Typically not seen in production systems. |
| hipErrorRuntimeOther |
HSA runtime call other than memory returned error. Typically not seen in production systems. |
| hipErrorTbd |
Marker that more error codes are needed. |
| enum hipFuncCache |
| enum hipMemcpyKind |
| enum hipSharedMemConfig |
1.8.6