@@ -65,6 +65,7 @@ class SampleReportController : public cali::ChannelController
65
65
if (use_mpi) {
66
66
config ()[" CALI_SERVICES_ENABLE" ].append (" ,mpi,mpireport" );
67
67
config ()[" CALI_MPIREPORT_FILENAME" ] = opts.get (" output" , " stderr" ).to_string ();
68
+ config ()[" CALI_MPIREPORT_APPEND" ] = opts.get (" output.append" ).to_string ();
68
69
config ()[" CALI_MPIREPORT_WRITE_ON_FINALIZE" ] = " false" ;
69
70
config ()[" CALI_MPIREPORT_LOCAL_CONFIG" ] =
70
71
opts.build_query (" local" , {
@@ -80,6 +81,7 @@ class SampleReportController : public cali::ChannelController
80
81
} else {
81
82
config ()[" CALI_SERVICES_ENABLE" ].append (" ,report" );
82
83
config ()[" CALI_REPORT_FILENAME" ] = opts.get (" output" , " stderr" ).to_string ();
84
+ config ()[" CALI_REPORT_APPEND" ] = opts.get (" output.append" ).to_string ();
83
85
config ()[" CALI_REPORT_CONFIG" ] =
84
86
opts.build_query (" local" , {
85
87
{ " select" , local_select },
@@ -130,7 +132,7 @@ const char* sample_report_spec = R"json(
130
132
"categories" : [ "output", "sampling", "treeformatter", "region" ],
131
133
"services" : [ "sampler", "trace" ],
132
134
"config" : { "CALI_CHANNEL_FLUSH_ON_EXIT": "false" },
133
- "defaults" : { "source.function": "true" },
135
+ "defaults" : { "source.function": "true", "output.append": "true" },
134
136
"options":
135
137
[
136
138
{
@@ -148,6 +150,11 @@ const char* sample_report_spec = R"json(
148
150
"name": "aggregate_across_ranks",
149
151
"type": "bool",
150
152
"description": "Aggregate results across MPI ranks"
153
+ },
154
+ {
155
+ "name": "output.append",
156
+ "type": "bool",
157
+ "description": "Use append mode when writing to files"
151
158
}
152
159
]
153
160
}
0 commit comments