Skip to content

GpaGetDeviceMaxLdsBytes

Syntax

GpaStatus GpaGetDeviceMaxLdsBytes(GpaContextId context_id,
GpaUInt32 *max_lds_bytes);

Description

Gets the max number of LDS bytes on the GPU.

Parameters

NameDescription
context_idUnique identifier of a previously-opened context.
max_lds_bytesThe value that will be set to the total size of LDS memory across the whole GPU.

Return value

Return valueDescription
kGpaStatusOkThe device generation was successfully retrieved.
kGpaStatusErrorGpaNotInitializedGPA was not initialized. Call GpaInitialize before all other entrypoints.
kGpaStatusErrorNullPointerThe supplied max_lds_bytes 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 value could not be retrieved.
kGpaStatusErrorExceptionException occurred.
kGpaStatusErrorHardwareNotSupportedThe HW is not supported.