forked from GPUOpen-Tools/gpu_performance_api
-
Notifications
You must be signed in to change notification settings - Fork 1
/
GPACounterGeneratorCL.h
53 lines (42 loc) · 1.85 KB
/
GPACounterGeneratorCL.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
//==============================================================================
// Copyright (c) 2016 Advanced Micro Devices, Inc. All rights reserved.
/// \author AMD Developer Tools Team
/// \file
/// \brief Class for CL counter generation
//==============================================================================
#ifndef _GPA_COUNTER_GENERATOR_CL_H_
#define _GPA_COUNTER_GENERATOR_CL_H_
#include "GPACounterGeneratorBase.h"
/// The OpenCL-specific counter generator
class GPA_CounterGeneratorCL : public GPA_CounterGeneratorBase
{
public:
/// Constructor
GPA_CounterGeneratorCL();
protected:
/// \copydoc GPA_CounterGeneratorBase::GeneratePublicCounters
GPA_Status GeneratePublicCounters(
GDT_HW_GENERATION desiredGeneration,
GDT_HW_ASIC_TYPE asicType,
gpa_uint8 generateAsicSpecificCounters,
GPA_PublicCounters* pPublicCounters) override;
/// \copydoc GPA_CounterGeneratorBase::GenerateHardwareCounters
GPA_Status GenerateHardwareCounters(
GDT_HW_GENERATION desiredGeneration,
GDT_HW_ASIC_TYPE asicType,
gpa_uint8 generateAsicSpecificCounters,
GPA_HardwareCounters* pHardwareCounters) override;
/// \copydoc GPA_CounterGeneratorBase::GenerateSoftwareCounters
GPA_Status GenerateSoftwareCounters(
GDT_HW_GENERATION desiredGeneration,
GDT_HW_ASIC_TYPE asicType,
gpa_uint8 generateAsicSpecificCounters,
GPA_SoftwareCounters* pSoftwareCounters) override;
private:
/// Function to map from GPA block index to the OCL driver's block index for a particular hw generation
/// \param desiredGeneration the hardware generation
/// \param blockIndex GPA's block index
/// \return the OCL driver's block index
int GetDriverGroupId(GDT_HW_GENERATION desiredGeneration, int blockIndex) const;
};
#endif //_GPA_COUNTER_GENERATOR_CL_H_