treelite
Classes | Functions
treelite::detail::threading_utils Namespace Reference

Classes

struct  ThreadConfig
 Represent thread configuration, to be used with parallel loops. More...
 
struct  ParallelSchedule
 

Functions

int OmpGetThreadLimit ()
 
int MaxNumThread ()
 
template<typename IndexType , typename FuncType >
void ParallelFor (IndexType begin, IndexType end, ThreadConfig const &thread_config, ParallelSchedule sched, FuncType func)
 

Function Documentation

◆ MaxNumThread()

int treelite::detail::threading_utils::MaxNumThread ( )
inline

◆ OmpGetThreadLimit()

int treelite::detail::threading_utils::OmpGetThreadLimit ( )
inline

◆ ParallelFor()

template<typename IndexType , typename FuncType >
void treelite::detail::threading_utils::ParallelFor ( IndexType  begin,
IndexType  end,
ThreadConfig const &  thread_config,
ParallelSchedule  sched,
FuncType  func 
)
inline