forked from GPUOpen-Tools/gpu_performance_api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgpu_perf_api_functions.h
92 lines (76 loc) · 3 KB
/
gpu_perf_api_functions.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
//==============================================================================
// Copyright (c) 2014-2018 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief GPA required public function declarations wrapped in a macro
//==============================================================================
#ifndef GPA_FUNCTION_PREFIX
#define GPA_FUNCTION_PREFIX(f) ///< placeholder macro in case it's not defined before including this file
#define NEED_TO_UNDEFINE_GPA_FUNCTION_PREFIX ///< used a a flag to indicate whether or not the macro needs to be undefined later
#endif
// GPA API Table
GPA_FUNCTION_PREFIX(GPA_GetFuncTable)
// Logging
GPA_FUNCTION_PREFIX(GPA_RegisterLoggingCallback)
// Init / Destroy GPA
GPA_FUNCTION_PREFIX(GPA_Initialize)
GPA_FUNCTION_PREFIX(GPA_Destroy)
// Context Startup / Finish
GPA_FUNCTION_PREFIX(GPA_OpenContext)
GPA_FUNCTION_PREFIX(GPA_CloseContext)
// Context Interrogation
GPA_FUNCTION_PREFIX(GPA_GetSupportedSampleTypes)
GPA_FUNCTION_PREFIX(GPA_GetDeviceAndRevisionId)
GPA_FUNCTION_PREFIX(GPA_GetDeviceName)
// Counter Interrogation
GPA_FUNCTION_PREFIX(GPA_GetNumCounters)
GPA_FUNCTION_PREFIX(GPA_GetCounterName)
GPA_FUNCTION_PREFIX(GPA_GetCounterIndex)
GPA_FUNCTION_PREFIX(GPA_GetCounterGroup)
GPA_FUNCTION_PREFIX(GPA_GetCounterDescription)
GPA_FUNCTION_PREFIX(GPA_GetCounterDataType)
GPA_FUNCTION_PREFIX(GPA_GetCounterUsageType)
GPA_FUNCTION_PREFIX(GPA_GetCounterUuid)
GPA_FUNCTION_PREFIX(GPA_GetCounterSampleType)
GPA_FUNCTION_PREFIX(GPA_GetDataTypeAsStr)
GPA_FUNCTION_PREFIX(GPA_GetUsageTypeAsStr)
// Session handling
GPA_FUNCTION_PREFIX(GPA_CreateSession)
GPA_FUNCTION_PREFIX(GPA_DeleteSession)
GPA_FUNCTION_PREFIX(GPA_BeginSession)
GPA_FUNCTION_PREFIX(GPA_EndSession)
// Counter Scheduling
GPA_FUNCTION_PREFIX(GPA_EnableCounter)
GPA_FUNCTION_PREFIX(GPA_DisableCounter)
GPA_FUNCTION_PREFIX(GPA_EnableCounterByName)
GPA_FUNCTION_PREFIX(GPA_DisableCounterByName)
GPA_FUNCTION_PREFIX(GPA_EnableAllCounters)
GPA_FUNCTION_PREFIX(GPA_DisableAllCounters)
// Query Counter Scheduling
GPA_FUNCTION_PREFIX(GPA_GetPassCount)
GPA_FUNCTION_PREFIX(GPA_GetNumEnabledCounters)
GPA_FUNCTION_PREFIX(GPA_GetEnabledIndex)
GPA_FUNCTION_PREFIX(GPA_IsCounterEnabled)
// Sample Handling
GPA_FUNCTION_PREFIX(GPA_BeginCommandList)
GPA_FUNCTION_PREFIX(GPA_EndCommandList)
GPA_FUNCTION_PREFIX(GPA_BeginSample)
GPA_FUNCTION_PREFIX(GPA_EndSample)
GPA_FUNCTION_PREFIX(GPA_ContinueSampleOnCommandList)
GPA_FUNCTION_PREFIX(GPA_CopySecondarySamples)
GPA_FUNCTION_PREFIX(GPA_GetSampleCount)
// Query Results
GPA_FUNCTION_PREFIX(GPA_IsPassComplete)
GPA_FUNCTION_PREFIX(GPA_IsSessionComplete)
GPA_FUNCTION_PREFIX(GPA_GetSampleResultSize)
GPA_FUNCTION_PREFIX(GPA_GetSampleResult)
// Status / Error Query
GPA_FUNCTION_PREFIX(GPA_GetStatusAsStr)
// Sample Handling
GPA_FUNCTION_PREFIX(GPA_GetSampleId)
// GPA API Version
GPA_FUNCTION_PREFIX(GPA_GetVersion)
#ifdef NEED_TO_UNDEFINE_GPA_FUNCTION_PREFIX
#undef GPA_FUNCTION_PREFIX
#undef NEED_TO_UNDEFINE_GPA_FUNCTION_PREFIX
#endif