Skip to content

GpaEndSession

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

Syntax

GpaStatus GpaEndSession(
GpaSessionId session_id);

Description

Ends sampling with the currently enabled set of counters. This will end the sampling process. A session must be ended before results for that session can be queried.

Parameters

NameDescription
session_idUnique identifier of a previously-created session.

Return value

Return valueDescription
kGpaStatusOkThe session was successfully ended.
kGpaStatusErrorGpaNotInitializedGPA was not initialized. Call GpaInitialize before all other entrypoints.
kGpaStatusErrorNullPointerThe supplied session_id parameter is NULL.
kGpaStatusErrorSessionNotFoundThe supplied session_id parameter was not recognized as a previously-created session identifier.
kGpaStatusErrorVariableNumberOfSamplesInPassesThere were an inconsistent number of samples created in each pass of the session.
kGpaStatusErrorNotEnoughPassesThere were not enough passes created in the session
kGpaStatusErrorSessionNotStartedThe session has not been started.
kGpaStatusErrorFailedThe session could be be ended.
kGpaStatusErrorOtherSessionActiveAnother session is active.
kGpaStatusErrorExceptionException occurred.