14 #ifndef THREADMANAGER_OPENMP_INCLUDED
15 #define THREADMANAGER_OPENMP_INCLUDED
51 #ifdef REDUCTION_EACH_BUF_SIZE_DC
57 #ifdef REDUCTION_EACH_BUF_SIZE
63 #ifdef REDUCTION_EACH_BUF_SIZE_F
78 static void init(
int Nthread);
96 static void barrier(
const int Nthread);
103 const int i_thread,
const int Nthread);
107 const int i_thread,
const int Nthread);
111 const int i_thread,
const int Nthread);
115 const int i_thread,
const int Nthread);
119 const int i_thread,
const int Nthread);
123 const int i_thread,
const int Nthread);
128 #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 const int each_buf_sizeDC
reduction buffer size for each thread (dcomplex)
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 std::vector< dcomplex > m_darray_reductionDC
static const std::string class_name
static void barrier(const int Nthread)
barrier among threads inside a node.
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 void reduce_sum_global(dcomplex &value, const int i_thread, const int Nthread)
global reduction with summation: dcomplex values are assumed thread local.
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 &)