mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 21:27:04 +08:00
Change-Id: I171c5afe33fa216097b175e335d90692abfefa24 Signed-off-by: Jitendra Sharma <jitendra.sharma@intel.com>
26 lines
598 B
C++
26 lines
598 B
C++
/*
|
|
* Copyright (C) 2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <level_zero/zet_api.h>
|
|
|
|
#include "third_party/level_zero/zes_api_ext.h"
|
|
|
|
namespace L0 {
|
|
|
|
struct OsSysman;
|
|
class OsTemperature {
|
|
public:
|
|
virtual ze_result_t getSensorTemperature(double *pTemperature) = 0;
|
|
virtual bool isTempModuleSupported() = 0;
|
|
static OsTemperature *create(OsSysman *pOsSysman, zet_temp_sensors_t sensorType);
|
|
static OsTemperature *create(OsSysman *pOsSysman, zes_temp_sensors_t sensorType);
|
|
virtual ~OsTemperature() = default;
|
|
};
|
|
|
|
} // namespace L0
|