ERF
Energy Research and Forecasting: An Atmospheric Modeling Code
erf_sbm::SBMTransferAllocationCensus Struct Reference

#include <ERF_SBMAMRTransfer.H>

Collaboration diagram for erf_sbm::SBMTransferAllocationCensus:

Public Member Functions

void begin () noexcept
 
void sample () noexcept
 
std::uint64_t peak_extra_bytes () const noexcept
 

Public Attributes

std::uint64_t baseline_bytes {0}
 
std::uint64_t peak_bytes {0}
 
std::uint64_t support_loss_collective_votes {0}
 
std::vector< int > processed_chunk_first_components
 

Detailed Description

Optional per-call measurement of current AMReX FAB payload above the caller-established baseline. Samples are taken at actual operator allocation high-water points; this is local-rank FAB payload, not RSS.

Member Function Documentation

◆ begin()

void erf_sbm::SBMTransferAllocationCensus::begin ( )
noexcept
28 {
29  baseline_bytes = static_cast<std::uint64_t>(amrex::TotalBytesAllocatedInFabs());
33 }
std::uint64_t peak_bytes
Definition: ERF_SBMAMRTransfer.H:24
std::uint64_t support_loss_collective_votes
Definition: ERF_SBMAMRTransfer.H:25
std::vector< int > processed_chunk_first_components
Definition: ERF_SBMAMRTransfer.H:28
std::uint64_t baseline_bytes
Definition: ERF_SBMAMRTransfer.H:23

Referenced by erf_sbm::prolong_carrier_relative_spectrum_impl(), erf_sbm::RemapRegriddedSpectrumPrivate(), and erf_sbm::restrict_mapped_spectrum_impl().

Here is the caller graph for this function:

◆ peak_extra_bytes()

std::uint64_t erf_sbm::SBMTransferAllocationCensus::peak_extra_bytes ( ) const
inlinenoexcept

◆ sample()

void erf_sbm::SBMTransferAllocationCensus::sample ( )
noexcept
36 {
37  peak_bytes = std::max(peak_bytes,
38  static_cast<std::uint64_t>(amrex::TotalBytesAllocatedInFabs()));
39 }

Referenced by erf_sbm::prolong_carrier_relative_chunks(), erf_sbm::restrict_mapped_spectrum_impl(), and erf_sbm::erf_detail_SBMAMRTransfer::validate_mapped_carrier_inventory().

Here is the caller graph for this function:

Member Data Documentation

◆ baseline_bytes

std::uint64_t erf_sbm::SBMTransferAllocationCensus::baseline_bytes {0}

Referenced by begin(), and peak_extra_bytes().

◆ peak_bytes

std::uint64_t erf_sbm::SBMTransferAllocationCensus::peak_bytes {0}

◆ processed_chunk_first_components

std::vector<int> erf_sbm::SBMTransferAllocationCensus::processed_chunk_first_components

◆ support_loss_collective_votes

std::uint64_t erf_sbm::SBMTransferAllocationCensus::support_loss_collective_votes {0}

The documentation for this struct was generated from the following files: