11/2026 Release v0.09 (the changes below). The gpu branch has the new version; the previous version (v0.08, with the documentation updates of 06/2021) is on the branch gpu-v0.08.
11/2026 Build fixes: with BUILD_PYTHON=yes, the programs and pyclaire start in any folder (previously they loaded lib/libclaire.so relative to the current folder, so they started only in the CLAIRE folder; libclaire.so now has a soname, and they load it through their run path). --version and the logs show the version of the current build: the files that print it are recompiled when it changes (previously they kept the version of the first build); without git (e.g., a release archive), the version is that in CITATION.cff. make test starts claire and the Python test in another folder.
11/2026 Fix of the line search of claire: in the code before this fix, when the full Newton step was not accepted, the line search evaluated the objective at wrong points, and usually failed. The solution vector of Tao was the velocity field of the registration problem, which stores every point at which the objective is evaluated, so each trial step moved the iterate: the trial points were x + s, x + 1.5s, x + 1.75s, ... (toward x + 2s) instead of x + s, x + s/2, x + s/4, .... Registrations in which every full step is accepted are not affected. Found by the --beta-search test with a bound that is reached: the solver did not converge for several betas, and the estimated beta depended on the number of ranks (5.5 on one rank, 3.25 on two; now 3.25 on both). make test-cli checks that the objective at small steps of the line search is that at the iterate.
11/2026 Tests of the solver features: claire-test gradient and hessian check every model (squared L2 distance and NCC; H1- and H2-type norms; the default penalty on div(v)) with the class that claire uses for it (previously only the H1-seminorm without the penalty), and make test-cli runs registrations with each norm, NCC, each preconditioner, scale continuation, --beta-target and --beta-search. They found three options that failed in the GPU build with an internal error: the incompressible model (--regularization h1-seminorm-stokes), the H3-norm (h3-norm) and grid continuation (--grid-continuation); claire now rejects them with a usage error (exit code 2). Fixes of --beta-search with a bound on det(grad(y)) that is reached: reduce returned a solution that violates the bound if the initial beta already did (it now increases beta first, as binary does), and both printed the det(grad(y)) and the convergence of the last beta tried instead of those of the returned solution, and set the exit code from it (binary exited with code 3 after a last trial that did not converge). --jacobian-bound must be in (0, 1). The Hessian of the default model (h1-seminorm-div) is not the curvature of the objective: the model premultiplies its gradient and its Hessian by the same operator, which leaves the Newton step unchanged; the hessian test compares it with a central difference of the gradient (see Running CLAIRE).
11/2026 New website: andreasmang.github.io/claire, built from the files in doc/ (search, light and dark mode, formulas). Links to files outside doc/ now point to GitHub.
11/2026 The help (--help) is easier to read: a line on what the program does, the usage, sections with headings instead of ruler lines, examples, and links to the documentation and the issue tracker; it uses the width of the terminal (60 to 100 columns; 80 if the output is not a terminal, or $COLUMNS) and bold headings and option names on a terminal (not with NO_COLOR). The values of a choice are listed under it, with their help in the same column as that of the options; defaults are shown as [default: ...]; aliases and old names of values only with --help-all. claire-tools <command> --help also lists the options only that command uses (e.g., --labels and --dice of transport-label-map, --reference and --template of residual, --sigma of smooth) and an example. claire-tools warns about --sigma with a command other than smooth (it had no effect).
11/2026 Fixes found by new tests of claire-tools and the Python interface:
On more than one rank, the GPU build used zeros instead of the images read from files: claire registered two zero images (and reported success), and claire-tools transported zeros. The file reader now creates GPU vectors.
claire-tools transport-image and transport-probability-maps wrote images of zeros in the GPU build, also on one rank (the result was copied into a host vector, and the error was ignored).
claire-tools synthetic-velocity crashed in the GPU build.
claire-tools resample, residual and convert wrote to a wrong path with an output folder (-o); for an input file without a folder, they and smooth built the output name /<name>.
A file that cannot be written (e.g., in a missing folder) is an error (exit code 1); the NIfTI library only printed a message, and the program reported success.
--format netcdf without PnetCDF is a usage error (exit code 2), and claire-tools convert does not overwrite its input. The Dice scores of transport-label-map (dice_pre.csv, dice_post.csv in the output folder) are written without debug output.
Python: an array of the wrong size raises a ValueError (it ended the Python process); BUILD_PYTHON=yes finds the headers of Python and NumPy of the python3 in the PATH, and links the programs with a run path to lib/, so they find libclaire.so without LD_LIBRARY_PATH (previously make test failed with BUILD_PYTHON=yes).
Tests: make test-cli checks the outputs of the claire-tools commands, including the Dice score of a transported label map and the volumes of Ravens and probability maps, and a registration of image files; make test-python tests the Python bindings. Repeated registrations are not always bit-identical, so the command line tests compare the settings of old and new option names and compare the output files only if a repeated run gives identical files.
The binaries were renamed: clairetools, test and benchmark are now claire-tools, claire-test and claire-benchmark.
All programs follow GNU conventions:
long options such as --grid-size 64 or --grid-size=64, and a few short ones (-r, -t, -o, -v)
claire-tools, claire-test and claire-benchmark take a command, e.g. claire-tools transport-image, claire-test regularization
outputs and logs are lists: --save velocity,deformed-template,jacobian, --log convergence
--help shows the common options, --help-all all options, claire-tools <command> --help the options of one command, --version the version and the build configuration (GPU architecture, CUDA, precision, PETSc)
every flag can be turned off with --no-<flag>, and --save none clears the list (e.g., to override a config file)
the old names (-mr, -x, -velocity, -deformimage, ...) still work and print a warning; old options without effect (-lowmem, ...) are accepted with a warning
A few options changed their meaning; see the list. Among them: --preconditioner none means no preconditioner (the old -precond none, which also replaced the Hessian by the identity, is now --hessian identity and still works); -o writes into a folder if the value is one; --reference/--template can be repeated for several components.
--print-config writes the command too, so claire --config <file> repeats a run; --mpi-grid and --threads are written only if given, so the file can be used with another number of MPI tasks. Options given after --config override the file (the old -config keeps its rule: the file overrides the command line). Errors in a config file name the file, and mistyped options and commands get a suggestion. claire-tools warns about options that the command does not use.
Exit codes: 0 success, 1 failure while running (e.g., a failed unit test), 2 invalid command line (previously 1), 3 claire did not converge. Errors and warnings are written to stderr. The Python interface raises a ValueError for invalid options.
Fixes: claire-tools smooth -o <folder> wrote to a wrong path; an uninitialized flag in claire-tools could start the smoothing command.
Tests: make test also runs end-to-end tests of the command lines (make test-cli: exit codes, error messages, old and new option names give identical files, config files); the option table test runs on GitHub for every push (GCC and Clang).
Build: changing the build settings (or the compilers) removes the old build files before compiling, which also fixes parallel builds that failed at the link step after such a change; a job on another node of the same cluster reuses the build; a second make no longer relinks the binaries.
11/2026 test and benchmark read their options through a common option table (include/OptionTable.hpp): each option is defined once, and the help, the checks of the values, and config files are generated from it. New: -printconfig prints the settings in config file format (usable with -config); config files may contain # comments, and options given after -config override those in the file; --name is accepted as well as -name; mistyped options get a suggestion. make test-options tests the table with only a C++ compiler. -pdesolver rk2a was removed from both (it is not a transport solver).
11/2026 Command line of claire: invalid input (unknown options, missing or non-numeric values, invalid choices, unreadable -config files, out-of-range -nt, -nx, -beta, -iporder) now prints a short error with the valid values and exits with code 1, instead of printing the full help and exiting with 0 (previously, e.g., -beta abc silently set the regularization parameter to 0). -help shows the common options, -advanced all options; all accepted options are documented. -regnorm also accepts h1sn, h2sn, h3sn.
11/2026 Build and test updates: the dependency makefile builds PETSc 3.21.0 and works with CUDA 12.9 (see doc/README-INSTALL.md); the makefile now tracks header dependencies; the unit tests report PASS/FAIL for each check and return a non-zero exit code on failure (see doc/README-RUNME.md).
05/2021 Our JOSS contribution has been accepted for publication. The reference can be found here.
03/2021 The cpu branch has become the default branch of the repository.
03/2021 We have renamed the master branch to cpu (the legacy CPU implementation of CLAIRE).
28/2020 We have released a GPU version of CLAIRE. If you are interested in using our new (multi-node multi-)GPU version, switch to the GPU branch. If you are interested in learning more about the GPU version of CLAIRE, check out our publications.
11/2018 Support for Normalized-Cross-Correlation (NCC) has been added to CLAIRE.