Build options#
eagle exposes the following CMake options. All are OFF or a sensible
default out of the box; no flag is required for a standard CUDA build.
Note
Platform scope: Linux and macOS (CPU only on macOS). Windows is not tested. More platforms may be added in future releases.
CMake option reference#
Option |
Default |
Effect |
|---|---|---|
|
|
Build the GoogleTest suite (v1.14.0 is fetched automatically). |
|
|
Enable CUDA error checks ( |
|
|
CPU-only build: disables all CUDA code paths. Requires an
|
|
|
Promote all compiler warnings to errors ( |
|
|
CUDA thread-block size (compile-time constant). Must be a multiple of 32; tune for your GPU. |
|
|
Register the |
CUDA architectures#
EAGLE_CUDA_ARCHS picks the architectures when CMAKE_CUDA_ARCHITECTURES
is not given:
native(the default): the GPUs in this machine only, the fastest build. On a machine with no GPU it builds PTX for the oldest architecture thenvccin use compiles (at leastsm_60), which the driver compiles for any newer GPU at load.all: every one of61;70;75;80;86;89;90;100;120(Pascal through Blackwell) that thenvccin use still compiles. A CUDA 12.x toolkit keeps the Pascal targets; CUDA 13 drops the architectures below Turing (75) and adds the Blackwell ones.one architecture or a list, such as
86or"75;86"(sm_86is accepted too): exactly those;86-virtualbuilds PTX only.
cmake -DEAGLE_CUDA_ARCHS=all -B build .
cmake -DEAGLE_CUDA_ARCHS="80;90" -B build .
The published wheel is built with CUDA 12.9 and no override, so it carries SASS
for every architecture that nvcc lists from sm_60 up: 60 61 62 70 72
75 80 86 87 89 90 100 101 103 120 121, plus PTX at 100 and 121. A CUDA 13 nvcc
with the same default lists 75 up and 110, drops 101, and ends in
the same two PTX targets. The list a plugin was built for is reported by its archs
field, SASS first and PTX after a slash (e.g. 61,70,90/90), and CI checks that the wheel
lists SASS 100 and 120 and PTX 100. The PTX at 100 is what lets a CUDA 13 driver
run on Jetson Thor (sm_110), which has no SASS here.
Code used |
GPUs |
Minimum driver |
|---|---|---|
Precompiled SASS (every listed architecture) |
Any GPU the wheel lists |
Any driver that supports the GPU: |
PTX fallback ( |
GPUs with no SASS in the wheel: Jetson Thor under a CUDA 13 driver (sm_110), future GPUs |
|
CMAKE_CUDA_ARCHITECTURES, when given, still wins. aether takes the same
switch as AETHER_CUDA_ARCHS.
Platform support#
Pure C++ (host) execution is built and measured on x86-64 Linux (AVX-512
and AVX2-only CPUs) and on aarch64 Linux; the performance page lists the CPUs.
On aarch64 the step is not vectorised and there is no vector-math profile.
The aether headers eagle builds on are compiled with -march=x86-64-v3
(AVX2 and FMA) by default on x86-64, so the host path needs an x86-64 CPU of
that level or newer; the AETHER_MARCH CMake variable overrides it.
On the device side, eagle is built with CUDA 12.6 or newer; the register gate pins the toolkits it exercises, and each performance card records the toolkit it was measured with. Later CUDA 12 releases share the same APIs and are expected to work; releases before 12.6 are not supported.
eagle asks the driver for its entry points at the CUDA 12.0 interface level, so a build made with a CUDA 13 toolkit also runs on any CUDA 13 driver, and a CUDA 12 build on any CUDA 12 or 13 driver.
CPU-only build#
To build without any CUDA dependency:
Install aether in CPU-only mode (see Installation).
Configure eagle with
EAGLE_CPP_MODE=ON:
cmake -B build \
-DEAGLE_CPP_MODE=ON \
-DCMAKE_PREFIX_PATH=${CONDA_PREFIX} \
-DCMAKE_INSTALL_PREFIX=${CONDA_PREFIX} \
.
cmake --install build
In this mode the CUDA graph launchers are unavailable; use the OpenMP + SIMD
eagle::cpu::Host dispatcher instead.
Debug build#
Enable device-side error checking during development:
cmake -B build \
-DEAGLE_DEBUG_MODE=ON \
-DEAGLE_BUILD_TESTS=ON \
-DCMAKE_PREFIX_PATH=${CONDA_PREFIX} \
.
See also
Installation — full installation instructions.