Commit 885eb475 authored by Philipp Samfass's avatar Philipp Samfass
Browse files

quick extension to specify arbitrary output folders for heartbeats

parent cd129901
...@@ -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() << "-"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment