14 #ifndef THREADMANAGER_OPENMP_INCLUDED
15 #define THREADMANAGER_OPENMP_INCLUDED
50 #ifdef REDUCTION_EACH_BUF_SIZE
56 #ifdef REDUCTION_EACH_BUF_SIZE_F
71 static void init(
int Nthread);
89 static void barrier(
const int Nthread);
96 const int i_thread,
const int Nthread);
100 const int i_thread,
const int Nthread);
104 const int i_thread,
const int Nthread);
108 const int i_thread,
const int Nthread);
113 #endif //THREADMANAGER_OPENMP_INCLUDED
static int m_Nthread
number of threads.
static const int each_buf_size
reduction buffer size for each thread (double)
static int get_num_threads()
returns available number of threads.
static std::vector< float > m_darray_reductionF
static void wait()
barrier among threads inside a node.
ThreadManager_OpenMP & operator=(const ThreadManager_OpenMP &)
static int get_thread_id()
returns thread id.
static void init(int Nthread)
setup: called in main only once.
static const std::string class_name
static void barrier(const int Nthread)
barrier among threads inside a node.
static void reduce_sum_global(double &value, const int i_thread, const int Nthread)
global reduction with summation: value is assumed thread local.
static void sync_barrier_all()
barrier among all the threads and nodes.
static void finalize()
finalization.
static int get_num_threads_available()
returns number of threads (works outside of parallel region).
static const int each_buf_sizeF
reduction buffer size for each thread (float)
static Bridge::VerboseLevel m_vl
verbose level.
static std::vector< double > m_darray_reduction
Thread manager with OpenMP.
static void assert_single_thread(const std::string &class_name)
assert currently running on single thread.
ThreadManager_OpenMP(const ThreadManager_OpenMP &)