HIP: Heterogenous-computing Interface for Portability
|
Functions | |
hipError_t | hipCtxCreate (hipCtx_t *ctx, unsigned int flags, hipDevice_t device) |
Create a context and set it as current/default context [Deprecated]. | |
hipError_t | hipCtxDestroy (hipCtx_t ctx) |
Destroy a HIP context. [Deprecated]. | |
hipError_t | hipCtxPopCurrent (hipCtx_t *ctx) |
Pop the current/default context and return the popped context. [Deprecated]. | |
hipError_t | hipCtxPushCurrent (hipCtx_t ctx) |
Push the context to be set as current/ default context. [Deprecated]. | |
hipError_t | hipCtxSetCurrent (hipCtx_t ctx) |
Set the passed context as current/default. [Deprecated]. | |
hipError_t | hipCtxGetCurrent (hipCtx_t *ctx) |
Get the handle of the current/ default context. [Deprecated]. | |
hipError_t | hipCtxGetDevice (hipDevice_t *device) |
Get the handle of the device associated with current/default context. [Deprecated]. | |
hipError_t | hipCtxGetApiVersion (hipCtx_t ctx, int *apiVersion) |
Returns the approximate HIP api version. [Deprecated]. | |
hipError_t | hipCtxGetCacheConfig (hipFuncCache_t *cacheConfig) |
Get Cache configuration for a specific function. [Deprecated]. | |
hipError_t | hipCtxSetCacheConfig (hipFuncCache_t cacheConfig) |
Set L1/Shared cache partition. [Deprecated]. | |
hipError_t | hipCtxSetSharedMemConfig (hipSharedMemConfig config) |
Set Shared memory bank configuration. | |
hipError_t | hipCtxGetSharedMemConfig (hipSharedMemConfig *pConfig) |
Get Shared memory bank configuration. [Deprecated]. | |
hipError_t | hipCtxSynchronize (void) |
Blocks until the default context has completed all preceding requested tasks. [Deprecated]. | |
hipError_t | hipCtxGetFlags (unsigned int *flags) |
Return flags used for creating default context. | |
hipError_t | hipCtxEnablePeerAccess (hipCtx_t peerCtx, unsigned int flags) |
Enables direct access to memory allocations in a peer context. [Deprecated]. | |
hipError_t | hipCtxDisablePeerAccess (hipCtx_t peerCtx) |
Disable direct access from current context's virtual address space to memory allocations physically located on a peer context.Disables direct access to memory allocations in a peer context and unregisters any registered allocations. [Deprecated]. | |
This section describes the deprecated context management functions of HIP runtime API.
hipError_t hipCtxCreate | ( | hipCtx_t * | ctx, |
unsigned int | flags, | ||
hipDevice_t | device | ||
) |
Create a context and set it as current/default context [Deprecated].
[out] | ctx | Context to create |
[in] | flags | Context creation flags |
[in] | device | device handle |
hipError_t hipCtxDestroy | ( | hipCtx_t | ctx | ) |
Destroy a HIP context. [Deprecated].
[in] | ctx | Context to destroy |
hipError_t hipCtxDisablePeerAccess | ( | hipCtx_t | peerCtx | ) |
Disable direct access from current context's virtual address space to memory allocations physically located on a peer context.Disables direct access to memory allocations in a peer context and unregisters any registered allocations. [Deprecated].
Returns hipErrorPeerAccessNotEnabled if direct access to memory on peerDevice has not yet been enabled from the current device.
[in] | peerCtx | Peer context to be disabled |
hipError_t hipCtxEnablePeerAccess | ( | hipCtx_t | peerCtx, |
unsigned int | flags | ||
) |
Enables direct access to memory allocations in a peer context. [Deprecated].
Memory which already allocated on peer device will be mapped into the address space of the current device. In addition, all future memory allocations on peerDeviceId will be mapped into the address space of the current device when the memory is allocated. The peer memory remains accessible from the current device until a call to hipDeviceDisablePeerAccess or hipDeviceReset.
[in] | peerCtx | Peer context |
[in] | flags | flags, need to set as 0 |
hipError_t hipCtxGetApiVersion | ( | hipCtx_t | ctx, |
int * | apiVersion | ||
) |
Returns the approximate HIP api version. [Deprecated].
[in] | ctx | Context to check |
[out] | apiVersion |
hipError_t hipCtxGetCacheConfig | ( | hipFuncCache_t * | cacheConfig | ) |
Get Cache configuration for a specific function. [Deprecated].
[out] | cacheConfig | Cache configuration |
hipError_t hipCtxGetCurrent | ( | hipCtx_t * | ctx | ) |
Get the handle of the current/ default context. [Deprecated].
[out] | ctx |
hipError_t hipCtxGetDevice | ( | hipDevice_t * | device | ) |
Get the handle of the device associated with current/default context. [Deprecated].
[out] | device |
hipError_t hipCtxGetFlags | ( | unsigned int * | flags | ) |
Return flags used for creating default context.
[out] | flags | Pointer of flags |
hipError_t hipCtxGetSharedMemConfig | ( | hipSharedMemConfig * | pConfig | ) |
Get Shared memory bank configuration. [Deprecated].
[out] | pConfig | Pointer of shared memory configuration |
hipError_t hipCtxPopCurrent | ( | hipCtx_t * | ctx | ) |
Pop the current/default context and return the popped context. [Deprecated].
[out] | ctx |
hipError_t hipCtxPushCurrent | ( | hipCtx_t | ctx | ) |
Push the context to be set as current/ default context. [Deprecated].
[in] | ctx |
hipError_t hipCtxSetCacheConfig | ( | hipFuncCache_t | cacheConfig | ) |
Set L1/Shared cache partition. [Deprecated].
[in] | cacheConfig | Cache configuration to set |
hipError_t hipCtxSetCurrent | ( | hipCtx_t | ctx | ) |
Set the passed context as current/default. [Deprecated].
[in] | ctx |
hipError_t hipCtxSetSharedMemConfig | ( | hipSharedMemConfig | config | ) |
Set Shared memory bank configuration.
[in] | config | Shared memory configuration to set |
hipError_t hipCtxSynchronize | ( | void | ) |
Blocks until the default context has completed all preceding requested tasks. [Deprecated].