85 const int i_thread,
const int Nthread)
94 const int i_thread,
const int Nthread)
96 std::vector<dcomplex> sum(num);
98 for (
int i = 0; i < num; i++) {
106 const int i_thread,
const int Nthread)
115 const int i_thread,
const int Nthread)
117 std::vector<double> sum(num);
119 for (
int i = 0; i < num; i++) {
127 const int i_thread,
const int Nthread)
136 const int i_thread,
const int Nthread)
138 std::vector<float> sum(num);
140 for (
int i = 0; i < num; i++) {
148 const std::string& class_name)
static int m_Nthread
number of threads.
static int get_num_threads()
returns available number of threads.
void general(const char *format,...)
static std::vector< float > m_darray_reductionF
static Bridge::VerboseLevel Vlevel()
static int reduce_sum(int count, dcomplex *recv_buf, dcomplex *send_buf, int pattern=0)
make a global sum of an array of dcomplex over the communicator. pattern specifies the dimensions to ...
static void wait()
barrier among threads inside a node.
static int get_thread_id()
returns thread id.
static void init(int Nthread)
setup: called in main only once.
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.
void paranoiac(const char *format,...)
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
static int sync()
synchronize within small world.
static void assert_single_thread(const std::string &class_name)
assert currently running on single thread.