GpaCloseContext
Syntax
Description
Closes the specified context, which ends access to GPU performance counters. After closing a context, GPA functions should not be called again until the counters are reopened with GpaOpenContext.
Parameters
Name |
Description |
---|---|
|
Unique identifier of a previously-opened context. |
Return value
Return value |
Description |
---|---|
kGpaStatusOk |
The context was successfully closed. |
kGpaStatusErrorNullPointer |
The supplied |
kGpaStatusErrorContextNotFound |
The supplied |
kGpaStatusErrorContextNotOpen |
The supplied context is not currently open. |
kGpaStatusErrorInvalidParameter |
The API type of the supplied context does not match GPA’s API type. |
kGpaStatusErrorFailed |
The context could not be closed. |
kGpaStatusErrorException |
Exception occurred. |