GpaGetDeviceAndRevisionId
Copyright (c) 2018-2024 Advanced Micro Devices, Inc. All rights reserved.
Syntax
GpaStatus GpaGetDeviceAndRevisionId(    GpaContextId context_id,    GpaUInt32* device_id,    GpaUInt32* revision_id);Description
Gets the GPU device id and revision id associated with the specified context.
Parameters
| Name | Description | 
|---|---|
| context_id | Unique identifier of a previously-opened context. | 
| device_id | The value that will be set to the device id upon successful execution. | 
| revision_id | 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. | 
| kGpaStatusErrorGpaNotInitialized | GPA was not initialized. Call GpaInitialize before all other entrypoints. | 
| 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 context_id parameter was not recognized as a previously-opened context identifier. | | kGpaStatusErrorFailed | The device id and revision id could not be retrieved. | | kGpaStatusErrorException | Exception occurred. |