Skip to content

Commit

Permalink
Merge Pull Request #2884 from E3SM-Project/scream/ndk/scream/bfbhash-…
Browse files Browse the repository at this point in the history
…back-to-hex

Automatically Merged using E3SM Pull Request AutoTester
PR Title: Revert back to using string hex format for writing hashes
PR Author: ndkeen
PR LABELS: infrastructure, BFB, AT: AUTOMERGE, diagnostic
  • Loading branch information
E3SM-Autotester committed Jun 29, 2024
2 parents a1646c8 + c195b3c commit f034619
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,9 @@ ::print_global_state_hash (const std::string& label, const bool in, const bool o
if (m_comm.am_i_root())
for (int i = 0; i < nslot; ++i)
if (show[i])
fprintf(stderr, "exxhash> %4d-%9.5f %1d %16lld (%s)\n",
fprintf(stderr, "exxhash> %4d-%9.5f %1d %16llx (%s)\n",
timestamp().get_year(), timestamp().frac_of_year_in_days(),
i, (long long int)gaccum[i], label.c_str());
i, gaccum[i], label.c_str());
}

void AtmosphereProcess::print_fast_global_state_hash (const std::string& label) const {
Expand All @@ -140,8 +140,8 @@ void AtmosphereProcess::print_fast_global_state_hash (const std::string& label)
HashType gaccum;
bfbhash::all_reduce_HashType(m_comm.mpi_comm(), &laccum, &gaccum, 1);
if (m_comm.am_i_root())
fprintf(stderr, "bfbhash> %14d %16lld (%s)\n",
timestamp().get_num_steps(), (long long int) gaccum, label.c_str());
fprintf(stderr, "bfbhash> %14d %16llx (%s)\n",
timestamp().get_num_steps(), gaccum, label.c_str());
}

} // namespace scream

0 comments on commit f034619

Please sign in to comment.