{OpenFOAM,PETSc,petsc4Foam}: single-precision (HIP) OpenFOAM GPU-solver chain for foss/2025a - #26578
Draft
hmeiland wants to merge 1 commit into
Draft
{OpenFOAM,PETSc,petsc4Foam}: single-precision (HIP) OpenFOAM GPU-solver chain for foss/2025a#26578hmeiland wants to merge 1 commit into
hmeiland wants to merge 1 commit into
Conversation
…solver chain for foss/2025a Add the single-precision (SP) OpenFOAM v2506 external-solver chain for the foss/2025a toolchain, targeting AMD GPUs (HIP, gfx1101): - OpenFOAM-v2506-foss-2025a-SP: SP OpenFOAM via the new 'precision' easyblock param (precision='SP'); requires easyblocks PR easybuilders#4189. - PETSc-3.23.5-foss-2025a-HIP-fp32: PETSc with --with-hip and --with-precision=single, matching PetscScalar to OpenFOAM's float solveScalar. - petsc4Foam-v2506-foss-2025a-HIP-fp32: Bundle adapter linking the SP OpenFOAM to the single-precision PETSc. petsc4Foam requires PetscScalar == Foam::solveScalar == float, hence the SP OpenFOAM + single-precision PETSc pairing.
Updated software
|
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.
What
Adds the single-precision (SP) HIP / AMD GPU OpenFOAM external-solver chain for the
foss/2025atoolchain:OpenFOAM-v2506-foss-2025a-SP.eb— single-precision OpenFOAM v2506, built via the newprecision='SP'easyconfig parameter.PETSc-3.23.5-foss-2025a-HIP-fp32.eb— PETSc with--with-hipand--with-precision=single.petsc4Foam-v2506-foss-2025a-HIP-fp32.eb— thepetsc4Foamv2506 adapter (Bundle) linking the SP OpenFOAM to the single-precision PETSc.Why single precision
The
petsc4Foamadapter requiresPetscScalar == Foam::solveScalar == float. That means PETSc must be built--with-precision=singleand OpenFOAM must be a single-precision build — hence the-SPOpenFOAM paired with the-HIP-fp32PETSc.Dependency on the easyblocks repo
OpenFOAM-v2506-foss-2025a-SP.ebuses the newprecisioneasyconfig parameter added to the OpenFOAM easyblock in easybuilders/easybuild-easyblocks#4189 — that PR must merge first for this easyconfig to build.Target
AMD gfx1101, ROCm base deps resolved from the EESSI index.
Status
Draft — depends on easyblocks#4189, and build/test reports are still pending. Opening for early feedback on the SP packaging approach.