2014-07-04 16:17:05 -04:00
|
|
|
//
|
|
|
|
|
// Copyright (c) 2014 Advanced Micro Devices, Inc. All rights reserved.
|
|
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#include "top.hpp"
|
|
|
|
|
#include "utils/debug.hpp"
|
|
|
|
|
#include "device/appprofile.hpp"
|
|
|
|
|
#include "device/gpu/gpuappprofile.hpp"
|
|
|
|
|
|
|
|
|
|
namespace gpu {
|
|
|
|
|
|
2014-08-06 13:38:48 -04:00
|
|
|
AppProfile::AppProfile()
|
2017-04-13 13:56:38 -04:00
|
|
|
: amd::AppProfile(), enableHighPerformanceState_(true), reportAsOCL12Device_(false) {
|
2018-04-04 18:00:17 -04:00
|
|
|
propertyDataMap_.insert({"HighPerfState", PropertyData(DataType_Boolean, &enableHighPerformanceState_)});
|
|
|
|
|
propertyDataMap_.insert({"OCL12Device", PropertyData(DataType_Boolean, &reportAsOCL12Device_)});
|
2018-06-26 16:18:18 -04:00
|
|
|
propertyDataMap_.insert({"SclkThreshold", PropertyData(DataType_String, &sclkThreshold_)});
|
|
|
|
|
propertyDataMap_.insert({"DownHysteresis", PropertyData(DataType_String, &downHysteresis_)});
|
|
|
|
|
propertyDataMap_.insert({"UpHysteresis", PropertyData(DataType_String, &upHysteresis_)});
|
|
|
|
|
propertyDataMap_.insert({"PowerLimit", PropertyData(DataType_String, &powerLimit_)});
|
|
|
|
|
propertyDataMap_.insert({"MclkThreshold", PropertyData(DataType_String, &mclkThreshold_)});
|
|
|
|
|
propertyDataMap_.insert({"MclkUpHyst", PropertyData(DataType_String, &mclkUpHyst_)});
|
|
|
|
|
propertyDataMap_.insert({"MclkDownHyst", PropertyData(DataType_String, &mclkDownHyst_)});
|
2014-07-04 16:17:05 -04:00
|
|
|
}
|
|
|
|
|
}
|