Bindings and external interfaces¶
gpridge is a C++ library with a C API. The pages below describe the interfaces to it: the C and Fortran APIs, the Python package, the Rust sys crate, the R and Julia packages, the Cap’n Proto configuration schema and the native ABIs. The Rust crate (Rust binding), the R package and the Julia package (R and Julia bindings) wrap the installed C API. Install them as described in Installation.
What each interface reaches¶
Every recent capability is either reachable from a binding or listed as
driver-only. The rows below give the name in each interface. Python names that
belong to a class are written Class.name.
Capability |
C API |
Fortran |
Python |
TOML / capnp |
|---|---|---|---|---|
|
|
|
|
|
|
|
|
|
|
|
driver only ( |
driver only |
driver only |
not a key |
|
driver only ( |
driver only |
driver only |
not a key, no capnp field |
|
driver only ( |
driver only ( |
driver only ( |
not a key |
|
driver only ( |
driver only ( |
driver only ( |
|
Scheme II ( |
|
|
|
|
Oracle failure, rejected trials |
non-finite value, |
non-finite value, |
exception or NaN, |
not applicable |
Dimer outcome and stop reason |
|
|
|
not applicable |
Weak second-mode continuation |
driver only ( |
driver only ( |
|
|
Memory and LP64 limits |
|
same through |
|
not applicable |
Model package ISA check |
|
|
|
checked when the oracle loads |
ABI of linked native libraries |
|
|
|
|
The weak-mode continuation stays in gprd because it is a loop over a
complete finite-difference stencil that the driver owns
(--weak-mode-continuations); the library exposes the three steps that loop
calls, and Python binds them. Python bindings lists the
Python names, the error classes and the termination reasons.
Installed consumers¶
Native packages describes the installed
header, shared library, pkg-config and CMake contracts, with build and
smoke-test commands for downstream programs. The C ABI version counts
additions within a major version; call GPR_ABI_CHECK() before creating
handles. The ABI reference covers engine and provider interfaces.