.. index:: pair: struct; gpr::DeviceResidency .. _doxid-structgpr_1_1_device_residency: struct gpr::DeviceResidency =========================== .. toctree:: :hidden: enum_gpr_DeviceResidency_Reason.rst Overview ~~~~~~~~ Process-wide account of where the GP posterior lived during a run of a :ref:`Kokkos ` build. :ref:`More...` .. ref-code-block:: cpp :class: doxyrest-overview-code-block #include struct DeviceResidency { // enums enum :ref:`Reason`; // fields static std::atomic_size_t :target:`conditions` = 0; static std::atomic_size_t :target:`host_fallbacks` = 0; static std::atomic_size_t :target:`factorizations` = 0; static std::atomic_size_t :target:`appends` = 0; static std::atomic_size_t :target:`reuses` = 0; static std::atomic_size_t :target:`gradients` = 0; static std::atomic_size_t :target:`predictions` = 0; static std::atomic_size_t :target:`input_bytes` = 0; static std::atomic_size_t :target:`output_bytes` = 0; static std::atomic_size_t :target:`factor_downloads` = 0; static std::atomic_size_t :target:`factor_download_bytes` = 0; static std::atomic_size_t :target:`coefficient_downloads` = 0; static std::atomic_size_t :target:`coefficient_download_bytes` = 0; static std::atomic_size_t :target:`fallback_reasons`[ReasonCount] = {}; static const char* :target:`reason_names`[ReasonCount] = { "no pair kernel", "no constant kernel", "non-Gaussian likelihood", "environment model", "stable-basis(HS-SVD) backend", "residual correction", "manifold chart", "geodesic heat kernel", "objective other than NLML", "length scales not one per pair type", }; // methods static std::string :ref:`report`(const char* execution); static std::string :ref:`fallbackReasons`(); }; .. _details-structgpr_1_1_device_residency: Detailed Documentation ~~~~~~~~~~~~~~~~~~~~~~ Process-wide account of where the GP posterior lived during a run of a :ref:`Kokkos ` build. A fit either conditions the device posterior or, when the model is outside what that posterior supports, falls back to the host factor; ``:ref:`host_fallbacks ``` counts the latter, so a run whose GP never reached the device shows it. Bytes are what crossed the host boundary: coordinates, targets and noise in; predictions, scalar derivatives and any downloaded factor or coefficient vector out. A factor or coefficient download means a consumer read host storage, which ends residency for that fit. Static, like :ref:`PhaseTimers `, so model copies cannot lose a count. Methods ------- .. index:: pair: function; report .. _doxid-structgpr_1_1_device_residency_1a83502e9661dcaaf0fdb2cda5f860e560: .. ref-code-block:: cpp :class: doxyrest-title-code-block static std::string report(const char* execution) One line for the drivers' closing report. .. index:: pair: function; fallbackReasons .. _doxid-structgpr_1_1_device_residency_1afedf25ed3e1cff54b2a8ea6f5cb95718: .. ref-code-block:: cpp :class: doxyrest-title-code-block static std::string fallbackReasons() The properties behind the fallbacks, or nothing when there were none.