Skip to content

Development

Development is for people who build Caliper from source or change it. It covers the build, the tests, the checks that run on each change, and the rules that keep Caliper compatible and consistent. It does not teach how to write an applet. That subject has its own area.

flowchart LR
    src[Sources] -->|cmake build| bin[Host and SDK]
    bin -->|ctest| tests[Test suites]
    tests -->|pull request| ci[CI workflows]
    ci -->|Windows paths| win[Windows verification]
    ci -->|passes| main[Main branch]

Build and Test

The host owns the window, the renderer, the frame loop and the stores. An applet is one shared library that the running host loads. The usual loop builds the host once and installs the SDK. Then it builds your applet against that SDK, checks it and runs it. Development Basics shows the sources of each library and the files of an applet.

Tests use doctest and run through ctest. The fast unit suite needs no window and no GPU. Testing lists the layers and what each one proves. Performance gives measurements with their computer, scripts and method.

Continuous Integration

Caliper builds and tests on GitHub Actions. Four workflows run: Build, Browser views, Docs and Deploy Pages. Two lanes build the code, one for macOS and one for Windows, and caches speed up the runs. CI lists the triggers and what each workflow does.

macOS compiles out the Windows GPU paths. A change to the Vulkan backend, the tensor bridge or the CUDA kernels needs a check on Windows with an NVIDIA GPU. Windows Verification gives the procedure. Vulkan and CUDA explains how Caliper shares GPU memory between the two.

Rules

Caliper versions the ABI, the services, the SDK, the applets and their stored data separately. Each one changes without breaking applets that are already built. Compatibility and Epochs states how. Live Session Layout gives the session file and shared-memory layout that the viewer reads. UI Principles sets the structural rules that apply to the host and to every applet.