mnncorrect
Batch correction with mutual nearest neighbors
Loading...
Searching...
No Matches
parallelize.hpp
Go to the documentation of this file.
1#ifndef MNNCORRECT_PARALLELIZE_HPP
2#define MNNCORRECT_PARALLELIZE_HPP
3
9#ifndef MNNCORRECT_CUSTOM_PARALLEL
10#include "subpar/subpar.hpp"
11#endif
12
13namespace mnncorrect {
14
27template<typename Task_, class Run_>
28void parallelize(int num_workers, Task_ num_tasks, Run_ run_task_range) {
29#ifndef MNNCORRECT_CUSTOM_PARALLEL
30 // Methods could allocate or throw, so nothrow_ = false is safest.
31 subpar::parallelize_range<false>(num_workers, num_tasks, std::move(run_task_range));
32#else
33 MNNCORRECT_CUSTOM_PARALLEL(num_workers, num_tasks, run_task_range);
34#endif
35}
36
37}
38
39#endif
Batch correction with mutual nearest neighbors.
Definition compute.hpp:23
void parallelize(int num_workers, Task_ num_tasks, Run_ run_task_range)
Definition parallelize.hpp:28