hiprtCreateContext
Creates HIPRT API context.
All HIPRT functions expect context as their first argument. Context keeps global data required by HIPRT session. Calls made from different threads with different HIPRT contexts are safe. Calls with the same context should be externally synchronized by the client.
hiprtError hiprtCreateContext( |
uint32_t hiprtApiVersion, |
hiprtContextCreationInput& input, |
|
hiprtContext* outContext); |
Parameters
Parameter |
Description |
---|---|
hiprtApiVersion |
API version. |
input |
Input will hold deviceType, ctx (which will be raw context), device (which will be raw device). |
outContext |
Created context. |
Return
Returns HIPRT error in case of a failure, or hiprtSuccess
otherwise.