Home
last modified time | relevance | path

Searched refs:num_threads_to_use (Results 1 – 2 of 2) sorted by relevance

/aosp_15_r20/external/ComputeLibrary/src/runtime/CPP/
H A DCPPScheduler.cpp363 void auto_switch_mode(unsigned int num_threads_to_use) in auto_switch_mode()
366 …_forced_mode == ModeToggle::Fanout || (_forced_mode == ModeToggle::None && num_threads_to_use > 8)) in auto_switch_mode()
368 set_fanout_mode(m_default_wake_fanout, num_threads_to_use); in auto_switch_mode()
369 … mode, with wake up fanout : %d and %d threads to use\n", this->wake_fanout(), num_threads_to_use); in auto_switch_mode()
374 …_WITH_FORMAT_CORE("Set CPPScheduler to Linear mode, with %d threads to use\n", num_threads_to_use); in auto_switch_mode()
386 void set_fanout_mode(unsigned int wake_fanout, unsigned int num_threads_to_use) in set_fanout_mode()
388 ARM_COMPUTE_ERROR_ON(num_threads_to_use > _threads.size() + 1); in set_fanout_mode()
389 const auto actual_wake_fanout = std::max(2U, std::min(wake_fanout, num_threads_to_use - 1)); in set_fanout_mode()
391 for(auto i = 1U; i < num_threads_to_use; ++i, ++thread_it) in set_fanout_mode()
394 … const auto wake_end = std::min((i + 1) * actual_wake_fanout - 1, num_threads_to_use - 1); in set_fanout_mode()
[all …]
/aosp_15_r20/external/ComputeLibrary/src/runtime/OMP/
H A DOMPScheduler.cpp92 const unsigned int num_threads_to_use = std::min(_num_threads, amount_of_work); in run_workloads() local
94 if(amount_of_work < 1 || num_threads_to_use == 1) in run_workloads()
101 info.num_threads = num_threads_to_use; in run_workloads()
102 #pragma omp parallel for firstprivate(info) num_threads(num_threads_to_use) default(shared) proc_bi… in run_workloads()