MCPcopy Create free account
hub / github.com/ARM-software/ComputeLibrary / Impl

Method Impl

src/runtime/CPP/CPPScheduler.cpp:319–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317 Fanout
318 };
319 explicit Impl(unsigned int thread_hint)
320 : _num_threads(thread_hint), _threads(_num_threads - 1), _mode(Mode::Linear), _wake_fanout(0U)
321 {
322 const auto mode_env_v = utility::tolower(utility::getenv("ARM_COMPUTE_CPP_SCHEDULER_MODE"));
323 if (mode_env_v == "linear")
324 {
325 _forced_mode = ModeToggle::Linear;
326 }
327 else if (mode_env_v == "fanout")
328 {
329 _forced_mode = ModeToggle::Fanout;
330 }
331 else
332 {
333 _forced_mode = ModeToggle::None;
334 }
335 }
336 void set_num_threads(unsigned int num_threads, unsigned int thread_hint)
337 {
338 _num_threads = num_threads == 0 ? thread_hint : num_threads;

Callers

nothing calls this directly

Calls 2

getenvFunction · 0.85
tolowerFunction · 0.50

Tested by

no test coverage detected