rebase (#17212)
This commit is contained in:
parent
92ac04dcac
commit
277e759dcd
@ -96,7 +96,7 @@ TEST_F(OVClassConfigTestCPU, smoke_CpuExecNetworkCheckCoreStreamsHasHigherPriori
|
|||||||
|
|
||||||
TEST_F(OVClassConfigTestCPU, smoke_CpuExecNetworkCheckCoreStreamsHasHigherPriorityThanLatencyHint) {
|
TEST_F(OVClassConfigTestCPU, smoke_CpuExecNetworkCheckCoreStreamsHasHigherPriorityThanLatencyHint) {
|
||||||
ov::Core ie;
|
ov::Core ie;
|
||||||
int32_t streams = 4; // latency hint should apply lower number of streams
|
int32_t streams = ov::get_number_of_cpu_cores(); // latency hint should apply lower number of streams
|
||||||
int32_t value = 0;
|
int32_t value = 0;
|
||||||
|
|
||||||
ASSERT_NO_THROW(ie.set_property(deviceName, ov::num_streams(streams)));
|
ASSERT_NO_THROW(ie.set_property(deviceName, ov::num_streams(streams)));
|
||||||
@ -109,7 +109,7 @@ TEST_F(OVClassConfigTestCPU, smoke_CpuExecNetworkCheckCoreStreamsHasHigherPriori
|
|||||||
|
|
||||||
TEST_F(OVClassConfigTestCPU, smoke_CpuExecNetworkCheckModelStreamsHasHigherPriorityThanLatencyHint) {
|
TEST_F(OVClassConfigTestCPU, smoke_CpuExecNetworkCheckModelStreamsHasHigherPriorityThanLatencyHint) {
|
||||||
ov::Core ie;
|
ov::Core ie;
|
||||||
int32_t streams = 4; // latency hint should apply lower number of streams
|
int32_t streams = ov::get_number_of_cpu_cores(); // latency hint should apply lower number of streams
|
||||||
int32_t value = 0;
|
int32_t value = 0;
|
||||||
|
|
||||||
ASSERT_NO_THROW(ie.set_property(deviceName, ov::hint::performance_mode(ov::hint::PerformanceMode::LATENCY)));
|
ASSERT_NO_THROW(ie.set_property(deviceName, ov::hint::performance_mode(ov::hint::PerformanceMode::LATENCY)));
|
||||||
|
@ -197,20 +197,21 @@ INSTANTIATE_TEST_SUITE_P(smoke_OVClassSetDevicePriorityConfigPropsTest,
|
|||||||
::testing::ValuesIn(multiConfigs)));
|
::testing::ValuesIn(multiConfigs)));
|
||||||
|
|
||||||
const std::vector<ov::AnyMap> configsDeviceProperties = {
|
const std::vector<ov::AnyMap> configsDeviceProperties = {
|
||||||
{ov::device::properties("CPU", ov::num_streams(3))},
|
{ov::device::properties("CPU", ov::num_streams(2))},
|
||||||
{ov::device::properties(ov::AnyMap{{"CPU", ov::AnyMap{ov::num_streams(3)}}})}};
|
{ov::device::properties(ov::AnyMap{{"CPU", ov::AnyMap{ov::num_streams(2)}}})}};
|
||||||
|
|
||||||
const std::vector<ov::AnyMap> configsDevicePropertiesDouble = {
|
const std::vector<ov::AnyMap> configsDevicePropertiesDouble = {
|
||||||
{ov::device::properties("CPU", ov::num_streams(3)), ov::num_streams(5)},
|
{ov::device::properties("CPU", ov::num_streams(2)), ov::num_streams(5)},
|
||||||
{ov::device::properties("CPU", ov::num_streams(3)),
|
{ov::device::properties("CPU", ov::num_streams(2)),
|
||||||
ov::device::properties(ov::AnyMap{{"CPU", ov::AnyMap{ov::num_streams(7)}}}),
|
ov::device::properties(ov::AnyMap{{"CPU", ov::AnyMap{ov::num_streams(7)}}}),
|
||||||
ov::num_streams(5)},
|
ov::num_streams(5)},
|
||||||
{ov::device::properties("CPU", ov::num_streams(3)), ov::device::properties("CPU", ov::num_streams(5))},
|
{ov::device::properties("CPU", ov::num_streams(2)), ov::device::properties("CPU", ov::num_streams(5))},
|
||||||
{ov::device::properties("CPU", ov::num_streams(3)),
|
{ov::device::properties("CPU", ov::num_streams(1)),
|
||||||
ov::device::properties(ov::AnyMap{{"CPU", ov::AnyMap{ov::num_streams(5)}}})},
|
ov::device::properties(ov::AnyMap{{"CPU", ov::AnyMap{ov::num_streams(5)}}})},
|
||||||
{ov::device::properties(ov::AnyMap{{"CPU", ov::AnyMap{ov::num_streams(3)}}}),
|
{ov::device::properties(ov::AnyMap{{"CPU", ov::AnyMap{ov::num_streams(1)}}}),
|
||||||
ov::device::properties(ov::AnyMap{{"CPU", ov::AnyMap{ov::num_streams(5)}}})}};
|
ov::device::properties(ov::AnyMap{{"CPU", ov::AnyMap{ov::num_streams(5)}}})}};
|
||||||
|
|
||||||
|
|
||||||
// IE Class load and check network with ov::device::properties
|
// IE Class load and check network with ov::device::properties
|
||||||
INSTANTIATE_TEST_SUITE_P(smoke_CPU_OVClassCompileModelAndCheckSecondaryPropertiesTest,
|
INSTANTIATE_TEST_SUITE_P(smoke_CPU_OVClassCompileModelAndCheckSecondaryPropertiesTest,
|
||||||
OVClassCompileModelAndCheckSecondaryPropertiesTest,
|
OVClassCompileModelAndCheckSecondaryPropertiesTest,
|
||||||
|
Loading…
Reference in New Issue
Block a user