Skip to content

Be able to skip compiling fermion instantiations altogether#485

Merged
paboyle merged 1 commit intopaboyle:developfrom
edbennett:skip-fermion-instantiations
Feb 25, 2026
Merged

Be able to skip compiling fermion instantiations altogether#485
paboyle merged 1 commit intopaboyle:developfrom
edbennett:skip-fermion-instantiations

Conversation

@edbennett
Copy link
Contributor

Fermion instantiations get expensive to compile at large $N_c$. This PR adds the facility to skip their compilation altogether, by passing --disable-fermion-instantiations at configure time. This substantially speeds up compilation, going from running make -j32 to having libGrid.a in two minutes on Tursa.

This is beneficial to those working on pure gauge problems, or optimising gauge actions, as it avoids needing to wait for unused instantiations to compile. It can also speed up installation of tooling that instantiates all the fermions that it needs to make use of (e.g. because it works at multiple values of Nc).

Guards are placed around all tests/benchmarks/examples making use of fermion instantiations such that make exits successfully, although obviously not all generated executables are functional.

@edbennett edbennett force-pushed the skip-fermion-instantiations branch from 4d48aed to 088f4da Compare February 24, 2026 23:51
@edbennett edbennett force-pushed the skip-fermion-instantiations branch from 088f4da to 1b56f6f Compare February 24, 2026 23:52
@paboyle paboyle merged commit 24a9759 into paboyle:develop Feb 25, 2026
0 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants