f. Spack external packages

AWS ParallelCluster comes pre-installed with Slurm, libfabric, PMIx, Intel MPI, and Open MPI. We are going to use the pre-installed libfabric, to do so, we need to setup a Spack external package that points at the system libfabric.

cat << EOF > $SPACK_ROOT/etc/spack/packages.yaml
packages:
    libfabric:
        variants: fabrics=efa,tcp,udp,sockets,verbs,shm,mrail,rxd,rxm
        externals:
        - spec: libfabric@1.16.0 fabrics=efa,tcp,udp,sockets,verbs,shm,mrail,rxd,rxm
          prefix: /opt/amazon/efa
        buildable: False
EOF