aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorOmar Al Khatib <omar.alkhatib@arm.com>2024-05-21 15:07:09 +0100
committerMichael Kozlov <michael.kozlov@arm.com>2024-05-21 17:19:38 +0100
commit0fb1b3f35f2950000db198dee708cfc4a81505da (patch)
tree5e04ec5552b1fa1109920e14816e8f286fa9c670 /tests
parent602166d3ab283459a288ed34dd7ef5eda32f3152 (diff)
downloadComputeLibrary-0fb1b3f35f2950000db198dee708cfc4a81505da.tar.gz
Fix issues with OpenMP scheduler little core exclusion.
1. Remove unnecessary restriction to the exclusion only running on systems with little mid and big cores. 2. Allow override of the suggested number of threads in case the user sets the number of threads to a lower value. Resolves [COMPMID-7014] Signed-off-by: Omar Al Khatib <omar.alkhatib@arm.com> Change-Id: Ifb76ef4454f38dd2e3e5781b5dfea07c044aeb74 Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/11604 Benchmark: Arm Jenkins <bsgcomp@arm.com> Tested-by: Arm Jenkins <bsgcomp@arm.com> Reviewed-by: Pablo Marquez Tello <pablo.tello@arm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/validation/NEON/UNIT/RuntimeContext.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/validation/NEON/UNIT/RuntimeContext.cpp b/tests/validation/NEON/UNIT/RuntimeContext.cpp
index e126aded28..e0d45c639a 100644
--- a/tests/validation/NEON/UNIT/RuntimeContext.cpp
+++ b/tests/validation/NEON/UNIT/RuntimeContext.cpp
@@ -53,15 +53,10 @@ TEST_SUITE(UNIT)
TEST_CASE(CpuCapacity, framework::DatasetMode::ALL)
{
CPUInfo& ci = arm_compute::Scheduler::get().cpu_info();
- const uint32_t total_num_cpus = ci.get_cpu_num();
const uint32_t nonlittle_num_cpus = ci.get_cpu_num_excluding_little();
- const bool has_lmb = ci.cpu_has_little_mid_big();
const uint32_t num_threads = arm_compute::Scheduler::get().num_threads();
- if(has_lmb){
- ARM_COMPUTE_EXPECT(total_num_cpus!=nonlittle_num_cpus , framework::LogLevel::ERRORS);
- ARM_COMPUTE_EXPECT(num_threads==nonlittle_num_cpus , framework::LogLevel::ERRORS);
- }
+ ARM_COMPUTE_EXPECT(num_threads<=nonlittle_num_cpus , framework::LogLevel::ERRORS);
}
#endif /* defined(ARM_COMPUTE_OPENMP_SCHEDULER) && !defined(_WIN64) && !defined(BARE_METAL) && !defined(__APPLE__) && !defined(__OpenBSD__) && \
(defined(__arm__) || defined(__aarch64__)) && defined(__ANDROID__)*/