Skip to content

Spack Manager Tutorial 02 18 2022

Jon Rood edited this page Feb 18, 2022 · 11 revisions

Spack-Manager Tutorial

Agenda:

  1. Introduction to Spack-Manager (20 min)
  1. Snapshot Workflow Tutorial (20 min)
  • Eagle Snapshot Workflow Commands:
    1. export SCRATCH=/scratch/${USER}
    2. cd ${SCRATCH}
    3. git clone --recursive https://github.com/psakievich/spack-manager.git
    4. export SPACK_MANAGER=${SCRATCH}/spack-manager && source ${SPACK_MANAGER}/start.sh && spack-start
    5. spack manager create-env --name exawind --spec 'exawind@master+hypre %gcc'
    6. spack env activate -d ${SPACK_MANAGER}/environments/exawind
    7. spack manager develop nalu-wind@master; spack manager develop exawind@master;
    8. spack manager external --list
    9. spack manager external --latest -v gcc
    10. spack concretize -f
    11. spack install
    12. cd ${SPACK_MANAGER}/environments/exawind/nalu-wind
    13. vi unit_tests.C
    14. spack install
    15. spack cd -b nalu-wind
    16. spack build-env nalu-wind ./unittestX
  1. Quick-Command Workflow Tutorial (10 min)
  2. Additional Q&A (10 min)

Other Topics:

  • FAQ
  • In's and outs of spack manager external
  • CMake script
  • How to add your own CMake flags
  • How to edit spack.yaml
  • What are the directories in Spack-Manager
Clone this wiki locally