-
Notifications
You must be signed in to change notification settings - Fork 149
Description
Dear Developers,
looking at EasyBuild in the context of work, it seems to me that OpenFOAM is broken - at least v22xx (forgot which one I tried) and v2312.
There is a tutorial that is called "turbulentFlatPlate" which can be run as a test case. When I build my own OpenFOAM it runs just fine. However when I use the EasyBuild script, besides taking an eternity, its does not work...
OpenFOAM was installed using a pretty standard:
eb OpenFOAM-v2312-foss-2023a.eb -r
The module environment used is lmod.
To run OpenFOAM it is then module load OpenFOAM/v2312-foss-2023a followed by source $FOAM_BASH .
Navigate to the directory and use the supplied ./Allclean and ./Allrun scripts.
When I try to use ./Allrun I get the following error:
# Create the setup: kOmegaSST yPlus-10
# Run the setup: kOmegaSST yPlus-10
No path to C++ compiler (OMPI_CXX=g++) ... cannot compile
Running decomposePar on /software/tmp/OpenFOAM-test/Test-OpenFOAM_inputs-v2306-eb/turbulentFlatPlate/results/kOmegaSST/10
Running simpleFoam (8 processes) on /software/tmp/OpenFOAM-test/Test-OpenFOAM_inputs-v2306-eb/turbulentFlatPlate/results/kOmegaSST/10
Running reconstructPar on /software/tmp/OpenFOAM-test/Test-OpenFOAM_inputs-v2306-eb/turbulentFlatPlate/results/kOmegaSST/10
Not such file: /Cx
Not such file: /wallShearStress
But if I run for example g++ -v I get the following:
Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=/software/eb/GCCcore/12.3.0/libexec/gcc/x86_64-pc-linux-gnu/12.3.0/lto-wrapper
OFFLOAD_TARGET_NAMES=nvptx-none
Target: x86_64-pc-linux-gnu
Configured with: ../configure --enable-languages=c,c++,fortran --without-cuda-driver --enable-offload-targets=nvptx-none --enable-lto --enable-checking=release --disable-multilib --enable-shared=yes --enable-static=yes --enable-threads=posix --enable-plugins --enable-gold --enable-ld=default --prefix=/software/eb/GCCcore/12.3.0 --with-local-prefix=/software/eb/GCCcore/12.3.0 --enable-bootstrap --with-isl=/software/tmp/eb-build/GCCcore/12.3.0/system-system/gcc-12.3.0/stage2_stuff --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 12.3.0 (GCC)
(And I can repeat that for gcc, mpicc, etc. - I don't see an obvious issue.)
It also isn't all OpenFOAM cases: "periodicCubeWater" works just fine - it does not compile anything.
But as it stands, I have a test case from the tutorials ("turbulentFlatPlate") that works just fine when I compile OpenFOAM myself and that does not work in OpenFOAM coming from EasyBuild.