Commit eb7310b6 authored by James Willis's avatar James Willis
Browse files

Print which host each MPI rank is running on when the verbosity level is set to 2.

parent 92192f96
......@@ -262,13 +262,22 @@ int main(int argc, char *argv[]) {
message(
"Executing a dry run. No i/o or time integration will be performed.");
/* Report CPU frequency. */
/* Report CPU frequency.*/
cpufreq = clocks_get_cpufreq();
if (myrank == 0) {
message("Running on: %s",hostname());
message("CPU frequency used for tick conversion: %llu Hz", cpufreq);
}
/* Report host name(s). */
if (myrank == 0) {
message("Rank 0 Running on: %s", hostname());
}
#ifdef WITH_MPI
else if (verbose > 1) {
message("Rank %d running on: %s", myrank, hostname());
}
#endif
/* Do we choke on FP-exceptions ? */
if (with_fp_exceptions) {
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
......
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