GpaGetDeviceMaxVgprs
Syntax
GpaStatus GpaGetDeviceMaxVgprs( GpaContextId gpa_context_id, GpaUInt32* max_vgprs);Description
Gets the max number of VGPRs on the GPU.
Parameters
| Name | Description |
|---|---|
| context_id | Unique identifier of a previously-opened context. |
| max_vgprs | The value that will be set to the maximum number of VGPRs. |
Return value
| Return value | Description |
|---|---|
| kGpaStatusOk | The device generation was successfully retrieved. |
| kGpaStatusErrorGpaNotInitialized | GPA was not initialized. Call GpaInitialize before all other entrypoints. |
| kGpaStatusErrorNullPointer | The supplied max_vgprs parameter is NULL. |
The supplied context_id parameter is NULL. | | kGpaStatusErrorContextNotOpen | The supplied context is not currently open. | | kGpaStatusErrorContextNotFound | The supplied context_id parameter was not recognized as a previously-opened context identifier. | | kGpaStatusErrorFailed | The max vgprs could not be retrieved. | | kGpaStatusErrorException | Exception occurred. | | kGpaStatusErrorHardwareNotSupported | The HW is not supported. |