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

Add PETSc and Netlib-LAPACK to Spack #392

Merged
merged 8 commits into from
May 17, 2022
Merged

Conversation

xylar
Copy link
Collaborator

@xylar xylar commented May 17, 2022

Similarly to Albany, these are optional and can be added with --with_netlib_lapack and --with_petsc flags to ./conda/configure_compass_env.py.

A new version of mache, 1.4.1, is required to support this. Separate spack environments are created depending on whether Albany, Netlib-LAPACK and/or PETSc are included. This is because:

  1. The default environment uses optimized LAPACK (usually from MLK), which is incompatible with Netlib-LAPACK
  2. PETSc and Trilinos are monsters, which make loading the Spack environment pretty slow, so we don't want to include them if they aren't needed
    This makes for a bit of extra deployment work for me (offset by the recent work to support a matrix of compilers and MPI libraries).

xylar added 7 commits May 16, 2022 18:13
This is needed because we will add PETSC (and maybe other
packages) as new Spack dependencies.
To make this practical, the spack environment name now has
suffixes to indicate that these are included (and for Albany as
well).
@xylar xylar self-assigned this May 17, 2022
@xylar xylar added enhancement New feature or request dependencies and deployment Changes relate to creating conda and Spack environments, and creating a load script labels May 17, 2022
@xylar
Copy link
Collaborator Author

xylar commented May 17, 2022

Testing

I am in the process of deploying all 13 configurations:

  • Anvil intel impi
  • Anvil intel openmpi
  • Anvil intel mvapich
  • Anvil gnu openmpi
  • Anvil gnu mvapich
  • Badger intel impi
  • Badger gnu mvapich
  • Chrysalis intel impi
  • Chrysalis intel openmpi
  • Chrysalis gnu openmpi
  • Compy intel impi
  • Cori-Haswell intel mpt
  • Cori-Haswell gnu mpt

@xylar
Copy link
Collaborator Author

xylar commented May 17, 2022

Since, I bumped the build number and the mache version, I'm also updating all Albany builds and all standard builds without Albany, PETSc or Netlib-LAPACK.

@xylar xylar merged commit 1145b1a into MPAS-Dev:master May 17, 2022
@xylar xylar deleted the add_petsc branch May 17, 2022 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies and deployment Changes relate to creating conda and Spack environments, and creating a load script enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant