22#include " mpi.h"
33#endif
44#include " depend_mock.h"
5+ #include < complex>
56
67namespace GlobalV
78{
@@ -12,13 +13,85 @@ MPI_Comm POOL_WORLD;
1213namespace Parallel_Reduce
1314{
1415 template <typename T> void reduce_all (T& object) { return ; };
16+ template <typename T> void reduce_all (T* object, const int n) { return ; };
1517 template <typename T> void reduce_pool (T& object) { return ; };
18+ template <typename T> void reduce_pool (T* object, const int n) { return ; };
1619
20+ template <>
21+ void reduce_all<int >(int & object) { return ; };
22+ template <>
23+ void reduce_all<long long >(long long & object) { return ; };
1724 template <>
1825 void reduce_all<double >(double & object) { return ; };
1926 template <>
20- void reduce_pool<double >(double & object) { return ; };
27+ void reduce_all<float >(float & object) { return ; };
28+ template <>
29+ void reduce_all<std::complex <double >>(std::complex <double >& object) { return ; };
30+ template <>
31+ void reduce_all<std::complex <float >>(std::complex <float >& object) { return ; };
32+
33+ template <>
34+ void reduce_all<int >(int * object, const int n) { return ; };
35+ template <>
36+ void reduce_all<long long >(long long * object, const int n) { return ; };
37+ template <>
38+ void reduce_all<double >(double * object, const int n) { return ; };
39+ template <>
40+ void reduce_all<std::complex <double >>(std::complex <double >* object, const int n) { return ; };
41+ template <>
42+ void reduce_all<std::complex <float >>(std::complex <float >* object, const int n) { return ; };
43+
2144 template <>
2245 void reduce_pool<float >(float & object) { return ; };
46+ template <>
47+ void reduce_pool<double >(double & object) { return ; };
48+ template <>
49+ void reduce_pool<std::complex <double >>(std::complex <double >& object) { return ; };
50+
51+ template <>
52+ void reduce_pool<int >(int * object, const int n) { return ; };
53+ template <>
54+ void reduce_pool<double >(double * object, const int n) { return ; };
55+ template <>
56+ void reduce_pool<std::complex <float >>(std::complex <float >* object, const int n) { return ; };
57+ template <>
58+ void reduce_pool<std::complex <double >>(std::complex <double >* object, const int n) { return ; };
59+
60+ void reduce_or_all (bool & object) { return ; };
61+
62+ template <typename T>
63+ void reduce_max_all (T& object) { return ; };
64+ template <> void reduce_max_all<double >(double & object) { return ; };
65+ template <> void reduce_max_all<float >(float & object) { return ; };
66+ template <> void reduce_max_all<int >(int & object) { return ; };
67+
68+ template <typename T>
69+ void reduce_min_all (T& object) { return ; };
70+ template <> void reduce_min_all<double >(double & object) { return ; };
71+ template <> void reduce_min_all<float >(float & object) { return ; };
72+ template <> void reduce_min_all<int >(int & object) { return ; };
73+
74+ void reduce_max_pool (int * object, const int n) { return ; };
75+ void reduce_min_pool (double & object) { return ; };
76+
77+ void reduce_or_bp (bool & object) { return ; };
78+
79+ void reduce_double_bgroup (double & object) { return ; };
80+ void reduce_double_bgroup (double * object, const int n) { return ; };
81+
82+ void reduce_double_bp (double & object) { return ; };
83+ void reduce_double_bp (double * object, const int n) { return ; };
84+
85+ void reduce_double_kp (double * object, const int n) { return ; };
86+
87+ void reduce_double_allpool (const int & npool, const int & nproc_in_pool, double & object) { return ; };
88+ void reduce_double_allpool (const int & npool, const int & nproc_in_pool, double * object, const int n) { return ; };
89+
90+ void gather_min_int_all (const int & nproc, int & v) { return ; };
91+ void gather_max_double_all (const int & nproc, double & v) { return ; };
92+ void gather_min_double_all (const int & nproc, double & v) { return ; };
93+ void gather_max_double_pool (const int & nproc_in_pool, double & v) { return ; };
94+ void gather_min_double_pool (const int & nproc_in_pool, double & v) { return ; };
95+ void gather_int_all (int & v, int * all) { return ; };
2396}
2497#endif
0 commit comments