Skip to content

Commit

Permalink
Merge branch 'develop' of https://github.com/jcsda/spack-stack into f…
Browse files Browse the repository at this point in the history
…eature/update_check_package_config_and_remove_upp
  • Loading branch information
climbfuji committed Mar 8, 2024
2 parents 2ae50c5 + 3d0b369 commit 05a8245
Show file tree
Hide file tree
Showing 20 changed files with 178 additions and 86 deletions.
2 changes: 2 additions & 0 deletions configs/common/modules_lmod.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,8 @@ modules:
- openssl
- perl
- pkgconf
- protobuf
- py-protobuf
- qt
- randrproto
- readline
Expand Down
2 changes: 2 additions & 0 deletions configs/common/modules_tcl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ modules:
- openssl
- perl
- pkgconf
- protobuf
- py-protobuf
- qt
- randrproto
- readline
Expand Down
7 changes: 4 additions & 3 deletions configs/common/packages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,8 @@
yacc: [bison]
zlib-api: [zlib-ng]
#
# This version of awscli goes with [email protected]
awscli:
version: ['1.27.84']
awscli-v2:
require: "~examples"
bacio:
version: ['2.4.1']
bison:
Expand Down Expand Up @@ -242,6 +241,8 @@
variants: +rust_bootstrap
py-shapely:
require: ['@1.8.0']
py-torch:
require: "+internal-protobuf ~mkldnn"
qt:
version: ['5.15.3']
scotch:
Expand Down
83 changes: 44 additions & 39 deletions configs/sites/derecho/compilers.yaml
Original file line number Diff line number Diff line change
@@ -1,42 +1,47 @@
compilers::
- compiler:
spec: [email protected]
paths:
cc: /glade/u/apps/common/23.08/spack/opt/spack/intel-oneapi-compilers/2023.2.1/compiler/2023.2.1/linux/bin/intel64/icc
cxx: /glade/u/apps/common/23.08/spack/opt/spack/intel-oneapi-compilers/2023.2.1/compiler/2023.2.1/linux/bin/intel64/icpc
f77: /glade/u/apps/common/23.08/spack/opt/spack/intel-oneapi-compilers/2023.2.1/compiler/2023.2.1/linux/bin/intel64/ifort
fc: /glade/u/apps/common/23.08/spack/opt/spack/intel-oneapi-compilers/2023.2.1/compiler/2023.2.1/linux/bin/intel64/ifort
flags: {}
operating_system: sles15
target: x86_64
modules:
- ncarenv/23.09
- intel-classic/2023.2.1
environment:
prepend_path:
PATH: '/opt/cray/pe/gcc/12.2.0/bin'
CPATH: '/opt/cray/pe/gcc/12.2.0/snos/include'
LD_LIBRARY_PATH: '/glade/u/apps/common/23.08/spack/opt/spack/intel-oneapi-compilers/2023.2.1/compiler/2023.2.1/linux/compiler/lib/intel64_lin:/opt/cray/pe/gcc/12.2.0/snos/lib:/opt/cray/pe/gcc/12.2.0/lib64'
set:
# https://github.com/JCSDA/spack-stack/issues/957
FI_CXI_RX_MATCH_MODE: 'hybrid'
extra_rpaths: []
- compiler:
spec: [email protected]
paths:
cc: /opt/cray/pe/gcc/12.2.0/bin/gcc
cxx: /opt/cray/pe/gcc/12.2.0/bin/g++
f77: /opt/cray/pe/gcc/12.2.0/bin/gfortran
fc: /opt/cray/pe/gcc/12.2.0/bin/gfortran
flags: {}
operating_system: sles15
target: x86_64
modules:
- ncarenv/23.09
- gcc/12.2.0
environment:
set:
# https://github.com/JCSDA/spack-stack/issues/957
FI_CXI_RX_MATCH_MODE: 'hybrid'
- compiler:
spec: [email protected]
paths:
cc: /glade/u/apps/common/23.08/spack/opt/spack/intel-oneapi-compilers/2023.2.1/compiler/2023.2.1/linux/bin/intel64/icc
cxx: /glade/u/apps/common/23.08/spack/opt/spack/intel-oneapi-compilers/2023.2.1/compiler/2023.2.1/linux/bin/intel64/icpc
f77: /glade/u/apps/common/23.08/spack/opt/spack/intel-oneapi-compilers/2023.2.1/compiler/2023.2.1/linux/bin/intel64/ifort
fc: /glade/u/apps/common/23.08/spack/opt/spack/intel-oneapi-compilers/2023.2.1/compiler/2023.2.1/linux/bin/intel64/ifort
flags:
cflags: -diag-disable=10441
cxxflags: -diag-disable=10441
fflags: -diag-disable=10448
operating_system: sles15
target: x86_64
modules:
- ncarenv/23.09
- intel-classic/2023.2.1
environment:
prepend_path:
PATH: '/opt/cray/pe/gcc/12.2.0/bin'
CPATH: '/opt/cray/pe/gcc/12.2.0/snos/include'
LD_LIBRARY_PATH: '/glade/u/apps/common/23.08/spack/opt/spack/intel-oneapi-compilers/2023.2.1/compiler/2023.2.1/linux/compiler/lib/intel64_lin:/opt/cray/pe/gcc/12.2.0/snos/lib:/opt/cray/pe/gcc/12.2.0/lib64'
set:
# https://github.com/JCSDA/spack-stack/issues/957
FI_CXI_RX_MATCH_MODE: 'hybrid'
# https://github.com/JCSDA/spack-stack/issues/1012
I_MPI_EXTRA_FILESYSTEM: 'ON'
extra_rpaths: []
- compiler:
spec: [email protected]
paths:
cc: /opt/cray/pe/gcc/12.2.0/bin/gcc
cxx: /opt/cray/pe/gcc/12.2.0/bin/g++
f77: /opt/cray/pe/gcc/12.2.0/bin/gfortran
fc: /opt/cray/pe/gcc/12.2.0/bin/gfortran
flags: {}
operating_system: sles15
target: x86_64
modules:
- ncarenv/23.09
- gcc/12.2.0
environment:
set:
# https://github.com/JCSDA/spack-stack/issues/957
FI_CXI_RX_MATCH_MODE: 'hybrid'
extra_rpaths: []

3 changes: 2 additions & 1 deletion configs/sites/discover-scu16/compilers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ compilers:
cxx: /usr/local/intel/oneapi/2021/compiler/2022.0.1/linux/bin/intel64/icpc
f77: /usr/local/intel/oneapi/2021/compiler/2022.0.1/linux/bin/intel64/ifort
fc: /usr/local/intel/oneapi/2021/compiler/2022.0.1/linux/bin/intel64/ifort
flags: {}
flags:
ldflags: '-L/usr/local/other/gcc/11.2.0/lib64'
operating_system: sles12
target: x86_64
modules:
Expand Down
5 changes: 3 additions & 2 deletions configs/sites/discover-scu17/compilers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ compilers:
PATH: '/usr/local/other/gcc/11.4.0/bin'
CPATH: '/usr/local/other/gcc/11.4.0/include'
LD_LIBRARY_PATH: '/usr/local/intel/oneapi/2021/compiler/2023.2.1/linux/compiler/lib/intel64_lin:/usr/local/other/gcc/11.4.0/lib64'
#set:
# I_MPI_ROOT: '/usr/local/intel/oneapi/2021/mpi/2021.5.0'
set:
# https://github.com/JCSDA/spack-stack/issues/1012
I_MPI_EXTRA_FILESYSTEM: 'ON'
extra_rpaths: []
- compiler:
spec: gcc@=12.3.0
Expand Down
5 changes: 4 additions & 1 deletion configs/sites/hercules/compilers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ compilers:
cxx: /apps/spack-managed/gcc-11.3.1/intel-oneapi-compilers-2023.1.0-sb753366rvywq75zeg4ml5k5c72xgj72/compiler/2023.1.0/linux/bin/intel64/icpc
f77: /apps/spack-managed/gcc-11.3.1/intel-oneapi-compilers-2023.1.0-sb753366rvywq75zeg4ml5k5c72xgj72/compiler/2023.1.0/linux/bin/intel64/ifort
fc: /apps/spack-managed/gcc-11.3.1/intel-oneapi-compilers-2023.1.0-sb753366rvywq75zeg4ml5k5c72xgj72/compiler/2023.1.0/linux/bin/intel64/ifort
flags: {}
flags:
cflags: -diag-disable=10441
cxxflags: -diag-disable=10441
fflags: -diag-disable=10448
operating_system: rocky9
target: x86_64
modules:
Expand Down
15 changes: 15 additions & 0 deletions configs/sites/noaa-aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ that the site configuration files in `configs/sites/noaa-aws` work out of the bo

sudo su
chmod 777 /contrib
# The following three commands were necessary to fix failures accessing these repos
yum-config-manager --disable intel-clck-2019-repo
yum-config-manager --disable intel-hpc-platform
yum-config-manager --disable intelpython
#
yum install -y qt5-qtbase-devel
yum install -y qt5-qtsvg-devel
yum install -y xorg-x11-xauth
Expand Down Expand Up @@ -126,6 +131,7 @@ mkdir ecflow
# Create the modulefile from the template in doc/modulefile_templates

############## Steps to perform when starting a new cluster ##############

source /contrib/admin/basic_setup.sh # sudo privileges requred to install packages
module unuse /opt/cray/craype/default/modulefiles
module unuse /opt/cray/modulefiles
Expand All @@ -135,3 +141,12 @@ module load ecflow/5.8.4
module load mysql/8.0.31
module load git-lfs/2.4.1

git lfs install
git config --global credential.helper cache # or store
git config --global user.email "[email protected]"
git config --global user.name "Your Name"

mkdir ~/.aws
# Create ~/.aws/config
# Create ~/.aws/credentials
chmod 400 ~/.aws/credentials
14 changes: 14 additions & 0 deletions configs/sites/noaa-azure/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ that the site configuration files in `configs/sites/noaa-azure` work out of the

sudo su
chmod 777 /contrib
# The following three commands were necessary to fix failures accessing these repos
yum-config-manager --disable intel-clck-2019-repo
yum-config-manager --disable intel-hpc-platform
yum-config-manager --disable intelpython
#
yum install -y m4
yum install -y qt5-qtbase-devel
yum install -y qt5-qtsvg-devel
Expand Down Expand Up @@ -130,6 +135,7 @@ mkdir ecflow
# Create the modulefile from the template in doc/modulefile_templates

############## Steps to perform when starting a new cluster ##############

source /contrib/admin/basic_setup.sh # sudo privileges requred to install packages
module unuse /opt/cray/craype/default/modulefiles
module unuse /opt/cray/modulefiles
Expand All @@ -140,4 +146,12 @@ module load mysql/8.0.31
module load git-lfs/2.4.1
#

git lfs install
git config --global credential.helper cache # or store
git config --global user.email "[email protected]"
git config --global user.name "Your Name"

mkdir ~/.aws
# Create ~/.aws/config
# Create ~/.aws/credentials
chmod 400 ~/.aws/credentials
15 changes: 15 additions & 0 deletions configs/sites/noaa-gcloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ that the site configuration files in `configs/sites/noaa-gcloud` work out of the

sudo su
chmod 777 /contrib
# The following three commands were necessary to fix failures accessing these repos
yum-config-manager --disable intel-clck-2019-repo
yum-config-manager --disable intel-hpc-platform
yum-config-manager --disable intelpython
#
yum install -y qt5-qtbase-devel
yum install -y qt5-qtsvg-devel
yum install -y xorg-x11-xauth
Expand Down Expand Up @@ -126,6 +131,7 @@ mkdir ecflow
# Create the modulefile from the template in doc/modulefile_templates

############## Steps to perform when starting a new cluster ##############

source /contrib/admin/basic_setup.sh # sudo privileges requred to install packages
module unuse /opt/cray/craype/default/modulefiles
module unuse /opt/cray/modulefiles
Expand All @@ -135,3 +141,12 @@ module load ecflow/5.8.4
module load mysql/8.0.31
module load git-lfs/2.4.1

git lfs install
git config --global credential.helper cache # or store
git config --global user.email "[email protected]"
git config --global user.name "Your Name"

mkdir ~/.aws
# Create ~/.aws/config
# Create ~/.aws/credentials
chmod 400 ~/.aws/credentials
4 changes: 4 additions & 0 deletions configs/templates/skylab-dev/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spack:
- compilers: ['%aocc', '%apple-clang', '%gcc', '%intel']
- packages:
- ewok-env +ecflow +cylc
- ai-env
- geos-gcm-env
- jedi-fv3-env
- jedi-geos-env
Expand All @@ -30,3 +31,6 @@ spack:
- matrix:
- [$packages]
- [$compilers]
exclude:
# py-torch in ai-env doesn't build with Intel
- ai-env%intel
3 changes: 3 additions & 0 deletions configs/templates/unified-dev/spack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ spack:
- compilers: ['%aocc', '%apple-clang', '%gcc', '%intel']
- packages:
- ewok-env +ecflow +cylc
- ai-env
- geos-gcm-env
- global-workflow-env
- gmao-swell-env
Expand Down Expand Up @@ -40,5 +41,7 @@ spack:
- [$packages]
- [$compilers]
exclude:
# py-torch in ai-env doesn't build with Intel
- ai-env%intel
# jedi-tools doesn't build with Intel
- jedi-tools-env%intel
14 changes: 12 additions & 2 deletions doc/source/MaintainersSection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,24 @@ NASA Discover SCU17
On Discover SCU17 ``ecflow`` needs to be installed as a one-off before spack can be used.

ecflow
``ecFlow`` must be built manually using the GNU compilers and linked against a static ``boost`` library. After loading the following modules, follow the instructions in :numref:`Section %s <MaintainersSection_ecFlow>`.
``ecFlow`` must be built manually using the GNU compilers and linked against a static ``boost`` library. After loading the following modules, follow the instructions in :numref:`Section %s <MaintainersSection_ecFlow>` (cont'd below).

.. code-block:: console
module purge
module load comp/gcc/12.3.0
module load cmake/3.28.2
The following workaround is required after installing ``ecflow`` and creating the modulefile: edit ``path/to/ecflow/bin/ecflow_ui`` and change the last few lines to (i.e. prepend the ``LD_PRELOAD`` command):

.. code-block:: console
if [ $ECFLOWUI_BT != "no" ]
then
LD_PRELOAD=/usr/lib64/libstdc++.so.6 catchsegv ${ECFLOWUI_USER_START_CMD} "$exe"
else
LD_PRELOAD=/usr/lib64/libstdc++.so.6 ${ECFLOWUI_USER_START_CMD} "$exe"
fi
.. _MaintainersSection_Narwhal:

------------------------------
Expand Down
25 changes: 10 additions & 15 deletions doc/source/PreConfiguredSites.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ On selected systems, developmental versions / release candidates are installed t
| MSU +----------------------------------+-----------------+---------------------------------------------------------------------------------------------------------+-------------------------------+
| | Orion | GCC, Intel | ``/work/noaa/epic/role-epic/spack-stack/orion/spack-stack-1.6.0/envs/unified-env`` | EPIC / JCSDA |
+---------------------+----------------------------------+-----------------+---------------------------------------------------------------------------------------------------------+-------------------------------+
| | Discover SCU16 | GCC, Intel | ``/gpfsm/dswdev/jcsda/spack-stack/scu16/spack-stack-20240207/envs/unified-env-*`` | JCSDA |
| | Discover SCU16 | GCC, Intel | ``/gpfsm/dswdev/jcsda/spack-stack/scu16/spack-stack-20240228/envs/unified-env-*`` | JCSDA |
| NASA +----------------------------------+-----------------+---------------------------------------------------------------------------------------------------------+-------------------------------+
| | Discover SCU17 | GCC, Intel | ``/gpfsm/dnb55/projects/p01/s2127/dheinzel/spstmil/envs/unified-env-*`` **TEMP FOR ACCEPTANCE TESTING** | JCSDA |
| | Discover SCU17 | GCC, Intel | ``/gpfsm/dswdev/jcsda/spack-stack/scu17/spack-stack-20240228/envs/unified-env-*`` | JCSDA |
+---------------------+----------------------------------+-----------------+---------------------------------------------------------------------------------------------------------+-------------------------------+
| | Casper | GCC | ``/glade/work/epicufsrt/contrib/spack-stack/casper/spack-stack-1.6.0/envs/unified-env`` | JCSDA / EPIC |
| NCAR-Wyoming +----------------------------------+-----------------+---------------------------------------------------------------------------------------------------------+-------------------------------+
Expand Down Expand Up @@ -177,29 +177,26 @@ The following is required for building new spack environments and for using spac
module load miniconda/3.9.7
module load ecflow/5.8.4
For ``spack-stack-20240207`` with Intel, proceed with loading the following modules:
For ``spack-stack-20240228`` with Intel, proceed with loading the following modules:

.. code-block:: console
module use /gpfsm/dswdev/jcsda/spack-stack/scu16/spack-stack-20240207/envs/unified-env-intel-2021.5.0/install/modulefiles/Core
module use /gpfsm/dswdev/jcsda/spack-stack/scu16/spack-stack-20240228/envs/unified-env-intel-2021.5.0/install/modulefiles/Core
module load stack-intel/2021.5.0
module load stack-intel-oneapi-mpi/2021.5.0
module load stack-python/3.10.13
module available
For ``spack-stack-20240207`` with GNU, proceed with loading the following modules:
For ``spack-stack-20240228`` with GNU, proceed with loading the following modules:

.. code-block:: console
module use /gpfsm/dswdev/jcsda/spack-stack/scu16/spack-stack-20240207/envs/unified-env-gcc-12.1.0/install/modulefiles/Core
module use /gpfsm/dswdev/jcsda/spack-stack/scu16/spack-stack-20240228/envs/unified-env-gcc-12.1.0/install/modulefiles/Core
module load stack-gcc/12.1.0
module load stack-openmpi/4.1.3
module load stack-python/3.10.13
module available
.. note::
When using Intel, it may be required to set the environment variable ``LDFLAGS="-L/usr/local/other/gcc/11.2.0/lib64"`` for building applications like JEDI.

------------------------------
NASA Discover SCU17
------------------------------
Expand All @@ -213,23 +210,21 @@ The following is required for building new spack environments and for using spac
module use /discover/swdev/jcsda/spack-stack/scu17/modulefiles
module load ecflow/5.11.4
For ``spack-stack-20240207`` with Intel, load the following modules after loading ecflow:

**TEMPORARY LOCATIONS FOR ACCEPTANCE TESTING**!
For ``spack-stack-20240228`` with Intel, load the following modules after loading ecflow:

.. code-block:: console
module use /gpfsm/dnb55/projects/p01/s2127/dheinzel/spstmil/envs/unified-env-intel-2021.10.0/install/modulefiles/Core
module use /gpfsm/dswdev/jcsda/spack-stack/scu17/spack-stack-20240228/envs/unified-env-intel-2021.10.0/install/modulefiles/Core
module load stack-intel/2021.10.0
module load stack-intel-oneapi-mpi/2021.10.0
module load stack-python/3.10.13
module available
For ``spack-stack-20240207`` with GNU, load the following modules after loading ecflow:
For ``spack-stack-20240228`` with GNU, load the following modules after loading ecflow:

.. code-block:: console
module use /gpfsm/dnb55/projects/p01/s2127/dheinzel/spstmil/envs/unified-env-gcc-12.3.0/install/modulefiles/Core
module use /gpfsm/dswdev/jcsda/spack-stack/scu17/spack-stack-20240228/envs/unified-env-gcc-12.3.0/install/modulefiles/Core
module load stack-gcc/12.3.0
module load stack-openmpi/4.1.6
module load stack-python/3.10.13
Expand Down
2 changes: 1 addition & 1 deletion spack
Loading

0 comments on commit 05a8245

Please sign in to comment.