spack:
  include:
      - compiler_definitions.yaml

      - packages_stack.yaml
      - packages_env.yaml

      - modules_stack.yaml

      - definitions_env.yaml

      - config_stack.yaml

  definitions:
    # -------------------------------------------------------------------------
    # PE definition
    # -------------------------------------------------------------------------
    - mpi_gcc:
        - openmpi@5.0.3

    - mpi_oneapi:
        - intel-oneapi-mpi@2021.12.1

    - blas_gcc:
        - openblas@0.3.26

    - blas_oneapi:
        - intel-oneapi-mkl@2024.1.0

    - python_gcc:
        - python@3.11.7

    - python_oneapi:
        - python@3.11.7

    # -------------------------------------------------------------------------
    # Core packages
    # -------------------------------------------------------------------------
    - core_codes:
        - bzip2
        - cmake
        - emacs +tls
        - fastqc
        - fio
        - git
        - git-lfs
        - gmp
        - gnuplot
        - gzip
        - imagemagick +ghostscript
        - intel-oneapi-advisor
        - intel-oneapi-inspector
        - intel-oneapi-vtune
        - libarchive
        - libjpeg-turbo
        - libpng
        - libtiff
        - libxml2
        - lmod
        - mpfr
        - neovim
        - parallel
        - picard
        - rclone
        - sbt
        - sratoolkit
        - subversion
        - tar
        - tcl
        - tk
        - tmux
        - trimmomatic
        - valgrind
        - xclip
        - zlib-ng

    # -------------------------------------------------------------------------
    # Serial codes
    # -------------------------------------------------------------------------
    - serial_codes:
        - bwa
        - fftw +openmp ~mpi
        - fftw ~openmp ~mpi
        - gsl
        #- hdf5 ~mpi
        - hisat2
        - htslib
        - intel-oneapi-tbb
        - jasper
        - mafft
        - metis
        - muscle
        - nfft
        - python
        - scotch
        - star
        - subread
        - superlu
        - voropp

    - gcc_serial_codes:
        - hwloc
        - libxc
        - stacks
                    
    # -------------------------------------------------------------------------
    # Empty to specialize in environments
    # -------------------------------------------------------------------------
    - cuda_system_codes: []

    # -------------------------------------------------------------------------
    # Parallel codes
    # -------------------------------------------------------------------------
    - mpi_codes:
        - osu-micro-benchmarks +graphing
        - hdf5@1.14.3 +mpi
        - parmetis

    - blas_mpi_codes:
        - hypre@2.31.0
        - mumps@5.6.2
        - superlu-dist@8.2.1

    - blas_mpi_python_codes:
        - petsc@3.21.1 +mpi

    # -------------------------------------------------------------------------
    # Generic definitions
    # -------------------------------------------------------------------------
    - mpis:
        - $mpi_oneapi
        - $mpi_gcc


  specs:
    - matrix:
        - [$compilers_specs]

    - matrix:
        - [$blas_oneapi]
        - [$%compiler_oneapi]

    - matrix:
        - [$blas_gcc]
        - [$%compiler_gcc]

    - matrix:
        - [$mpi_oneapi]
        - [$%compiler_oneapi]

    - matrix:
        - [$mpi_gcc]
        - [$%compiler_gcc]

    - matrix:
        - [$core_codes]
        - [$%system_compiler]

    - matrix:
        - [$cuda_system_codes]
        - [$%system_compiler]

    - matrix:
        - [$serial_codes]
        - [$%compilers]

    - matrix:
        - [$gcc_serial_codes]
        - [$%compiler_gcc]

    - matrix:
        - [$mpi_codes]
        - [$^mpi_oneapi]
        - [$%compiler_oneapi]

    - matrix:
        - [$mpi_codes]
        - [$^mpi_gcc]
        - [$%compiler_gcc]

    - matrix:
        - [$blas_mpi_codes]
        - [$^blas_oneapi]
        - [$^mpi_oneapi]
        - [$%compiler_oneapi]

    - matrix:
        - [$blas_mpi_codes]
        - [$^blas_gcc]
        - [$^mpi_gcc]
        - [$%compiler_gcc]

    - matrix:
        - [$blas_mpi_python_codes]
        - [$^blas_oneapi]
        - [$^mpi_oneapi]
        - [$^python_oneapi]
        - [$%compiler_oneapi]

    - matrix:
        - [$blas_mpi_python_codes]
        - [$^blas_gcc]
        - [$^mpi_gcc]
        - [$^python_gcc]
        - [$%compiler_gcc]

  view: false
#    default:
#      root: /stack/packages/
