Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
S
SWE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
SWE
Commits
cc3336b5
Commit
cc3336b5
authored
Jul 18, 2013
by
Sebastian Rettenberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove MPI function calls from the logger
parent
7f7e21be
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
14 deletions
+0
-14
Logger.hh
src/tools/Logger.hh
+0
-14
No files found.
src/tools/Logger.hh
View file @
cc3336b5
...
@@ -90,11 +90,7 @@ class tools::Logger {
...
@@ -90,11 +90,7 @@ class tools::Logger {
const
std
::
string
indentation
;
const
std
::
string
indentation
;
//! Clocks
//! Clocks
#if (defined USEMPI && !defined CUDA)
std
::
map
<
std
::
string
,
double
>
clocks
;
#else
std
::
map
<
std
::
string
,
clock_t
>
clocks
;
std
::
map
<
std
::
string
,
clock_t
>
clocks
;
#endif
//! Timer
//! Timer
std
::
map
<
std
::
string
,
double
>
timer
;
std
::
map
<
std
::
string
,
double
>
timer
;
...
@@ -421,13 +417,7 @@ class tools::Logger {
...
@@ -421,13 +417,7 @@ class tools::Logger {
* @param i_name Name of timer
* @param i_name Name of timer
*/
*/
void
updateTime
(
const
std
::
string
&
i_name
)
{
void
updateTime
(
const
std
::
string
&
i_name
)
{
// If the timer does not yet exist it will be initialized with 0 by std::map
// Works only with [] no with .at()
#if (defined USEMPI && !defined CUDA)
timer
[
i_name
]
+=
MPI_Wtime
()
-
clocks
.
at
(
i_name
);
#else
timer
[
i_name
]
+=
(
clock
()
-
clocks
.
at
(
i_name
))
/
(
double
)
CLOCKS_PER_SEC
;
timer
[
i_name
]
+=
(
clock
()
-
clocks
.
at
(
i_name
))
/
(
double
)
CLOCKS_PER_SEC
;
#endif
}
}
/**
/**
...
@@ -436,11 +426,7 @@ class tools::Logger {
...
@@ -436,11 +426,7 @@ class tools::Logger {
* @param i_name Name of timer/clock
* @param i_name Name of timer/clock
*/
*/
void
resetClockToCurrentTime
(
const
std
::
string
&
i_name
)
{
void
resetClockToCurrentTime
(
const
std
::
string
&
i_name
)
{
#if (defined USEMPI && !defined CUDA)
clocks
[
i_name
]
=
MPI_Wtime
();
#else
clocks
[
i_name
]
=
clock
();
clocks
[
i_name
]
=
clock
();
#endif
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment