28 for (
auto* tml = nt.tml; tml; tml = tml->next) {
29 const int type = tml->index;
30 const auto& ml = tml->ml;
31 local_mech_count[
type] += ml->nodecount;
42 nrnmpi_long_allreduce_vec(&local_mech_count[0],
44 local_mech_count.size(),
46 nrnmpi_long_allreduce_vec(&local_mech_size[0],
48 local_mech_size.size(),
53 total_mech_count = local_mech_count;
54 total_mech_size = local_mech_size;
59 printf(
"\n============== MECHANISMS COUNT AND SIZE BY TYPE =============\n");
60 printf(
"%4s %20s %10s %25s\n",
"Id",
"Name",
"Count",
"Total memory size (KiB)");
61 for (
size_t i = 0;
i < total_mech_count.size();
i++) {
62 if (total_mech_count[
i] > 0) {
63 printf(
"%4lu %20s %10ld %25.2lf\n",
67 static_cast<double>(total_mech_size[
i]) / 1024);
70 printf(
"==============================================================\n");
THIS FILE IS AUTO GENERATED DONT MODIFY IT.
void write_mech_report()
display global mechanism count
size_t memb_list_size(NrnThreadMembList *tml, bool include_data)
const char * nrn_get_mechname(int type)
corenrn_parameters corenrn_param
Printing method.
bool mpi_enable
Initialization seed for random number generator (int)