Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPI Change: Add influential file. Correct a small permissions issue in mpi.def container #28643

Closed
milljm opened this issue Sep 17, 2024 · 5 comments · Fixed by #28656
Closed
Assignees
Labels
C: Apptainer Tickets pertaining to Singularity/Apptainer T: task An enhancement to the software.

Comments

@milljm
Copy link
Member

milljm commented Sep 17, 2024

Motivation

There was a new file added to apptainer/mpi.def that was mistakenly not added to the influential files.

There is a sourced file that has incorrect permissions. While they work at present, they should be world-readable.

Edit:
Using this PR to include changes from a reverted PR #28283 (with fixes). Otherwise, this would be too many rapid changes in such a low lever Conda package.

Design

Track the 01-fix-exec.sh influential file.
Fix permissions on said file during %post.

Impact

The versioner.yaml file will correctly track all related Apptainer files.
The source file will have correct permissions.

@milljm milljm added T: task An enhancement to the software. C: Apptainer Tickets pertaining to Singularity/Apptainer labels Sep 17, 2024
@milljm milljm self-assigned this Sep 17, 2024
@milljm milljm changed the title Add influential file. Correct a small permissions issue in mpi.exe container Add influential file. Correct a small permissions issue in mpi.dev container Sep 17, 2024
@milljm milljm changed the title Add influential file. Correct a small permissions issue in mpi.dev container Add influential file. Correct a small permissions issue in mpi.def container Sep 17, 2024
@milljm milljm changed the title Add influential file. Correct a small permissions issue in mpi.def container MPI Change: Add influential file. Correct a small permissions issue in mpi.def container Sep 17, 2024
@milljm
Copy link
Member Author

milljm commented Sep 17, 2024

When #28587 is ready, incorporate that into this (for a more worth while reason to bump petsc).

@lindsayad
Copy link
Member

So for Mac, we will want to add this to LDFLAGS: -Wl,-ld_classic -Wl,-commons,use_dylibs. Additionally on Mac, when configuring mpich we will want to pass --with-device=ch4:ofi. Refs https://gitlab.com/petsc/petsc/-/issues/1569

@milljm
Copy link
Member Author

milljm commented Sep 18, 2024

Due to the setback and reverting of #28399, I'll be making another attempt getting everything rolled into this PR...

Edit:
I am tired of running into small bumps in the underlying stack causing our issues. So for this next moose-mpi 'bump', I'll be adding many more pins.

@loganharbour
Copy link
Member

Additionally on Mac, when configuring mpich we will want to pass --with-device=ch4:ofi

We take what we can get with conda mpich:

./configure --prefix=$PREFIX \
            --disable-dependency-tracking \
            --enable-cxx \
            --enable-fortran \
            --enable-f08 \
            --with-wrapper-dl-type=none \
            --disable-opencl \
            --with-device=ch4 \
            || cat config.log

from https://github.com/conda-forge/mpich-feedstock/blob/d187d6d38143e3f03d0eb8a9cb0b16d23175594e/recipe/build-mpi.sh#L94C1-L102C30

milljm added a commit to milljm/moose that referenced this issue Sep 18, 2024
Remove DEBUG and other offending flags from CXXFLAGS/CPPFLAGS.

When installing moose-mpi, supply a default set of python packages
necessary to build MOOSE.

Continue to constrain to a Python range. Default Python is latest
supported version (3.11 at this commit)

Pin HDF5 to 1.14.2 due to discovered issue: idaholab#28350

As requested, incorporating `set` options we require when launching
containers with exec subcommand.

Bump SDK for Mac Intel (PETSc contrib requirement).

Transition to files section for exec fix

Pin several packages, as we are tired of experiencing issues with only small
bumps to build versions.

Refs idaholab#28427 idaholab#28283

Closes idaholab#28643
milljm added a commit to milljm/moose that referenced this issue Sep 18, 2024
Remove DEBUG and other offending flags from CXXFLAGS/CPPFLAGS.

When installing moose-mpi, supply a default set of python packages
necessary to build MOOSE.

Continue to constrain to a Python range. Default Python is latest
supported version (3.11 at this commit)

Pin HDF5 to 1.14.2 due to discovered issue: idaholab#28350

As requested, incorporating `set` options we require when launching
containers with exec subcommand.

Bump SDK for Mac Intel (PETSc contrib requirement).

Transition to files section for exec fix

Pin several packages, as we are tired of experiencing issues with only small
bumps to build versions.

Refs idaholab#28427 idaholab#28283

Closes idaholab#28643
milljm added a commit to milljm/moose that referenced this issue Sep 18, 2024
Remove DEBUG and other offending flags from CXXFLAGS/CPPFLAGS.

When installing moose-mpi, supply a default set of python packages
necessary to build MOOSE.

Continue to constrain to a Python range. Default Python is latest
supported version (3.11 at this commit)

Pin HDF5 to 1.14.2 due to discovered issue: idaholab#28350

As requested, incorporating `set` options we require when launching
containers with exec subcommand.

Bump SDK for Mac Intel (PETSc contrib requirement).

Transition to files section for exec fix

Pin several packages, as we are tired of experiencing issues with only small
bumps to build versions.

Refs idaholab#28427 idaholab#28283

Closes idaholab#28643
milljm added a commit to milljm/moose that referenced this issue Sep 18, 2024
Remove DEBUG and other offending flags from CXXFLAGS/CPPFLAGS.

When installing moose-mpi, supply a default set of python packages
necessary to build MOOSE.

Continue to constrain to a Python range. Default Python is latest
supported version (3.11 at this commit)

Pin HDF5 to 1.14.2 due to discovered issue: idaholab#28350

As requested, incorporating `set` options we require when launching
containers with exec subcommand.

Bump SDK for Mac Intel (PETSc contrib requirement).

Transition to files section for exec fix

Pin several packages, as we are tired of experiencing issues with only small
bumps to build versions.

Refs idaholab#28427 idaholab#28283

Closes idaholab#28643
milljm added a commit to milljm/moose that referenced this issue Sep 18, 2024
Remove DEBUG and other offending flags from CXXFLAGS/CPPFLAGS.

When installing moose-mpi, supply a default set of python packages
necessary to build MOOSE.

Continue to constrain to a Python range. Default Python is latest
supported version (3.11 at this commit)

Pin HDF5 to 1.14.2 due to discovered issue: idaholab#28350

As requested, incorporating `set` options we require when launching
containers with exec subcommand.

Bump SDK for Mac Intel (PETSc contrib requirement).

Transition to files section for exec fix

Pin several packages, as we are tired of experiencing issues with only small
bumps to build versions.

Refs idaholab#28427 idaholab#28283

Closes idaholab#28643
@lindsayad
Copy link
Member

Well if the modification to $LDFLAGS alone is not sufficient to resolve the MUMPS failure that @GiudGiud ran into in BlueCRAB then we might need to talk to mpich-feedstock about allowing control of the device

milljm added a commit to milljm/moose that referenced this issue Oct 1, 2024
Remove DEBUG and other offending flags from CXXFLAGS/CPPFLAGS.

When installing moose-mpi, supply a default set of python packages
necessary to build MOOSE.

Continue to constrain to a Python range. Default Python is latest
supported version (3.11 at this commit)

Pin HDF5 to 1.14.2 due to discovered issue: idaholab#28350

As requested, incorporating `set` options we require when launching
containers with exec subcommand.

Bump SDK for Mac Intel (PETSc contrib requirement).

Transition to files section for exec fix

Pin several packages, as we are tired of experiencing issues with only small
bumps to build versions.

Refs idaholab#28427 idaholab#28283

Closes idaholab#28643
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: Apptainer Tickets pertaining to Singularity/Apptainer T: task An enhancement to the software.
Projects
None yet
3 participants