| 1 |
/* |
| 2 |
* Copyright (C) 2022-2023 Intel Corporation |
| 3 |
* |
| 4 |
* SPDX-License-Identifier: MIT |
| 5 |
* |
| 6 |
*/ |
| 7 |
|
| 8 |
#pragma once |
| 9 |
#include "shared/source/os_interface/device_factory.h" |
| 10 |
|
| 11 |
#include "level_zero/tools/test/unit_tests/sources/metrics/mock_metric_oa.h" |
| 12 |
|
| 13 |
namespace L0 { |
| 14 |
namespace ult { |
| 15 |
|
| 16 |
class MetricQueryPoolTest : public MetricContextFixture, |
| 17 |
public ::testing::Test { |
| 18 |
protected: |
| 19 |
void SetUp() override; |
| 20 |
void TearDown() override; |
| 21 |
|
| 22 |
public: |
| 23 |
std::unique_ptr<L0::DriverHandle> driverHandle; |
| 24 |
}; |
| 25 |
|
| 26 |
class MultiDeviceMetricQueryPoolTest : public MetricMultiDeviceFixture, |
| 27 |
public ::testing::Test { |
| 28 |
protected: |
| 29 |
void SetUp() override; |
| 30 |
void TearDown() override; |
| 31 |
|
| 32 |
public: |
| 33 |
std::unique_ptr<L0::DriverHandle> driverHandle; |
| 34 |
}; |
| 35 |
|
| 36 |
class MultiDeviceMetricQueryPoolAffinityMaskTest : public MultiDeviceMetricQueryPoolTest { |
| 37 |
|
| 38 |
void SetUp() override { |
| 39 |
debugManager.flags.ZE_AFFINITY_MASK.set("0.1"); |
| 40 |
MultiDeviceMetricQueryPoolTest::SetUp(); |
| 41 |
} |
| 42 |
|
| 43 |
DebugManagerStateRestore restorer; |
| 44 |
}; |
| 45 |
|
| 46 |
} // namespace ult |
| 47 |
} // namespace L0 |