ComputeLibrary
ComputeLibrary copied to clipboard
How can I set the number of threads ?
Hi, I found that the library will use all cores on default. in some cases, I need to run it with given number of threads. how can I set the number?
Hi,
You can call arm_compute::Scheduler::get().set_num_threads(num_threads); at the beginning of your program.
Hi, I found you should put "NEScheduler::get().force_number_of_threads(num_threads);" at the beginning of your program. In addition, "NEScheduler.h" should be also include in the header files.
CPPScheduler::force_number_of_threads() can be used to manually set the number of threads