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