Skip to content

Commit 2852e04

Browse files
committed
Added cmdline option to change the beginStep timeout in sstSinker
1 parent dc51efa commit 2852e04

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

app/sstSinker.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ using namespace std::chrono;
99

1010
struct SinkerArgs{
1111
int timeout;
12+
int beginstep_timeout;
1213

13-
SinkerArgs(): timeout(60){}
14+
SinkerArgs(): timeout(60), beginstep_timeout(30){}
1415
};
1516

1617

@@ -26,12 +27,12 @@ int main(int argc, char ** argv){
2627
{
2728
commandLineParser<SinkerArgs> cmdline;
2829
addOptionalCommandLineArg(cmdline, timeout, "Specify the SST connect timeout in seconds (Default 60s)");
30+
addOptionalCommandLineArg(cmdline, beginstep_timeout, "Specify the SST beginStep timeout in seconds (Default 30s)");
2931

3032
if(argc < 5 || (argc == 2 && std::string(argv[1]) == "-help")){
3133
std::cout << "Usage: <exe> <engine type (BPFile, SST)> <bp directory> <bpfile prefix (eg tau-metrics-nwchem)> <fetch>\n"
3234
<< "Where \"fetch\" indicates whether the data is actually transferred or we just iterate over the IO steps\n"
3335
<< "Options:" << std::endl;
34-
3536
cmdline.help(std::cout);
3637
return 0;
3738
}
@@ -76,6 +77,8 @@ int main(int argc, char ** argv){
7677
// -----------------------------------------------------------------------
7778
parser = new ADParser(data_dir + "/" + inputFile, 0, world_rank, engineType, args.timeout);
7879

80+
parser->setBeginStepTimeout(args.beginstep_timeout);
81+
7982
// -----------------------------------------------------------------------
8083
// Start analysis
8184
// -----------------------------------------------------------------------

0 commit comments

Comments
 (0)