Skip to content

Commit

Permalink
Fix constraints_variety set traverse, extend constraints test cases (#…
Browse files Browse the repository at this point in the history
…1530)

Signed-off-by: Isaev, Ilya <[email protected]>
  • Loading branch information
isaevil authored Oct 15, 2024
1 parent 26d7f29 commit 94bee9c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions test/common/common_arena_constraints.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
Copyright (c) 2019-2023 Intel Corporation
Copyright (c) 2019-2024 Intel Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -560,16 +560,19 @@ constraints_container generate_constraints_variety() {
#endif /*__HYBRID_CPUS_TESTING*/
}

int max_threads_per_core = system_info::get_available_max_threads_values().back();
// Some constraints may cause unexpected behavior, which would be fixed later.
if (get_processors_group_count() > 1) {
for(auto it = results.begin(); it != results.end(); ++it) {
if (it->max_threads_per_core != tbb::task_arena::automatic
for(auto it = results.begin(); it != results.end();) {
if (it->max_threads_per_core != max_threads_per_core
&& (it->numa_id == tbb::task_arena::automatic || tbb::info::numa_nodes().size() == 1)
#if __HYBRID_CPUS_TESTING
&& (it->core_type == tbb::task_arena::automatic || tbb::info::core_types().size() == 1)
#endif /*__HYBRID_CPUS_TESTING*/
) {
it = results.erase(it);
} else {
++it;
}
}
}
Expand Down

0 comments on commit 94bee9c

Please sign in to comment.