mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 06:49:52 +08:00
Cleanup comments in Metrics (2)
Change-Id: I1393b14e35d9624cbb22613ae2c21c6361df24fe Signed-off: Jaime Arteaga <jaime.a.arteaga.molina@intel.com>
This commit is contained in:
@@ -9,8 +9,6 @@
|
||||
|
||||
namespace L0 {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Returns Metrics Discovery library file name.
|
||||
const char *MetricEnumeration::getMetricsDiscoveryFilename() { return "libmd.so"; }
|
||||
|
||||
} // namespace L0
|
||||
|
||||
@@ -12,18 +12,12 @@ using namespace MetricsLibraryApi;
|
||||
|
||||
namespace L0 {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Returns metrics library file name.
|
||||
const char *MetricsLibrary::getFilename() { return "libigdml64.so"; }
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Returns os specific data required to initialize metrics library.
|
||||
bool MetricsLibrary::getContextData(Device &device, ContextCreateData_1_0 &contextData) {
|
||||
return true;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Writes metric group configuration to gpu.
|
||||
bool MetricsLibrary::activateConfiguration(const ConfigurationHandle_1_0 configurationHandle) {
|
||||
UNRECOVERABLE_IF(!configurationHandle.IsValid());
|
||||
|
||||
@@ -40,8 +34,6 @@ bool MetricsLibrary::activateConfiguration(const ConfigurationHandle_1_0 configu
|
||||
return result;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Disables activated metric group configuration.
|
||||
bool MetricsLibrary::deactivateConfiguration(const ConfigurationHandle_1_0 configurationHandle) {
|
||||
|
||||
const bool validMetricsLibrary = isInitialized();
|
||||
|
||||
@@ -17,8 +17,6 @@
|
||||
|
||||
namespace L0 {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Returns Metrics Discovery library file name.
|
||||
const char *MetricEnumeration::getMetricsDiscoveryFilename() { return METRICS_DISCOVERY_NAME; }
|
||||
|
||||
} // namespace L0
|
||||
|
||||
@@ -22,12 +22,8 @@ using namespace MetricsLibraryApi;
|
||||
|
||||
namespace L0 {
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Returns metrics library file name.
|
||||
const char *MetricsLibrary::getFilename() { return METRICS_LIBRARY_NAME; }
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Returns os specific data required to initialize metrics library.
|
||||
bool MetricsLibrary::getContextData(Device &device, ContextCreateData_1_0 &contextData) {
|
||||
|
||||
auto osInterface = device.getOsInterface().get();
|
||||
@@ -43,8 +39,6 @@ bool MetricsLibrary::getContextData(Device &device, ContextCreateData_1_0 &conte
|
||||
return osData.Device && osData.Escape && osData.Adapter;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Writes metric group configuration to gpu.
|
||||
bool MetricsLibrary::activateConfiguration(const ConfigurationHandle_1_0 configurationHandle) {
|
||||
|
||||
ConfigurationActivateData_1_0 activateData = {};
|
||||
@@ -59,8 +53,6 @@ bool MetricsLibrary::activateConfiguration(const ConfigurationHandle_1_0 configu
|
||||
return result;
|
||||
}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Disables activated metric group configuration.
|
||||
bool MetricsLibrary::deactivateConfiguration(const ConfigurationHandle_1_0 configurationHandle) {
|
||||
|
||||
const bool validMetricsLibrary = isInitialized();
|
||||
|
||||
Reference in New Issue
Block a user