Skip to content

Commit

Permalink
Initialise prev_bfrate_normed
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshingles committed Nov 19, 2024
1 parent ca13c3f commit 3264632
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions radfield.cc
Original file line number Diff line number Diff line change
Expand Up @@ -527,6 +527,9 @@ void init(const int my_rank, const int ndo_nonempty) {
{
std::tie(prev_bfrate_normed, win_prev_bfrate_normed) =
MPI_shared_malloc_keepwin<float>(nonempty_npts_model * globals::bfestimcount);
if (globals::rank_in_node == 0) {
std::ranges::fill_n(prev_bfrate_normed, nonempty_npts_model * globals::bfestimcount, -1.);
}
}
printout("[info] mem_usage: detailed bf estimators for non-empty cells occupy %.3f MB (node shared memory)\n",
nonempty_npts_model * globals::bfestimcount * sizeof(float) / 1024. / 1024.);
Expand Down

0 comments on commit 3264632

Please sign in to comment.