This page contains proposed changes for a future release of ROCm. Read the latest Linux release of ROCm documentation for your production environments.

hipdeviceprimaryctxretain Interface Reference

hipdeviceprimaryctxretain Interface Reference#

HIPFORT API Reference: hipfort::hipdeviceprimaryctxretain Interface Reference
hipfort::hipdeviceprimaryctxretain Interface Reference

Retain the primary context on the GPU. More...

Public Member Functions

integer(kind(hipsuccess)) function hipdeviceprimaryctxretain_ (pctx, dev)
 

Detailed Description

Retain the primary context on the GPU.

Parameters
[out]Returnedcontext handle of the new context
[in]Devicewhich primary context is released
Returns
hipSuccess
See also
hipCtxCreate, hipCtxDestroy, hipCtxGetFlags, hipCtxPopCurrent, hipCtxGetCurrent, hipCtxSetCurrent, hipCtxPushCurrent, hipCtxSetCacheConfig, hipCtxSynchronize, hipCtxGetDevice

Member Function/Subroutine Documentation

◆ hipdeviceprimaryctxretain_()

integer(kind(hipsuccess)) function hipfort::hipdeviceprimaryctxretain::hipdeviceprimaryctxretain_ ( type(c_ptr)  pctx,
integer(c_int), value  dev 
)

The documentation for this interface was generated from the following file: