GpaGetDeviceAndRevisionId
Syntax
Description
Gets the GPU device id and revision id associated with the specified context.
Parameters
Name |
Description |
---|---|
|
Unique identifier of a previously-opened context. |
|
The value that will be set to the device id upon successful execution. |
|
The value that will be set to the device revision id upon successful execution. |
Return value
Return value |
Description |
---|---|
kGpaStatusOk |
The device id and revision id were successfully retrieved. |
kGpaStatusErrorNullPointer |
The supplied
device_id parameter is NULL.The supplied
revision_id parameter is NULL.The supplied
context_id parameter is NULL. |
kGpaStatusErrorContextNotOpen |
The supplied context is not currently open. |
kGpaStatusErrorContextNotFound |
The supplied |
kGpaStatusErrorFailed |
The device id and revision id could not be retrieved. |
kGpaStatusErrorException |
Exception occurred. |