Go to the documentation of this file.
85 const int ith,
const int nth)
94 const int ith,
const int nth)
96 std::vector<dcomplex> sum(num);
98 for (
int i = 0; i < num; i++) {
106 const int ith,
const int nth)
115 const int ith,
const int nth)
117 std::vector<double> sum(num);
119 for (
int i = 0; i < num; i++) {
127 const int ith,
const int nth)
136 const int ith,
const int nth)
138 std::vector<float> sum(num);
140 for (
int i = 0; i < num; i++) {
148 const int ith,
const int nth)
150 std::vector<double> vmax(num);
152 for (
int i = 0; i < num; ++i) {
160 const int ith,
const int nth)
static int sync()
synchronize within small world.
static int m_Nthread
number of threads.
static int get_num_threads()
returns available number of threads.
static int reduce_max(int count, double *recv_buf, double *send_buf, int pattern=0)
find a global maximum of an array of double over the communicator. pattern specifies the dimensions t...
static std::vector< double > m_darray_reduction
static void barrier(const int Nthread)
barrier among threads inside a node.
void paranoiac(const char *format,...)
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 reduce_max_global(double *value, const int num, const int i_thread, const int Nthread)
global reduction with max for an array: double values are assumed thread local.
static void sync_barrier_all()
barrier among all the threads and nodes.
static void init(int Nthread)
setup: called in main only once.
static Bridge::VerboseLevel m_vl
verbose level.
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 void wait()
barrier among threads inside a node.
static std::vector< float > m_darray_reductionF
static Bridge::VerboseLevel Vlevel()
static void finalize()
finalization.
static int get_thread_id()
returns thread id.
void general(const char *format,...)
static void assert_single_thread(const std::string &class_name)
assert currently running on single thread.