Skip to content

packages.yaml

Read the official Spack documentation

Content of packages.yaml

packages:
  all:
    target: ['x86_64_v4']
  openmpi:
    buildable: false
    prefer:
    - '+gpfs'
    externals:
    - spec: "openmpi@5.0.3%gcc@12.2.0"
      prefix: /share/apps/rocky9/general/libs/openmpi/gcc/12.2.0/5.0.3
  ucx:
    buildable: false
    externals:
    - spec: "ucx@1.16.0%gcc@12.2.0"
      prefix: /share/apps/rocky9/general/libs/ucx/gcc/12.2.0/1.16.0

The above sets the compilation target for all personal packages to x86_64_v4, which matches what we have used for our centrally installed applications and libraries. Most users will want to keep this the same, but compiling for alternative architectures is possible.

The sections for openmpi and ucx should be included. Spack's advice is never to install MPI from Spack, so these sections define versions we have manually compiled specifically for Apocrita, allowing things such as Infiniband to function correctly.