@@ -147,7 +147,9 @@ void nrn_init_and_load_data(int argc,
147147 Instrumentor::stop_profile ();
148148
149149 // memory footprint after mpi initialisation
150- report_mem_usage (" After MPI_Init" );
150+ if (!corenrn_param.is_quiet ()) {
151+ report_mem_usage (" After MPI_Init" );
152+ }
151153
152154 // initialise default coreneuron parameters
153155 initnrn ();
@@ -216,7 +218,9 @@ void nrn_init_and_load_data(int argc,
216218 nrn_set_extra_thread0_vdata ();
217219 }
218220
219- report_mem_usage (" Before nrn_setup" );
221+ if (!corenrn_param.is_quiet ()) {
222+ report_mem_usage (" Before nrn_setup" );
223+ }
220224
221225 // set if need to interleave cells
222226 interleave_permute_type = corenrn_param.cell_interleave_permute ;
@@ -255,7 +259,9 @@ void nrn_init_and_load_data(int argc,
255259 int spkcompress = corenrn_param.spkcompress ;
256260 nrnmpi_spike_compress (spkcompress, (spkcompress ? true : false ), use_multisend_);
257261
258- report_mem_usage (" After nrn_setup " );
262+ if (!corenrn_param.is_quiet ()) {
263+ report_mem_usage (" After nrn_setup " );
264+ }
259265
260266 // Invoke PatternStim
261267 if (!corenrn_param.patternstim .empty ()) {
@@ -266,15 +272,17 @@ void nrn_init_and_load_data(int argc,
266272 nrn_set_timeout (200 .);
267273
268274 // show all configuration parameters for current run
269- if (nrnmpi_myid == 0 ) {
275+ if (nrnmpi_myid == 0 && !corenrn_param. is_quiet () ) {
270276 std::cout << corenrn_param << std::endl;
271277 std::cout << " Start time (t) = " << t << std::endl << std::endl;
272278 }
273279
274280 // allocate buffer for mpi communication
275281 mk_spikevec_buffer (corenrn_param.spikebuf );
276282
277- report_mem_usage (" After mk_spikevec_buffer" );
283+ if (!corenrn_param.is_quiet ()) {
284+ report_mem_usage (" After mk_spikevec_buffer" );
285+ }
278286
279287 if (corenrn_param.gpu ) {
280288 setup_nrnthreads_on_device (nrn_threads, nrn_nthread);
@@ -460,7 +468,9 @@ extern "C" int run_solve_core(int argc, char** argv) {
460468 std::string spikes_population_name;
461469 bool reports_needs_finalize = false ;
462470
463- report_mem_usage (" After mk_mech" );
471+ if (!corenrn_param.is_quiet ()) {
472+ report_mem_usage (" After mk_mech" );
473+ }
464474
465475 // Create outpath if it does not exist
466476 if (nrnmpi_myid == 0 ) {
@@ -534,7 +544,9 @@ extern "C" int run_solve_core(int argc, char** argv) {
534544 nrn_finitialize (v != 1000 ., v);
535545 }
536546
537- report_mem_usage (" After nrn_finitialize" );
547+ if (!corenrn_param.is_quiet ()) {
548+ report_mem_usage (" After nrn_finitialize" );
549+ }
538550
539551 // register all reports into reportinglib
540552 double min_report_dt = INT_MAX;
0 commit comments