Build features and extension interfaces#
Build settings select code and dependencies. Runtime capability queries describe the library actually loaded. Neither alone establishes that an operation admits a particular input. The authoritative build inventory is the validated production build profile, with feature definitions in Cargo.toml and packaging dispatch in setup.py.
Which setting controls the build?#
Cargo feature |
Definition or dependency |
Python build switch |
|---|---|---|
|
Enables |
— |
|
Enables |
— |
|
Sentinel-2 extension |
|
|
CUDA toolkit, |
|
|
Orthorectification feature |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The base native build requires libcugeo_proj.so. Cargo dispatches native and CUDA compilation through build_support. The Python switches select features when building the package. CUGEO_RASTER_PREBUILT_LIBRARY selects an existing absolute library instead, and setup checks its reported features against those requested.
Build layer |
Settings and defaults |
|---|---|
Native compiler |
|
CUDA compiler |
|
Dependency discovery |
|
Native interface |
Raster ABI |
The base package contains libcugeo_raster.so and the 22 headers listed in the production profile. The runtime profile locates libcugeo_proj.so under cugeo/proj. CUDA and cuFile libraries are external. Feature packaging includes the nvImageCodec, nvJPEG2000, nvTIFF and RMM libraries named in the profile. NPP libraries are external. Check the profile for the complete runtime and package lists rather than inferring wheel contents from a Cargo feature.
Which cuGeo-Proj library was selected?#
Precedence |
Setting |
Selection |
|---|---|---|
1 |
|
Explicit shared library. It wins when both settings are supplied. |
2 |
|
Searches |
3 |
Default root |
Uses |
For a CUDA Raster build, inspect the selected artifact. The build checks that it is a shared object with SONAME libcugeo_proj.so, exports cugeo_proj_abi_version and cugeo_proj_built_with_cuda, and declares dependencies on libcuda.so.1 and a versioned libcudart.so. An artifact failing that metadata check is rejected. These checks and discovery are defined in cugeo_proj.rs. Raster’s ABI 8 is a separate interface version.
Where is the extension available?#
Family |
Build and dependency |
Public interface |
Packaging, loaded capability and input profile |
|---|---|---|---|
Sentinel-2 |
|
The Python extension package is listed in the production profile. Query the loaded library’s |
|
Prepared nvTIFF and nvImageCodec |
Respective codec feature and CUDA |
Feature packaging and loaded capability are separate from admission. The checked UInt16 pitched-BIP decode-to-affine profiles are in Input formats and execution routes. |
|
Prepared JPEG 2000 |
Backend-specific feature and dependency |
Inspect the loaded capability and the generated prepared profile in Input formats and execution routes. |
You can inspect the current environment.
from cugeo.raster.diagnostics import capabilities
print(capabilities())
The returned values belong to the loaded artifact. For Sentinel-2 preparation owners and buffers, see Native interfaces and device memory. For versioned native capability declarations, use raster.h.
Installed headers#
Task |
Installed header under |
|---|---|
C ABI and C++ umbrella |
|
Errors, views and memory |
|
Dataset, metadata and I/O |
|
Grids and compute |
|
CUDA integration |
|
Sentinel-2 |
|
Support required by public includes |
|
The installed-header inventory and runtime components are checked against the build configuration by check-build-contract.py.