Teuchos_PerformanceMonitorUtils.hpp
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029 #ifndef TEUCHOS_PERFORMANCEMONITORUTILS_H
00030 #define TEUCHOS_PERFORMANCEMONITORUTILS_H
00031
00037 #include "Teuchos_ConfigDefs.hpp"
00038 #include "Teuchos_MPIComm.hpp"
00039 #include "Teuchos_RCP.hpp"
00040 #include "Teuchos_Array.hpp"
00041
00042 namespace Teuchos
00043 {
00048 enum EMetricReduction {ELocal, ETotal, EMin, EMax, EAvg} ;
00049
00050
00051
00056 class PerformanceMonitorUtils
00057 {
00058 public:
00059
00073 static void synchNames(const MPIComm& comm,
00074 const Array<std::string>& localNames,
00075 Array<std::string>& allNames);
00076
00090 static void synchValues(const MPIComm& comm,
00091 const Array<std::string>& localNames,
00092 const Array<Array<double> >& localValues,
00093 Array<std::string>& allNames,
00094 Array<Array<double> >& allValues);
00095
00105 static void reduce(const MPIComm& comm,
00106 const EMetricReduction& reductionType,
00107 const Array<double>& localVals,
00108 Array<double>& reducedVals);
00109
00110 };
00111
00112 }
00113 #endif