Skip to content

GpaGetNumEnabledCounters

Copyright (c) 2018-2024 Advanced Micro Devices, Inc. All rights reserved.

Syntax

GpaStatus GpaGetNumEnabledCounters(
GpaSessionId session_id,
GpaUInt32* count);

Description

Gets the number of enabled counters.

Parameters

NameDescription
session_idUnique identifier of a previously-created session.
countThe value which will hold the number of enabled counters contained within the session upon successful execution.

Return value

Return valueDescription
kGpaStatusOkThe number of enabled counters was successfully retrieved.
kGpaStatusErrorGpaNotInitializedGPA was not initialized. Call GpaInitialize before all other entrypoints.
kGpaStatusErrorNullPointerThe supplied session_id parameter is NULL.

The supplied count parameter is NULL. | | kGpaStatusErrorSessionNotFound | The supplied session_id parameter was not recognized as a previously-created session identifier. | | kGpaStatusErrorContextNotOpen | The supplied session’s parent context is not currently open. | | kGpaStatusErrorFailed | The number of enabled counters could not be retrieved. | | kGpaStatusErrorException | Exception occurred. |