mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-05-23 22:13:38 +00:00
Tune test case for hybrid cpu (#14204)
Tune test case for hybrid cpu architecture. Co-authored-by: Randy Shuai <rashuai@microsoft.com>
This commit is contained in:
parent
90142899bd
commit
d152452d4b
1 changed files with 2 additions and 1 deletions
|
|
@ -608,7 +608,8 @@ TEST(ThreadPoolTest, TestAffinityStringWellShaped) {
|
|||
auto non_default_tp = concurrency::CreateThreadPool(&onnxruntime::Env::Default(),
|
||||
tp_params,
|
||||
concurrency::ThreadPoolType::INTRA_OP);
|
||||
ASSERT_TRUE(concurrency::ThreadPool::DegreeOfParallelism(non_default_tp.get()) == 3);
|
||||
auto DOP = concurrency::ThreadPool::DegreeOfParallelism(non_default_tp.get());
|
||||
ASSERT_TRUE(DOP >= 3 && DOP % 3 == 0); // for hybrid cpu, dop is a multiple of 3
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue