mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 23:03:02 +08:00
Reverse logic of creating Memory Manager - part 3
-Move a Device::getEnabled64kbPages method's logic to the Memory Manager constructor Change-Id: Ide88898000e5817a79f9a6ad5dfc9d680bec0533 Signed-off-by: Jobczyk, Lukasz <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
cc13045ddd
commit
9ecb3193af
@@ -111,8 +111,6 @@ class Device : public BaseObject<_cl_device_id> {
|
||||
std::vector<unsigned int> simultaneousInterops;
|
||||
std::string deviceExtensions;
|
||||
std::string name;
|
||||
bool getEnabled64kbPages() const;
|
||||
static bool getEnabled64kbPages(const HardwareInfo &hwInfo);
|
||||
bool isSourceLevelDebuggerActive() const;
|
||||
SourceLevelDebugger *getSourceLevelDebugger() { return executionEnvironment->sourceLevelDebugger.get(); }
|
||||
ExecutionEnvironment *getExecutionEnvironment() const { return executionEnvironment; }
|
||||
|
||||
@@ -42,20 +42,6 @@ static constexpr cl_device_fp_config defaultFpFlags = static_cast<cl_device_fp_c
|
||||
CL_FP_DENORM |
|
||||
CL_FP_FMA);
|
||||
|
||||
bool Device::getEnabled64kbPages() const {
|
||||
return getEnabled64kbPages(this->hwInfo);
|
||||
}
|
||||
|
||||
bool Device::getEnabled64kbPages(const HardwareInfo &hwInfo) {
|
||||
if (DebugManager.flags.Enable64kbpages.get() == -1) {
|
||||
// assign value according to os and hw configuration
|
||||
return OSInterface::osEnabled64kbPages && hwInfo.capabilityTable.ftr64KBpages;
|
||||
} else {
|
||||
// force debug settings
|
||||
return (DebugManager.flags.Enable64kbpages.get() != 0);
|
||||
}
|
||||
}
|
||||
|
||||
void Device::setupFp64Flags() {
|
||||
if (DebugManager.flags.OverrideDefaultFP64Settings.get() == -1) {
|
||||
if (hwInfo.capabilityTable.ftrSupportsFP64) {
|
||||
|
||||
Reference in New Issue
Block a user