Metall v0.30
A persistent memory allocator for data-centric analytics
 
Loading...
Searching...
No Matches
open_mp.hpp File Reference
#include <cstdint>
#include <string>

Go to the source code of this file.

Namespaces

namespace  metall
 The top level of namespace of Metall.
 
namespace  metall::utility
 Namespace for utility items.
 
namespace  metall::utility::omp
 Namespace for utility items for OpenMP.
 

Macros

#define OPEN_MP_PRAGMA_OPERATOR(x)   _Pragma(#x)
 
#define OMP_DIRECTIVE(directive)
 

Typedefs

using metall::utility::omp::omp_sched_type = int
 

Functions

std::string metall::utility::omp::schedule_kind_name (const omp_sched_type kind)
 
std::pair< omp_sched_type, int > metall::utility::omp::get_schedule ()
 
int metall::utility::omp::get_num_threads () noexcept
 
int metall::utility::omp::get_thread_num () noexcept
 
void metall::utility::omp::set_num_threads (const int n) noexcept
 

Macro Definition Documentation

◆ OPEN_MP_PRAGMA_OPERATOR

#define OPEN_MP_PRAGMA_OPERATOR (   x)    _Pragma(#x)

◆ OMP_DIRECTIVE

#define OMP_DIRECTIVE (   directive)