mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 15:53:45 +08:00
Power Saving Hint Support for Level Zero in Windows
- Added Functionality to pass ze_power_saving_hint_type_t to zeContextCreate included in the pNext extensions in ze_context_desc_t. - Enables handling a hint value 0-100 with 0 being no power savings and 100 being maximum power savings. - ZE_RESULT_ERROR_INVALID_ENUMERATION is returned given an invalid hint. Related-To: LOCI-2567 Signed-off-by: Spruit, Neil R <neil.r.spruit@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
635c02e1ff
commit
02f075c541
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2018-2021 Intel Corporation
|
||||
* Copyright (C) 2018-2022 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -54,6 +54,9 @@ class OsContext : public ReferenceTrackedObject<OsContext> {
|
||||
aub_stream::EngineType contextEngineType,
|
||||
bool &startOnInit,
|
||||
bool &startInContext);
|
||||
virtual void reInitializeContext() {}
|
||||
uint8_t getUmdPowerHintValue() { return powerHintValue; }
|
||||
void setUmdPowerHintValue(uint8_t powerHintValue) { this->powerHintValue = powerHintValue; }
|
||||
|
||||
protected:
|
||||
virtual void initializeContext() {}
|
||||
@@ -71,5 +74,6 @@ class OsContext : public ReferenceTrackedObject<OsContext> {
|
||||
std::once_flag contextInitializedFlag = {};
|
||||
bool contextInitialized = false;
|
||||
bool engineInstancedDevice = false;
|
||||
uint8_t powerHintValue = 0;
|
||||
};
|
||||
} // namespace NEO
|
||||
|
||||
Reference in New Issue
Block a user