Skip to content

GpaGetDeviceMaxWaveSlots

Syntax

GpaStatus GpaGetDeviceMaxWaveSlots(GpaContextId gpa_context_id,
GpaUInt32 *max_wave_slots);

Description

Gets the total number of wave slots on the GPU.

Parameters

NameDescription
context_idUnique identifier of a previously-opened context.
max_wave_slotsThe value that will be set to the maximum number of waves slots.

Return value

Return valueDescription
kGpaStatusOkThe device generation was successfully retrieved.
kGpaStatusErrorGpaNotInitializedGPA was not initialized. Call GpaInitialize before all other entrypoints.
kGpaStatusErrorNullPointerThe supplied max_wave_slots 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 wave slots could not be retrieved.
kGpaStatusErrorExceptionException occurred.