Files
rocm-systems/rocclr/runtime/device/gpu/gpuappprofile.hpp
T
foreman 717c0e3e6c P4 to Git Change 1572945 by jatang@jatang-opencl-hsa-stg5 on 2018/06/26 16:09:41
SWDEV-155654 - TDR\BSOD observed while running Nuke Performance Benchmark test on Hawaii Asics.

	Need to support the new power-related appprofile parameters for gfx8 ASICs.

Affected files ...

... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuappprofile.cpp#14 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuappprofile.hpp#8 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudevice.cpp#592 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.cpp#183 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDevice.h#64 edit
2018-06-26 16:18:18 -04:00

42 lines
1.3 KiB
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_; }
const std::string& GetSclkThreshold() const { return sclkThreshold_; }
const std::string& GetDownHysteresis() const { return downHysteresis_; }
const std::string& GetUpHysteresis() const { return upHysteresis_; }
const std::string& GetPowerLimit() const { return powerLimit_; }
const std::string& GetMclkThreshold() const { return mclkThreshold_; }
const std::string& GetMclkUpHyst() const { return mclkUpHyst_; }
const std::string& GetMclkDownHyst() const { return mclkDownHyst_; }
private:
bool enableHighPerformanceState_;
bool reportAsOCL12Device_;
std::string sclkThreshold_;
std::string downHysteresis_;
std::string upHysteresis_;
std::string powerLimit_;
std::string mclkThreshold_;
std::string mclkUpHyst_;
std::string mclkDownHyst_;
};
}
#endif