45 řádky
966 B
C++
45 řádky
966 B
C++
//
|
|
// Copyright (c) 2014 Advanced Micro Devices, Inc. All rights reserved.
|
|
//
|
|
|
|
#ifndef GPUAPPPROFILE_HPP_
|
|
#define GPUAPPPROFILE_HPP_
|
|
|
|
#include <string>
|
|
#include <map>
|
|
|
|
namespace gpu {
|
|
|
|
class AppProfile : public amd::AppProfile
|
|
{
|
|
public:
|
|
AppProfile();
|
|
|
|
//! return the value of enableHighPerformanceState_
|
|
bool enableHighPerformanceState() const {return enableHighPerformanceState_; }
|
|
bool reportAsOCL12Device() const {return reportAsOCL12Device_; }
|
|
|
|
protected:
|
|
//! parse application profile based on application file name
|
|
virtual bool ParseApplicationProfile();
|
|
|
|
private:
|
|
typedef enum DataTypesEnum
|
|
{
|
|
DataType_Unknown = 0,
|
|
DataType_Boolean,
|
|
} DataTypes;
|
|
typedef std::map<std::string, DataTypes> DatatypeMap;
|
|
typedef std::map<std::string, bool*> BoolMap;
|
|
|
|
DatatypeMap propertyDatatypeMap_;
|
|
BoolMap boolPropertyMap_;
|
|
|
|
bool enableHighPerformanceState_;
|
|
bool reportAsOCL12Device_;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|