MPQC  3.0.0-alpha
pregtime.h
1 //
2 // pregtime.h
3 //
4 // Copyright (C) 1996 Limit Point Systems, Inc.
5 //
6 // Author: Curtis Janssen <cljanss@limitpt.com>
7 // Maintainer: LPS
8 //
9 // This file is part of the SC Toolkit.
10 //
11 // The SC Toolkit is free software; you can redistribute it and/or modify
12 // it under the terms of the GNU Library General Public License as published by
13 // the Free Software Foundation; either version 2, or (at your option)
14 // any later version.
15 //
16 // The SC Toolkit is distributed in the hope that it will be useful,
17 // but WITHOUT ANY WARRANTY; without even the implied warranty of
18 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 // GNU Library General Public License for more details.
20 //
21 // You should have received a copy of the GNU Library General Public License
22 // along with the SC Toolkit; see the file COPYING.LIB. If not, write to
23 // the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
24 //
25 // The U.S. Government is granted a limited license as per AL 91-7.
26 //
27 
28 #ifndef _util_group_pregtime_h
29 #define _util_group_pregtime_h
30 
31 #include <iostream>
32 #include <util/misc/regtime.h>
33 #include <util/group/message.h>
34 
35 namespace sc {
36 
41  protected:
42  Ref<MessageGrp> msg_;
43 
44  void send_subregions(int node, const TimedRegion *r) const;
45  void recv_subregions(int node, TimedRegion *r) const;
46  void all_reduce_regions() const;
47 
48  public:
50  const char *topname = "total",
51  int cpu_time = 0, int wall_time = 1);
54 
55  void print(std::ostream& = ExEnv::out0()) const;
56 };
57 
58 }
59 
60 #endif
61 
62 // Local Variables:
63 // mode: c++
64 // c-file-style: "CLJ"
65 // End:
sc::ParallelRegionTimer::print
void print(std::ostream &=ExEnv::out0()) const
Print the object.
sc::Ref
A template class that maintains references counts.
Definition: ref.h:361
sc::TimedRegion
TimedRegion is a helper class for RegionTimer.
Definition: regtime.h:47
sc::ParallelRegionTimer
This is a parallel-away derivative of RegionTimer.
Definition: pregtime.h:40
sc::ExEnv::out0
static std::ostream & out0()
Return an ostream that writes from node 0.
sc::RegionTimer
The RegionTimer class is used to record the time spent in a section of code.
Definition: regtime.h:110
sc
Contains all MPQC code up to version 3.
Definition: mpqcin.h:14

Generated at Sun Jan 26 2020 23:24:01 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.