.. _Preconfigured_Sites: Pre-configured sites ************************* Pre-configured sites are split into two categories: Tier 1 with officially supported spack-stack installations (see :numref:`Section %s `), and Tier 2 (sites with configuration files that were tested or contributed by others in the past, but that are not officially supported by the spack-stack team; see :numref:`Section %s `). Directories ``configs/sites/tier1`` and ``configs/sites/tier2`` contain site configurations for several HPC systems, as well as minimal configurations for macOS and Linux. The macOS and Linux configurations are **not** meant to be used as is, as user setups and package versions vary considerably. Instructions for adding this information can be found in :numref:`Section %s `. As of spack-stack-1.8.0, this page provides general information on the supported platforms, such as the location of the spack-stack installations on tier 1 platforms and instructions on how to set up an environment for **building** spack-stack environments. Information on **using** spack-stack environments for development of downstream applications is available on the spack-stack wiki: https://github.com/JCSDA/spack-stack/wiki .. _EnvironmentNamingConventions: ============================================================= Environment naming conventions ============================================================= The following naming conventions are used on all fully-supported (tier 1) sites. Environments are named using an abbreviated prefix that depends on the template/purpose, followed by the compiler name and version: ``prefix-compiler-version``. The following table lists the prefices and gives a few examples. +----------------------------------+---------------------------------------------------------+-------------------+------------------------------+ | Template (``configs/templates``) | Description | Prefix | Examples | +==================================+=========================================================+===================+==============================+ | ``unified-dev`` | Unified environment for all organizations/applications | ``ue`` | ``ue-intel-2021.10.0`` | +----------------------------------+---------------------------------------------------------+-------------------+------------------------------+ | ``skylab-dev`` | JEDI/Skylab environment for JEDI, models, EWOK | ``se`` | ``se-apple-clang-14.0.6`` | +----------------------------------+---------------------------------------------------------+-------------------+------------------------------+ | ``neptune-dev`` | NEPTUNE standalone environment (with xNRL Python) | ``ne`` | ``ne-oneapi-2024.2.1`` | +----------------------------------+---------------------------------------------------------+-------------------+------------------------------+ | ``gsi-addon-dev`` | GSI addon (chained) environment on top of unified env. | ``gsi`` | ``gsi-gcc-13.3.0`` | +----------------------------------+---------------------------------------------------------+-------------------+------------------------------+ | ``unified-dev`` with new ESMF | Unified environment with new ESMF (chained from ``ue``) | ``ue-esmf870b99`` | ``ue-esmf870b99-aocc-4.2.0`` | +----------------------------------+---------------------------------------------------------+-------------------+------------------------------+ .. _Preconfigured_Sites_Tier1: ============================================================= Pre-configured sites (tier 1) ============================================================= +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ | Organization | System | Compilers | Location of top-level spack-stack directory | Maintainers | +=====================+=======================+====================+========================================================+=================+ | **HPC platforms** | +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | Hercules | GCC, Intel | ``/work/noaa/epic/role-epic/spack-stack/hercules/`` | EPIC / JCSDA | | MSU +-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | Orion | GCC, Intel | ``/work/noaa/epic/role-epic/spack-stack/orion/`` | EPIC / JCSDA | +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | Discover SCU16 | GCC, Intel | ``/gpfsm/dswdev/jcsda/spack-stack/scu16/`` | JCSDA | | NASA +-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | Discover SCU17 | GCC, Intel | ``/gpfsm/dswdev/jcsda/spack-stack/scu17/`` | JCSDA | +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ | NCAR-Wyoming + Derecho | GCC, Intel | ``/glade/work/epicufsrt/contrib/spack-stack/derecho/`` | EPIC / JCSDA | +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ | NOAA (NCEP) | Acorn | Intel | ``/lfs/h1/emc/nceplibs/noscrub/spack-stack/`` | NOAA-EMC | +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | Gaea C5 | Intel | ``/ncrc/proj/epic/spack-stack/`` | EPIC / NOAA-EMC | | +-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | Gaea C6 | Intel | ``/ncrc/proj/epic/spack-stack/c6/`` | EPIC / NOAA-EMC | | NOAA (RDHPCS) +-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | Hera | GCC, Intel | ``/contrib/spack-stack/`` | EPIC / NOAA-EMC | | +-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | Jet | GCC, Intel | ``/contrib/spack-stack`` | EPIC / NOAA-EMC | +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | Narwhal | GCC, Intel, oneAPI | ``/p/app/projects/NEPTUNE/spack-stack/`` | NRL | | U.S. Navy (HPCMP) +-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | Nautilus | Intel | ``/p/app/projects/NEPTUNE/spack-stack/`` | NRL | +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ | Univ. of Wisconsin | S4 | Intel | ``/data/prod/jedi/spack-stack/`` | JCSDA | +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ | **Cloud platforms** | +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | AMI Red Hat 8 | GCC | ``/home/ec2-user/spack-stack/`` | JCSDA | + Amazon Web Services +-----------------------+--------------------+--------------------------------------------------------+-----------------+ | | Parallelcluster JCSDA | GCC, Intel | *currently unavailable* | JCSDA | +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ | NOAA (RDHPCS) | RDHPCS Parallel Works | Intel | ``/contrib/spack-stack-rocky8/`` | EPIC / JCSDA | +---------------------+-----------------------+--------------------+--------------------------------------------------------+-----------------+ .. _Preconfigured_Sites_Orion: ------------------------------ MSU Orion ------------------------------ The following is required for building new spack environments with any supported compiler on this platform. .. code-block:: console module purge .. _Preconfigured_Sites_Hercules: ------------------------------ MSU Hercules ------------------------------ The following is required for building new spack environments with any supported compiler on this platform. .. code-block:: console module purge # No need to load modules, spack-stack-1.8.0 have no dependences .. _Preconfigured_Sites_Discover_SCU16: ------------------------------ NASA Discover SCU16 ------------------------------ The following is required for building new spack environments with any supported compiler on this platform. .. code-block:: console module purge module use /discover/swdev/gmao_SIteam/modulefiles-SLES12 module use /discover/swdev/jcsda/spack-stack/scu16/modulefiles module load miniconda/3.9.7 .. _Preconfigured_Sites_Discover_SCU17: ------------------------------ NASA Discover SCU17 ------------------------------ The following is required for building new spack environments with any supported compiler on this platform. .. code-block:: console module purge module use /discover/swdev/gmao_SIteam/modulefiles-SLES15 module use /discover/swdev/jcsda/spack-stack/scu17/modulefiles .. _Preconfigured_Sites_Narwhal: ------------------------------ NAVY HPCMP Narwhal ------------------------------ The following is required for building new spack environments with Intel on this platform.. Don't use ``module purge`` on Narwhal! .. code-block:: console umask 0022 module unload PrgEnv-cray module load PrgEnv-intel/8.3.3 module unload intel module load intel-classic/2023.2.0 module unload cray-mpich module unload craype-network-ofi # Warning. Do not load craype-network-ucx # or cray-mpich-ucx/8.1.21! # There is a bug in the modulefile that prevents # spack from setting the environment for its # build steps when the module is already # loaded. Instead, let spack load it when the # package requires it. #module load craype-network-ucx #module load cray-mpich-ucx/8.1.21 module load libfabric/1.12.1.2.2.1 module unload cray-libsci module load cray-libsci/23.05.1.4 The following is required for building new spack environments with GNU on this platform.. Don't use ``module purge`` on Narwhal! .. code-block:: console umask 0022 module unload PrgEnv-cray module load PrgEnv-gnu/8.3.3 module unload gcc module load gcc/10.3.0 module unload cray-mpich module unload craype-network-ofi # Warning. Do not load craype-network-ucx # or cray-mpich-ucx/8.1.21! # There is a bug in the modulefile that prevents # spack from setting the environment for its # build steps when the module is already # loaded. Instead, let spack load it when the # package requires it. #module load craype-network-ucx #module load cray-mpich-ucx/8.1.21 module load libfabric/1.12.1.2.2.1 module unload cray-libsci module load cray-libsci/23.05.1.4 .. _Preconfigured_Sites_Nautilus: ------------------------------ NAVY HPCMP Nautilus ------------------------------ The following is required for building new spack environments with any supported compiler on this platform. .. code-block:: console umask 0022 module purge .. _Preconfigured_Sites_Derecho: -------------------- NCAR-Wyoming Derecho -------------------- The following is required for building new spack environments with any supported compiler on this platform. **NEEDS UPDATING** .. code-block:: console module purge # ignore that the sticky module ncarenv/... is not unloaded export LMOD_TMOD_FIND_FIRST=yes module load ncarenv/23.09 module use /glade/work/epicufsrt/contrib/spack-stack/derecho/modulefiles .. _Preconfigured_Sites_Acorn: ------------------------------- NOAA Acorn (WCOSS2 test system) ------------------------------- On WCOSS2 OpenSUSE sets ``CONFIG_SITE`` which causes libraries to be installed in ``lib64``, breaking the ``lib`` assumption made by some packages. Therefore, ``CONFIG_SITE`` should remain set to empty in ``compilers.yaml``. For official deployments on ``spack-stack`` on Acorn, be mindful of umask and group ownership, as these can be finicky. The umask value should be 002, otherwise various files can be assigned to the wrong group. In any case, running something to the effect of ``chgrp nceplibs -R`` and ``chmod o+rX -R`` after the whole installation is done is a good idea. Note that for the installation using Intel 19, the system GCC, 7.5.0, is used on the backend for the Intel compiler. More recent versions of GCC are not reliably compatible. Likewise, for Intel 2022, GCC 10.2.0 is used on the backend. Intel 19 is not reliably compatible with C++17 standards, and Intel 2022 is not reliably compatible with C++20. Without a handful of package version restrictions, certain package builds will break, usually in the configure stage. .. note:: System-wide ``spack`` software installations are maintained by NCO on this platform, which are not associated with spack-stack. .. _Preconfigured_Sites_Parallel_Works: ---------------------------------------- NOAA Parallel Works (AWS, Azure, Gcloud) ---------------------------------------- The following is required for building new spack environments with any supported compiler on this platform. The default module path needs to be removed, otherwise spack detects the system as Cray. .. code-block:: console module purge .. _Preconfigured_Sites_Gaea_C5: ------------------------------ NOAA RDHPCS Gaea C5 ------------------------------ The following is required for building new spack environments with Intel on this platform.. Don't use ``module purge`` on Gaea! .. code-block:: console # These modules should be loaded by default, if not load (swap) with: module load PrgEnv-intel/8.3.3 module load intel-classic/2023.1.0 module load cray-mpich/8.1.25 module load python/3.9.12 .. note:: On Gaea, running ``module available`` without the option ``-t`` can lead to an error: ``/usr/bin/lua5.3: /opt/cray/pe/lmod/lmod/libexec/Spider.lua:568: stack overflow`` .. note:: On Gaea, a current limitation is that any executable that is linked against the MPI library (``cray-mpich``) must be run through ``srun`` on a compute node, even if it is run serially (one process). This is in particular a problem when using ``ctest`` for unit testing created by the ``ecbuild add_test`` macro. A workaround is to use the `cmake` cross-compiling emulator for this: .. code-block:: console cmake -DCMAKE_CROSSCOMPILING_EMULATOR="/usr/bin/srun;-n;1" -DMPIEXEC_EXECUTABLE="/usr/bin/srun" -DMPIEXEC_NUMPROC_FLAG="-n" PATH_TO_SOURCE .. _Preconfigured_Sites_Gaea_C6: ------------------------------ NOAA RDHPCS Gaea C6 ------------------------------ The following is required for building new spack environments with Intel on this platform.. Don't use ``module purge`` on Gaea! .. code-block:: console # These modules should be loaded by default, if not load (swap) with: module load PrgEnv-intel/8.3.3 module load intel-classic/2023.2.0 module load cray-mpich/8.1.25 module load python/3.9.12 .. note:: On Gaea, running ``module available`` without the option ``-t`` can lead to an error: ``/usr/bin/lua5.3: /opt/cray/pe/lmod/lmod/libexec/Spider.lua:568: stack overflow`` .. note:: On Gaea, a current limitation is that any executable that is linked against the MPI library (``cray-mpich``) must be run through ``srun`` on a compute node, even if it is run serially (one process). This is in particular a problem when using ``ctest`` for unit testing created by the ``ecbuild add_test`` macro. A workaround is to use the `cmake` cross-compiling emulator for this: .. code-block:: console cmake -DCMAKE_CROSSCOMPILING_EMULATOR="/usr/bin/srun;-n;1" -DMPIEXEC_EXECUTABLE="/usr/bin/srun" -DMPIEXEC_NUMPROC_FLAG="-n" PATH_TO_SOURCE .. _Preconfigured_Sites_Hera: ------------------------------ NOAA RDHPCS Hera ------------------------------ The following is required for building new spack environments with any supported compiler on this platform. .. code-block:: console module purge .. note:: On Hera, a dedicated node exists for ``ecflow`` server jobs (``hecflow01``). Users starting ``ecflow_server`` on the regular login nodes will see their servers being killed every few minutes, and may be barred from accessing the system. .. _Preconfigured_Sites_Jet: ------------------------------ NOAA RDHPCS Jet ------------------------------ The following is required for building new spack environments with any supported compiler on this platform. .. code-block:: console module purge .. _Preconfigured_Sites_S4: ------------------------------ UW (Univ. of Wisconsin) S4 ------------------------------ The following is required for building new spack environments with any supported compiler on this platform. .. code-block:: console module purge .. _Preconfigured_Sites_AWS_Parallelcluster: ------------------------------------------------ Amazon Web Services Parallelcluster Ubuntu 20.04 ------------------------------------------------ **NEEDS UPDATING** The JCSDA-managed AWS Parallel Cluster is currently unavailable. .. _Preconfigured_Sites_AWS_SingleNode_RH8: ----------------------------------------- Amazon Web Services Single Node Red Hat 8 ----------------------------------------- **NEEDS UPDATING** Use a c6i.4xlarge instance or larger if running out of memory with AMI "skylab-8.0.0-redhat8" (see JEDI documentation at https://jointcenterforsatellitedataassimilation-jedi-docs.readthedocs-hosted.com/en/latest for more information). .. _Preconfigured_Sites_Tier2: ============================================================= Pre-configured sites (tier 2) ============================================================= Tier 2 preconfigured site are not officially supported by spack-stack. As such, instructions for these systems may be provided here, in form of a `README.md` in the site directory, or may not be available. Also, these site configs are not updated on the same regular basis as those of the tier 1 systems and therefore may be out of date and/or not working. .. _Preconfigured_Sites_Blackpearl: ------------------------------ Blackpearl ------------------------------ Blackpearl is an Oracle Linux 9 installation running under Windows Subsystem for Linux (WSL2) on Windows 11. This is the development system of one of the spack-stack developers and maybe useful as an example configuration for users with a similar setup. .. _Preconfigured_Sites_Casper: ------------------------------ NCAR-Wyoming Casper ------------------------------ The following is required for building new spack environments with any supported compiler on this platform. **NEEDS UPDATING** .. code-block:: console module purge # ignore that the sticky module ncarenv/... is not unloaded export LMOD_TMOD_FIND_FIRST=yes module load ncarenv/23.10 module use /glade/work/epicufsrt/contrib/spack-stack/casper/modulefiles module load ecflow/5.8.4 .. _Preconfigured_Sites_EMC_RHEL: ------------------------------ EMC RedHat Enterprise Linux 8 ------------------------------ **NEEDS UPDATING** .. _Preconfigured_Sites_Frontera: ------------------------------ ??? Frontera ------------------------------ **NEEDS UPDATING** ------------------------------ Linux/macOS default configs ------------------------------ The Linux and macOS configurations are **not** meant to be used as is, as user setups and package versions vary considerably. Instructions for adding this information can be found in :numref:`Section %s `. .. _Configurable_Sites_CreateEnv: ======================== Create local environment ======================== The following instructions install a new spack environment on a pre-configured site. Instructions for creating a new site config on a configurable system (i.e. a generic Linux or macOS system) can be found in :numref:`Section %s `. The options for the ``spack stack`` extension are explained in :numref:`Section %s `. .. code-block:: console git clone --recurse-submodules https://github.com/jcsda/spack-stack.git cd spack-stack # Ensure Python 3.8+ is available and the default before sourcing spack # Sources Spack from submodule and sets ${SPACK_STACK_DIR} source setup.sh # See a list of sites and templates spack stack create env -h # Create a pre-configured Spack environment in envs/