Metall  v0.28
A persistent memory allocator for data-centric analytics
metall::utility::omp Namespace Reference

Namespace for utility items for OpenMP. More...

Typedefs

using omp_sched_type = int
 

Functions

std::string schedule_kind_name ([[maybe_unused]] const omp_sched_type kind)
 
std::pair< omp_sched_type, int > get_schedule ()
 
int get_num_threads () noexcept
 
int get_thread_num () noexcept
 
void set_num_threads ([[maybe_unused]] const int n) noexcept
 

Detailed Description

Namespace for utility items for OpenMP.

Typedef Documentation

◆ omp_sched_type

Function Documentation

◆ schedule_kind_name()

std::string metall::utility::omp::schedule_kind_name ( [[maybe_unused] ] const omp_sched_type  kind)
inline

◆ get_schedule()

std::pair<omp_sched_type, int> metall::utility::omp::get_schedule ( )
inline

◆ get_num_threads()

int metall::utility::omp::get_num_threads ( )
inlinenoexcept

◆ get_thread_num()

int metall::utility::omp::get_thread_num ( )
inlinenoexcept

◆ set_num_threads()

void metall::utility::omp::set_num_threads ( [[maybe_unused] ] const int  n)
inlinenoexcept