gtsam
3rdparty
metis
libmetis
timing.c
Go to the documentation of this file.
1
/*
2
* Copyright 1997, Regents of the University of Minnesota
3
*
4
* timing.c
5
*
6
* This file contains routines that deal with timing Metis
7
*
8
* Started 7/24/97
9
* George
10
*
11
* $Id: timing.c 13936 2013-03-30 03:59:09Z karypis $
12
*
13
*/
14
15
#include "
metislib.h
"
16
17
18
/*************************************************************************
19
* This function clears the timers
20
**************************************************************************/
21
void
InitTimers
(
ctrl_t
*ctrl)
22
{
23
gk_clearcputimer
(ctrl->
TotalTmr
);
24
gk_clearcputimer
(ctrl->
InitPartTmr
);
25
gk_clearcputimer
(ctrl->
MatchTmr
);
26
gk_clearcputimer
(ctrl->
ContractTmr
);
27
gk_clearcputimer
(ctrl->
CoarsenTmr
);
28
gk_clearcputimer
(ctrl->
UncoarsenTmr
);
29
gk_clearcputimer
(ctrl->
RefTmr
);
30
gk_clearcputimer
(ctrl->
ProjectTmr
);
31
gk_clearcputimer
(ctrl->
SplitTmr
);
32
gk_clearcputimer
(ctrl->
Aux1Tmr
);
33
gk_clearcputimer
(ctrl->
Aux2Tmr
);
34
gk_clearcputimer
(ctrl->
Aux3Tmr
);
35
}
36
37
38
39
/*************************************************************************
40
* This function prints the various timers
41
**************************************************************************/
42
void
PrintTimers
(
ctrl_t
*ctrl)
43
{
44
printf(
"\nTiming Information -------------------------------------------------"
);
45
printf(
"\n Multilevel: \t\t %7.3"
PRREAL
""
,
gk_getcputimer
(ctrl->
TotalTmr
));
46
printf(
"\n Coarsening: \t\t %7.3"
PRREAL
""
,
gk_getcputimer
(ctrl->
CoarsenTmr
));
47
printf(
"\n Matching: \t\t\t %7.3"
PRREAL
""
,
gk_getcputimer
(ctrl->
MatchTmr
));
48
printf(
"\n Contract: \t\t\t %7.3"
PRREAL
""
,
gk_getcputimer
(ctrl->
ContractTmr
));
49
printf(
"\n Initial Partition: \t %7.3"
PRREAL
""
,
gk_getcputimer
(ctrl->
InitPartTmr
));
50
printf(
"\n Uncoarsening: \t\t %7.3"
PRREAL
""
,
gk_getcputimer
(ctrl->
UncoarsenTmr
));
51
printf(
"\n Refinement: \t\t\t %7.3"
PRREAL
""
,
gk_getcputimer
(ctrl->
RefTmr
));
52
printf(
"\n Projection: \t\t\t %7.3"
PRREAL
""
,
gk_getcputimer
(ctrl->
ProjectTmr
));
53
printf(
"\n Splitting: \t\t %7.3"
PRREAL
""
,
gk_getcputimer
(ctrl->
SplitTmr
));
54
/*
55
printf("\n Aux1Tmr: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->Aux1Tmr));
56
printf("\n Aux2Tmr: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->Aux2Tmr));
57
printf("\n Aux3Tmr: \t\t %7.3"PRREAL"", gk_getcputimer(ctrl->Aux3Tmr));
58
*/
59
printf(
"\n********************************************************************\n"
);
60
}
61
62
63
ctrl_t::ContractTmr
double ContractTmr
Definition:
libmetis/struct.h:176
InitTimers
void InitTimers(ctrl_t *ctrl)
Definition:
timing.c:21
ctrl_t::Aux2Tmr
double Aux2Tmr
Definition:
libmetis/struct.h:177
ctrl_t
Definition:
libmetis/struct.h:139
ctrl_t::RefTmr
double RefTmr
Definition:
libmetis/struct.h:177
gk_getcputimer
#define gk_getcputimer(tmr)
Definition:
gk_macros.h:35
PRREAL
#define PRREAL
Definition:
include/metis.h:135
ctrl_t::InitPartTmr
double InitPartTmr
Definition:
libmetis/struct.h:176
ctrl_t::Aux1Tmr
double Aux1Tmr
Definition:
libmetis/struct.h:177
ctrl_t::MatchTmr
double MatchTmr
Definition:
libmetis/struct.h:176
ctrl_t::UncoarsenTmr
double UncoarsenTmr
Definition:
libmetis/struct.h:176
ctrl_t::Aux3Tmr
double Aux3Tmr
Definition:
libmetis/struct.h:177
ctrl_t::CoarsenTmr
double CoarsenTmr
Definition:
libmetis/struct.h:176
ctrl_t::SplitTmr
double SplitTmr
Definition:
libmetis/struct.h:177
ctrl_t::ProjectTmr
double ProjectTmr
Definition:
libmetis/struct.h:177
ctrl_t::TotalTmr
double TotalTmr
Definition:
libmetis/struct.h:176
PrintTimers
void PrintTimers(ctrl_t *ctrl)
Definition:
timing.c:42
gk_clearcputimer
#define gk_clearcputimer(tmr)
Definition:
gk_macros.h:32
metislib.h
gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:42:30