Treelite
Functions
parallel_for.h File Reference

Implemenation of parallel for loop. More...

#include <treelite/logging.h>
#include <future>
#include <thread>
#include <algorithm>
#include <vector>
#include <cstddef>
Include dependency graph for parallel_for.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

template<typename IndexType >
std::vector< IndexType > ComputeWorkRange (IndexType begin, IndexType end, std::size_t nthread)
 
template<typename IndexType , typename FuncType >
void ParallelFor (IndexType begin, IndexType end, std::size_t nthread, FuncType func)
 

Detailed Description

Implemenation of parallel for loop.

Copyright (c) 2021 by Contributors

Author
Hyunsu Cho

Definition in file parallel_for.h.