Files
rocm-systems/rocclr/runtime/device/appprofile.hpp
T

53 строки
1.3 KiB
C++
Исходник Обычный вид История

2014-07-04 16:17:05 -04:00
//
// Copyright (c) 2014 Advanced Micro Devices, Inc. All rights reserved.
//
#ifndef APPPROFILE_HPP_
#define APPPROFILE_HPP_
#include <unordered_map>
2014-07-04 16:17:05 -04:00
#include <string>
namespace amd {
class AppProfile {
public:
AppProfile();
virtual ~AppProfile();
2014-07-04 16:17:05 -04:00
bool init();
2014-07-04 16:17:05 -04:00
const std::string& GetBuildOptsAppend() const { return buildOptsAppend_; }
const std::string& appFileName() const { return appFileName_; }
const std::wstring& wsAppPathAndFileName() const { return wsAppPathAndFileName_; }
protected:
enum DataTypes {
DataType_Unknown = 0,
DataType_Boolean,
DataType_String,
};
struct PropertyData {
PropertyData(DataTypes type, void* data) : type_(type), data_(data) {}
DataTypes type_; //!< Data type
void* data_; //!< Pointer to the data
};
typedef std::unordered_map<std::string, PropertyData> DataMap;
DataMap propertyDataMap_;
std::string appFileName_; // without extension
std::wstring wsAppFileName_;
std::string appPathAndFileName_; // with path and extension
std::wstring wsAppPathAndFileName_;
2014-07-04 16:17:05 -04:00
virtual bool ParseApplicationProfile();
2014-07-04 16:17:05 -04:00
bool gpuvmHighAddr_; // Currently not used.
bool profileOverridesAllSettings_; // Overrides hint flags and env.var.
std::string buildOptsAppend_;
2014-07-04 16:17:05 -04:00
};
}
#endif