GpaDeleteSession
Copyright (c) 2018-2024 Advanced Micro Devices, Inc. All rights reserved.
Syntax
GpaStatus GpaDeleteSession(    GpaSessionId session_id);Description
Deletes a session object. Deletes the specified session, along with all counter results associated with the session.
Parameters
| Name | Description | 
|---|---|
| session_id | Unique identifier of a previously-created session. | 
Return value
| Return value | Description | 
|---|---|
| kGpaStatusOk | The session was successfully deleted. | 
| kGpaStatusErrorGpaNotInitialized | GPA was not initialized. Call GpaInitialize before all other entrypoints. | 
| kGpaStatusErrorNullPointer | The supplied session_id parameter is NULL. | 
| kGpaStatusErrorSessionNotFound | The supplied session_id parameter was not recognized as a previously-created session identifier. | 
| kGpaStatusErrorFailed | The session could not be deleted. | 
| kGpaStatusErrorException | Exception occurred. |