generated from GEOS-ESM/geos-template-repo
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge commit '8dfc4228cfdddb2398ecd6bb02eeea592b48c203'
- Loading branch information
Showing
11 changed files
with
218 additions
and
150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
# TODO | ||
|
||
- Test the build of baselibs | ||
- Build GCC with OpenACC & OpenMP offloading |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
sw_stack/discover/sles15/modulefiles/SMTStack/2024.03.00.lua
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
load("comp/gcc/12.3.0") | ||
load("lib/mkl/2023.2.0") | ||
load("nvidia/nvhpc-byo-compiler/23.9") | ||
|
||
local install_dir = "/discover/nobackup/projects/geosongpu/sw_sles15/live/src/2024.03.00/install" | ||
|
||
-- UCX -- | ||
local ucx_pkgdir = pathJoin(install_dir, "ucx") | ||
prepend_path("LD_LIBRARY_PATH",pathJoin(ucx_pkgdir,"lib")) | ||
|
||
-- OMPI -- | ||
local ompi_pkgdir = pathJoin(install_dir, "ompi") | ||
|
||
setenv("M_MPI_ROOT",ompi_pkgdir) | ||
setenv("OPENMPI",ompi_pkgdir) | ||
setenv("MPI_HOME",ompi_pkgdir) | ||
|
||
prepend_path("PATH",pathJoin(ompi_pkgdir,"bin")) | ||
prepend_path("LD_LIBRARY_PATH",pathJoin(ompi_pkgdir,"lib")) | ||
prepend_path("INCLUDE",pathJoin(ompi_pkgdir,"include")) | ||
prepend_path("MANPATH",pathJoin(ompi_pkgdir,"share/man")) | ||
|
||
setenv("OMPI_MCA_orte_tmpdir_base","/tmp") | ||
setenv("TMPDIR","/tmp") | ||
setenv("OMP_STACKSIZE","1G") | ||
setenv("OMPI_MCA_mca_base_component_show_load_errors","0") | ||
setenv("PMIX_MCA_mca_base_component_show_load_errors","0") | ||
|
||
-- BOOST HEADERS (as expected by gt4py) -- | ||
local boost_pkgdir = pathJoin(install_dir, "boost") | ||
setenv("BOOST_ROOT", boost_pkgdir) | ||
|
||
-- Python 3 -- | ||
local py_pkgdir = pathJoin(install_dir, "python3") | ||
prepend_path("PATH",pathJoin(py_pkgdir,"bin")) | ||
prepend_path("LD_LIBRARY_PATH",pathJoin(py_pkgdir,"lib")) | ||
prepend_path("LD_LIBRARY_PATH",pathJoin(py_pkgdir,"lib64")) | ||
|
||
-- Load venv -- | ||
local py_pkgdir = pathJoin(install_dir, "venv") | ||
prepend_path("PATH",pathJoin(py_pkgdir,"bin")) | ||
setenv("VIRTUAL_ENV", py_pkgdir) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
#!/bin/bash | ||
|
||
export DSLSW_VERSION="2024.03.00" | ||
echo "DSL Software Stack v${DSLSW_VERSION}" | ||
|
||
# Version | ||
export DSLSW_GDRCOPY_VER=2.3 | ||
export DSLSW_OMPI_MAJOR_VER=4.1 | ||
export DSLSW_OMPI_VER=${DSLSW_OMPI_MAJOR_VER}.6 | ||
export DSLSW_UCX_VER=1.15.0 | ||
export DSLSW_CUDA_VER=12.2 | ||
export DSLSW_OSUMICRO_VER=7.3 | ||
export DSLSW_LAPACK_VER=3.11.0 | ||
export DSLSW_PY_VER=3.11.7 | ||
export DSLSW_BASELIBS_VER=7.17.1 | ||
export DSLSW_SERIALBOX_VER=2.6.2-unreleased | ||
export DSLSW_SERIALBOX_SHA=88ac4e4dfc824953d068fe63c8e7b3dd9560a914 | ||
export DSLSW_GNU_VER=12.2.0 | ||
export DSLSW_NDSL_VER=2024.03.01 | ||
export DSLSW_BOOST_VER=1.76.0 | ||
export DSLSW_BOOST_VER_STR=1_76_0 | ||
|
||
# Base directory & versioning | ||
export DSLSW_BASE=$PWD/build | ||
mkdir -p $DSLSW_BASE | ||
export DSLSW_INSTALL_DIR=$PWD/install | ||
mkdir -p $DSLSW_INSTALL_DIR | ||
|
||
# Modules | ||
module use -a /discover/nobackup/projects/geosongpu/sw_sles15/live/modulefiles/ | ||
module load SMTStack/${DSLSW_VERSION} | ||
CUDA_DIR=/usr/local/other/nvidia/hpc_sdk/Linux_x86_64/23.9/cuda/ | ||
|
||
# Enforce proper compilers | ||
export FC=gfortran | ||
export CC=gcc | ||
export CXX=g++ |
12 changes: 12 additions & 0 deletions
12
sw_stack/discover/sles15/src/2024.03.00/build_0_on-login.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
# Source the shared basics | ||
source ./basics.sh | ||
|
||
echo " === Make NDSL venv === " | ||
cd $DSLSW_INSTALL_DIR | ||
./python3/bin/python3 -m venv venv | ||
source ./venv/bin/activate | ||
pip install --upgrade setuptools pip | ||
pip install -e $DSLSW_INSTALL_DIR/ndsl | ||
pip install mpi4py cffi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 3 additions & 1 deletion
4
sw_stack/discover/sles15/src/1.0.0/check.sh → ...k/discover/sles15/src/2024.03.00/check.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/bash | ||
|
||
source ./basics.v1.0.0.sh | ||
source ./basics.sh | ||
|
||
echo $DSLSW_INSTALL_DIR | ||
echo `which $FC` | ||
echo `which $CC` | ||
|
||
echo $LD_LIBRARY_PATH | ||
|
||
rm -rf build |
Oops, something went wrong.