Skip to content

Usage of ccache in the test suite - #364

Merged
glesur merged 11 commits into
idefix-code:developfrom
svalat:feature/test-ccache
Mar 2, 2026
Merged

Usage of ccache in the test suite#364
glesur merged 11 commits into
idefix-code:developfrom
svalat:feature/test-ccache

Conversation

@svalat

Copy link
Copy Markdown
Collaborator

This patch propose to use ccache in the test suite so it reduces the build time.

Ccache is compatible with clang, gcc, nvcc and in depending on community feedback supported by icpx (https://ccache.dev/platform-compiler-language-support.html).

The way to use it for intel (and all compiler) with cmake is : https://www.intel.com/content/www/us/en/docs/dpcpp-cpp-compiler/developer-guide-reference/2025-2/ccache.html

Usage in the test suite is just to add the option -ccache when calling the test script.

@svalat
svalatforce-pushed the feature/test-ccache branch 2 times, most recently from 34d018b to c6e885dCompareFebruary 17, 2026 12:36
@glesur
glesur self-requested a review February 20, 2026 15:18

@glesurglesur left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you should also add the Idefix_PROBLEM_DIR option to the documentation in doc/source/reference/makefile.rst

Comment threadCMakeLists.txt Outdated
Comment threadCMakeLists.txt Outdated
@glesurglesur added enhancement New feature or request tests labels Feb 20, 2026
@glesur
glesur merged commit 56189c9 into idefix-code:developMar 2, 2026
38 checks passed
@glesurglesur mentioned this pull request Apr 21, 2026
Merged
glesur added a commit that referenced this pull request Apr 22, 2026
### Changed
- fixed a bug that could lead to diverging results around the spherical axis in non-ideal MHD in 2.5D and 3D (#356)
- refactor of the MPI exchange routines and boundary routines to avoid buildup of roundoff errors at domain faces/edges that could lead to the sudden burst of div(B) or incoherences between MPI sub-domains (#357)
- fixed a bug that could lead to compilations error when targetting AMD APUs (#359)
- fixed a bug that led to the generation of incorrect subviews in 2.5D with vector_potential enabled (#362)
- fixed a bug that could lead to memory corruption when using the UCT_HLLD emf reconstruction scheme and DIMENSIONS < COMPONENTS (#363)
- reorganise the test to separate specific IO tests from physics tests (#367)
### Added
- magnetic vector potential is now accessible from pydefix when enabled (#361)
- use ccache in the test suite to reduce the runtime of continuous integration (#364)
- automatically detects pybind11 path with cmake when using pydefix (#367)
- skeleton to run the test suite with pytest (#366)
---------------------------------------------------------------------------
Co-authored-by: Clément Robert <cr52@protonmail.com>
Co-authored-by: Sébastien Valat <sebastien.valat.dev@orange.fr>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancementNew feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@svalat@glesur