Add code_saturne v9.1.0 to validation suite - #19
Open
diskdog wants to merge 2 commits into
Open
Conversation
diskdog
force-pushed
the
add-code_saturne
branch
from
June 16, 2026 12:52
e57c908 to
72cb353
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds clone, build, and run scripts for code_saturne v9.1.0, an open-source finite-volume CFD solver with CUDA-accelerated linear solvers. The validation runs a Cartesian channel-flow case and confirms that the GPU solver is dispatched and the run completes.
System prerequisites
The build requires packages not covered by the standard test environment:
sudo apt-get install -y autoconf automake libtool openmpi-bin libopenmpi-dev python3-dev
Build notes
code_saturne uses the autoconf/automake toolchain, not CMake.
Two non-obvious points:
Validation
02-run.sh creates a 100x100x1 Cartesian channel-flow case (inlet velocity at x=0, pressure outlet at x=1, no-slip walls elsewhere) and runs 10 time steps. It then asserts:
Known workaround
CS_CUDA_ALLOC_DEVICE_UVM=1 is set unconditionally at the start of 02-run.sh. Without it, cs_sles_solve_ccc_fv allocates its extended solver buffers as CS_ALLOC_DEVICE (device-only) and then passes them to the CPU-side convergence check, causing a SIGSEGV. The flag remaps cs_alloc_mode_device to CS_ALLOC_HOST_DEVICE_SHARED at initialisation time. See cs_base_cuda.cu:777.
Status
Passes locally on sm_75 under both native CUDA 13.1 and SCALE 1.7.0. Results are marked ? pending CI validation on the repo's target hardware.