pnnl / ExaGO

High-performance power grid optimization for stochastic, security-constrained, and multi-period ACOPF problems.
Other
60 stars 9 forks source link

Update petsc version installing_with_spack.md #123

Closed nedpfeiffer closed 3 months ago

nedpfeiffer commented 4 months ago

Merge request type

Relates to

This MR updates

Summary

It appears the Spack installation instructions are outdated. I received the following error:

ubuntu@workstation:~$ spack install exago@develop%gcc \
  ^openmpi ^ipopt@3.12.10+coinhsl~mumps ^coinhsl+blas \
  ^petsc@3.13.6+mpi~hypre~superlu-dist~mumps+shared
==> Error: concretization failed for the following reasons:

   1. Cannot select a single "version" for package "petsc"
   2. Cannot satisfy 'petsc@:3.13'
   3. Cannot satisfy 'petsc@3.20'
   4. Cannot satisfy 'petsc@3.19:'
   5. Cannot satisfy 'petsc@3.18:'
   6. Cannot satisfy 'petsc@3.13:3.14'
   7. Cannot satisfy 'petsc@3.13.6'
   8. Cannot satisfy 'petsc@3.11:3.13'
   9. Cannot satisfy 'petsc@3.19:'
        required because exago depends on petsc@3.19: when @1.6: 
          required because exago@develop%gcc ^coinhsl+blas ^ipopt@3.12.10+coinhsl~mumps ^openmpi ^petsc@3.13.6~hypre+mpi~mumps+shared~superlu-dist requested explicitly 
   10. Cannot satisfy 'petsc@3.13.6'
        required because exago@develop%gcc ^coinhsl+blas ^ipopt@3.12.10+coinhsl~mumps ^openmpi ^petsc@3.13.6~hypre+mpi~mumps+shared~superlu-dist requested explicitly 
   11. Cannot satisfy 'petsc@3.19:' and 'petsc@3.13.6
        required because exago depends on petsc@3.19: when @1.6: 
          required because exago@develop%gcc ^coinhsl+blas ^ipopt@3.12.10+coinhsl~mumps ^openmpi ^petsc@3.13.6~hypre+mpi~mumps+shared~superlu-dist requested explicitly 
        required because exago@develop%gcc ^coinhsl+blas ^ipopt@3.12.10+coinhsl~mumps ^openmpi ^petsc@3.13.6~hypre+mpi~mumps+shared~superlu-dist requested explicitly 
   12. Cannot satisfy 'petsc@3.13.6' and 'petsc@3.19:
        required because exago depends on petsc@3.19: when @1.6: 
          required because exago@develop%gcc ^coinhsl+blas ^ipopt@3.12.10+coinhsl~mumps ^openmpi ^petsc@3.13.6~hypre+mpi~mumps+shared~superlu-dist requested explicitly 
        required because exago@develop%gcc ^coinhsl+blas ^ipopt@3.12.10+coinhsl~mumps ^openmpi ^petsc@3.13.6~hypre+mpi~mumps+shared~superlu-dist requested explicitly

Specifying petsc version 3.19 as the required version allowed me to continue installation.

abhyshr commented 4 months ago

@cameronrutherford @jaelynlitz : Can you take a look at this PR when you get a chance.

cameronrutherford commented 4 months ago

I'll wait for @jaelynlitz to get back from vacation to give a second opinion, but thanks for this @nedpfeiffer!! Great catch