=========== Development =========== This section is for people who change the code, the build or the documentation of GPRidge. The contribution workflow is on one page, :doc:`Contributing `. The other pages describe how the documentation is built, how the version and a release are handled, which correctness checks exist, and the design of the internal contracts. Where to start -------------- .. table:: +----------------------------------------------------+--------------------------------------------------------------------+ | To do this | Read | +====================================================+====================================================================+ | Set up a checkout, build, test and send a change | :doc:`Contributing ` | +----------------------------------------------------+--------------------------------------------------------------------+ | Write or change a documentation page | :doc:`Documentation build and style ` | +----------------------------------------------------+--------------------------------------------------------------------+ | Change the version or cut a release | :doc:`Version and releases ` | +----------------------------------------------------+--------------------------------------------------------------------+ | Publish packages and a reproduction archive | :doc:`Publishing software and reproduction records ` | +----------------------------------------------------+--------------------------------------------------------------------+ | Run the sanitizer, fuzzing and reference-GP checks | :doc:`Correctness checks ` | +----------------------------------------------------+--------------------------------------------------------------------+ | Profile or speed up a hot path | :doc:`Performance development guidelines ` | +----------------------------------------------------+--------------------------------------------------------------------+ | Understand an internal contract | the design notes below | +----------------------------------------------------+--------------------------------------------------------------------+ Repository layout ----------------- .. table:: +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Path | Content | +===============================================================+====================================================================================================================================================================================================================================================================================================================================================+ | ``gpr/`` | The C++ library, one directory per concern (``ml``, ``neb``, ``dimer``, ``linalg``, ``covariance_functions``, ``potentials``, ``capi``, ``cli``, ``quantum`` and others). See :doc:`GP module layout ` . | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``backend/``, ``data_types/``, ``structures/``, ``managers/`` | Shared types, parameter structures, and the I/O and configuration loaders (``managers/io/``). | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``main_neb.cpp``, ``main.cpp`` | The drivers ``gprn`` (NEB) and ``gprd`` (dimer). | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``schema/`` | The Cap'n Proto schemas and their ordinal records. | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``python/gpridge/``, ``python/tests/`` | The Python package and its tests. | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``fortran/``, ``rust/``, ``r/``, ``julia/`` | The Fortran module and the Rust, R and Julia packages over the C API. | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``tests/`` | The C++ tests, the fuzz corpora under ``tests/fuzz/corpus/`` and the Python integration tests in ``tests/integration/``. | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``benchmarks/`` | The asv benchmarks. | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``proofs/`` | The Lean and Rocq developments. | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``abi/`` | The recorded symbol list of the C library. | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``packaging/``, ``easybuild/``, ``eessi/``, ``nix/`` | Recipes for conda, Spack, EasyBuild, EESSI and Nix. | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``docs/`` | Documentation sources (``docs/orgmode/``), news fragments (``docs/newsfragments/``), and two notes outside the site: ``docs/dev/crate-usage.md`` (which sibling crate each call site uses) and ``docs/dev/upstream-requests.md`` (pins and overlays of those crates). ``UPSTREAM.md`` at the root holds drafts of reports to third-party projects. | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``scripts/``, ``tools/`` | Build, check and generator scripts. | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | ``subprojects/`` | Meson wraps of the third-party dependencies. | +---------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ Design notes ------------ The pages under ``design/`` are developer reference. Each starts with a status line. The table gives that status. .. table:: +--------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------+ | Page | Status | Subject | +======================================================================================+==========================+=============================================================+ | :doc:`GP module layout ` | implemented | the files that define ``GaussianProcessRegression`` | +--------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------+ | :doc:`GP execution and component ownership ` | partially implemented | MPI ownership, covariance assembly, device contract | +--------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------+ | :doc:`GP optimizer boundary contracts ` | implemented | the rgmin objective adapters | +--------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------+ | :doc:`GP-NEB to GP-Dimer state transfer ` | implemented | model leases, observation archive, seed kernel | +--------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------+ | :doc:`GP-OIE controller invariants and design record ` | partially implemented | outer-loop rules, MPI contract, TLA+ model | +--------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------+ | :doc:`TPE acquisition for GP-OIE oracle targeting ` | implemented, default | oracle-target choice among images | +--------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------+ | :doc:`CUTLASS backend for RFF and KernelInverse ` | partially implemented | optional GPU matrix products | +--------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------+ | :doc:`Unified InputParameters schema ` | implemented for ``gprn`` | the ``params.capnp`` configuration schema | +--------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------+ | :doc:`SLATE as a linear-algebra backend ` | requirements | distributed layout, kernel providers, the backend interface | +--------------------------------------------------------------------------------------+--------------------------+-------------------------------------------------------------+ .. toctree:: :maxdepth: 1 :hidden: contributing version publication correctness developer/performance