Skip to content

GpaGetDeviceMaxWaveSlots

Copyright (c) 2025 Advanced Micro Devices, Inc. All rights reserved.

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. | | 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 wave slots could not be retrieved. | | kGpaStatusErrorException | Exception occurred. |