Skip to content

GpaGetDeviceMaxVgprs

Syntax

GpaStatus GpaGetDeviceMaxVgprs(GpaContextId gpa_context_id,
GpaUInt32 *max_vgprs);

Description

Gets the max number of VGPRs on the GPU.

Parameters

NameDescription
context_idUnique identifier of a previously-opened context.
max_vgprsThe value that will be set to the maximum number of VGPRs.

Return value

Return valueDescription
kGpaStatusOkThe device generation was successfully retrieved.
kGpaStatusErrorGpaNotInitializedGPA was not initialized. Call GpaInitialize before all other entrypoints.
kGpaStatusErrorNullPointerThe supplied max_vgprs parameter is NULL.The supplied context_id parameter is NULL.
kGpaStatusErrorContextNotOpenThe supplied context is not currently open.
kGpaStatusErrorContextNotFoundThe supplied context_id parameter was not recognized as a previously-opened context identifier.
kGpaStatusErrorFailedThe max vgprs could not be retrieved.
kGpaStatusErrorExceptionException occurred.
kGpaStatusErrorHardwareNotSupportedThe HW is not supported.