.. index:: pair: struct; gpr::PhaseTimers .. _doxid-structgpr_1_1_phase_timers: struct gpr::PhaseTimers ======================= .. toctree:: :hidden: Overview ~~~~~~~~ Process-wide wall-time accumulators for the GP model phases that dominate an outer iteration: training-kernel assembly, stable-basis factorization, and hyperparameter-objective evaluations. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct PhaseTimers { // typedefs typedef :ref:`PhaseTotals` :target:`Totals`; // fields static double :target:`assembly_seconds` = 0.0; static double :target:`factorization_seconds` = 0.0; static double :target:`objective_seconds` = 0.0; static int :target:`objective_count` = 0; static long :target:`objective_rows` = 0; static long :target:`objective_channels` = 0; static int :target:`gradient_count` = 0; static int :target:`geometry_builds` = 0; static std::atomic_size_t :ref:`pair_contraction_tiles` = 0; static std::atomic_size_t :target:`chart_assembly_tiles` = 0; static double :target:`gradient_seconds` = 0.0; static double :target:`gradient_inverse_seconds` = 0.0; static double :target:`gradient_blocks_seconds` = 0.0; static double :target:`gradient_accumulate_seconds` = 0.0; static int :ref:`factorization_count` = 0; static long :target:`factorization_rows` = 0; static double :ref:`residual_seconds` = 0.0; static double :target:`correction_seconds` = 0.0; static double :ref:`pair_objective_seconds` = 0.0; static double :target:`pair_covariance_seconds` = 0.0; static double :target:`pair_contraction_seconds` = 0.0; static int :target:`pair_objective_count` = 0; static long :target:`pair_max_joint_rows` = 0; static double :target:`chart_objective_seconds` = 0.0; static int :target:`chart_objective_count` = 0; static long :target:`chart_max_joint_rows` = 0; static double :target:`support_seconds` = 0.0; static double :target:`support_refit_seconds` = 0.0; static int :target:`support_expansions` = 0; static int :target:`support_refit_count` = 0; static double :target:`projection_assembly_seconds` = 0.0; static double :target:`projection_factor_seconds` = 0.0; static double :target:`projection_cross_seconds` = 0.0; static double :target:`projection_solve_seconds` = 0.0; static double :target:`projection_schur_seconds` = 0.0; static int :target:`projection_count` = 0; static long :target:`projection_max_anchor_rows` = 0; static double :target:`subset_seconds` = 0.0; static double :target:`condition_seconds` = 0.0; static double :target:`cholesky_seconds` = 0.0; static double :ref:`eigensolve_seconds` = 0.0; static double :ref:`setup_seconds` = 0.0; static double :target:`descriptor_seconds` = 0.0; static double :target:`posterior_seconds` = 0.0; static double :ref:`cache_seconds` = 0.0; static double :ref:`curvature_seconds` = 0.0; static double :ref:`energy_seconds` = 0.0; static double :ref:`schedule_seconds` = 0.0; static double :ref:`communication_seconds` = 0.0; static double :ref:`band_inner_seconds` = 0.0; static double :target:`band_refit_seconds` = 0.0; static double :target:`band_path_seconds` = 0.0; static double :target:`band_predict_seconds` = 0.0; static long :target:`band_predict_count` = 0; static double :target:`band_certificate_seconds` = 0.0; static double :target:`band_drift_seconds` = 0.0; static double :target:`predict_seconds` = 0.0; static int :target:`predict_count` = 0; static double :target:`variance_seconds` = 0.0; static int :target:`variance_count` = 0; static double :target:`oracle_seconds` = 0.0; static long :ref:`fit_count` = 0; static long :target:`fit_evaluations` = 0; static long :target:`fit_restarts` = 0; static long :target:`unmoved_fit_count` = 0; static long :target:`unmoved_fit_evaluations` = 0; static double :ref:`rss_peak_mb` = 0.0; static const char* :target:`rss_peak_phase` = ""; // methods static void :target:`recordFit`(long evaluations, bool unmoved); static void :target:`recordFitRestart`(); static double :target:`residentMegabytes`(); static void :target:`notePeak`(const char* phase); static :ref:`Totals` :target:`current`(); static :ref:`Totals` :ref:`runTotals`(); static void :target:`resetRun`(); static void :target:`reset`(); }; .. _details-structgpr_1_1_phase_timers: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Process-wide wall-time accumulators for the GP model phases that dominate an outer iteration: training-kernel assembly, stable-basis factorization, and hyperparameter-objective evaluations. The outer loop reports and resets them once per iteration. Static so that model copies and parked instances cannot lose the count. Fields ------ .. index:: pair: variable; pair_contraction_tiles .. _doxid-structgpr_1_1_phase_timers_1a5344579bc851b21357cd091c9afe6915: .. ref-code-block:: cpp :class: doxyrest-title-code-block static std::atomic_size_t pair_contraction_tiles = 0 Configuration pairs contracted by this process, excluding transposes. .. index:: pair: variable; factorization_count .. _doxid-structgpr_1_1_phase_timers_1a8784de28cb3b9a127ad3a5d0d6075127: .. ref-code-block:: cpp :class: doxyrest-title-code-block static int factorization_count = 0 Stable-basis factorizations since the last reset and the rows they factorized in total: which of a refit's factorizations are the objective's subset and which the full-data rebuild. .. index:: pair: variable; residual_seconds .. _doxid-structgpr_1_1_phase_timers_1add457990c2443ac72983e101a33c5e91: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double residual_seconds = 0.0 Residual-kernel candidate fits of the active correction. .. index:: pair: variable; pair_objective_seconds .. _doxid-structgpr_1_1_phase_timers_1aa1b795299295545096754ee80375a154: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double pair_objective_seconds = 0.0 Candidate fits and support expansion have separate scopes. A selected chart can be refitted against a larger support inside the expansion. .. index:: pair: variable; eigensolve_seconds .. _doxid-structgpr_1_1_phase_timers_1a6c92fb83df58da976e66baecb7c488c0: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double eigensolve_seconds = 0.0 Stable-basis symmetric eigensolve. Kept apart from the Cholesky factor so a train can name which of the two owns the wall. .. index:: pair: variable; setup_seconds .. _doxid-structgpr_1_1_phase_timers_1a63656e48e8ef1c7f7b7b5ecdfaf7aa4d: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double setup_seconds = 0.0 Model setup before the optimizer, dual-kernel descriptors, and the posterior weights that follow the eigensolve. .. index:: pair: variable; cache_seconds .. _doxid-structgpr_1_1_phase_timers_1a509fe99347bd2003dd6d231d6c90baf8: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double cache_seconds = 0.0 Inverse-distance cache built once before the hyperparameter fit. .. index:: pair: variable; curvature_seconds .. _doxid-structgpr_1_1_phase_timers_1ad4f01127835ea8b9a421f34c35623ba4: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double curvature_seconds = 0.0 Directional curvature outside the factor, solve, eigen, and kernel walls. Those nested walls stay on their own accumulators. .. index:: pair: variable; energy_seconds .. _doxid-structgpr_1_1_phase_timers_1aa7a63318486dd68b7ce0b5189d92aeb7: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double energy_seconds = 0.0 Objective energy outside factor, solve, eigen, kernel, and curvature. .. index:: pair: variable; schedule_seconds .. _doxid-structgpr_1_1_phase_timers_1aca471f8df9335c7771fd16b0bfc7ff4d: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double schedule_seconds = 0.0 Optimizer outside the named numerical leaves. .. index:: pair: variable; communication_seconds .. _doxid-structgpr_1_1_phase_timers_1afc80dbe8fd75e535deca75ba53c11441: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double communication_seconds = 0.0 Energy and gradient allreduces for oracle batches. Excludes model assembly, factorization, prediction, and their internal MPI calls. .. index:: pair: variable; band_inner_seconds .. _doxid-structgpr_1_1_phase_timers_1a4f9778d43b9e1d31ec7da645b6af2199: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double band_inner_seconds = 0.0 Whole-band outer-loop scopes. These overlap the numerical leaves above: they attribute control phases, while the leaves attribute kernels. .. index:: pair: variable; fit_count .. _doxid-structgpr_1_1_phase_timers_1a1da96234864051ec8b739fbf168b5505: .. ref-code-block:: cpp :class: doxyrest-title-code-block static long fit_count = 0 Hyperparameter fit attempts since :ref:`resetRun() `, with their objective evaluations, retries, and the share spent in fits whose result lies within the optimizer's step tolerance of their start in every parameter. :ref:`reset() ` leaves these alone. .. index:: pair: variable; rss_peak_mb .. _doxid-structgpr_1_1_phase_timers_1aca3e8efc7ec3466ee2e7743d0f36e62a: .. ref-code-block:: cpp :class: doxyrest-title-code-block static double rss_peak_mb = 0.0 Peak resident size seen at the end of any timed phase since the last reset (MB), and the phase that set it: where an outer iteration's memory goes (a refit's dense temporaries are freed before the outer line is printed, so the per-outer resident size alone hides them). Methods ------- .. index:: pair: function; runTotals .. _doxid-structgpr_1_1_phase_timers_1a7478a726c9b83c9d19b3a94dfeb1ff69: .. ref-code-block:: cpp :class: doxyrest-title-code-block static :ref:`Totals` runTotals() Everything accumulated since the last :ref:`resetRun() `, across :ref:`reset() `.