Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Tobias Weinzierl
teaMPI
Commits
885eb475
Commit
885eb475
authored
Sep 25, 2019
by
Philipp Samfass
Browse files
quick extension to specify arbitrary output folders for heartbeats
parent
cd129901
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/Timing.cpp
View file @
885eb475
...
@@ -163,6 +163,7 @@ void Timing::outputTiming() {
...
@@ -163,6 +163,7 @@ void Timing::outputTiming() {
PMPI_Barrier
(
MPI_COMM_WORLD
);
PMPI_Barrier
(
MPI_COMM_WORLD
);
std
::
string
filenamePrefix
=
getEnvString
(
"TMPI_FILE"
);
std
::
string
filenamePrefix
=
getEnvString
(
"TMPI_FILE"
);
std
::
string
outputPathPrefix
=
getEnvString
(
"TMPI_OUTPUT_PATH"
);
// Output simple replica timings
// Output simple replica timings
if
((
getTeamRank
()
==
MASTER
)
&&
(
getWorldRank
()
!=
MASTER
))
{
if
((
getTeamRank
()
==
MASTER
)
&&
(
getWorldRank
()
!=
MASTER
))
{
...
@@ -195,7 +196,7 @@ void Timing::outputTiming() {
...
@@ -195,7 +196,7 @@ void Timing::outputTiming() {
// Write Generic Sync points to files
// Write Generic Sync points to files
char
sep
=
','
;
char
sep
=
','
;
std
::
ostringstream
filename
;
std
::
ostringstream
filename
;
std
::
string
outputFolder
(
"tmpi-timings"
);
std
::
string
outputFolder
(
outputPathPrefix
.
empty
()
?
"tmpi-timings"
:
outputPathPrefix
);
filename
<<
outputFolder
<<
"/"
filename
<<
outputFolder
<<
"/"
<<
filenamePrefix
<<
"-"
<<
filenamePrefix
<<
"-"
<<
getWorldRank
()
<<
"-"
<<
getWorldRank
()
<<
"-"
...
...
Write
Preview
Supports
Markdown
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