umappp
A C++ library for UMAP
Loading...
Searching...
No Matches
parallelize.hpp
Go to the documentation of this file.
1#ifndef UMAPPP_PARALLELIZE_HPP
2#define UMAPPP_PARALLELIZE_HPP
3
9#ifndef UMAPPP_CUSTOM_PARALLEL
10#include "subpar/subpar.hpp"
11#endif
12
13namespace umappp {
14
27template<typename Task_, class Run_>
28void parallelize(const int num_workers, const Task_ num_tasks, Run_ run_task_range) {
29#ifndef UMAPPP_CUSTOM_PARALLEL
30 // Don't make this nothrow_ = true, there's too many allocations and the
31 // derived methods for the nearest neighbors search could do anything...
32 subpar::parallelize(num_workers, num_tasks, std::move(run_task_range));
33#else
34 UMAPPP_CUSTOM_PARALLEL(num_workers, num_tasks, run_task_range);
35#endif
36}
37
38}
39
40#endif
41
Functions for creating UMAP embeddings.
Definition initialize.hpp:22
void parallelize(const int num_workers, const Task_ num_tasks, Run_ run_task_range)
Definition parallelize.hpp:28