-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from bbakernoaa/feature/modulefiles
Use spack-stack modulefiles
- Loading branch information
Showing
17 changed files
with
386 additions
and
154 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
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
whatis("Description: UFS build environment common libraries") | ||
|
||
help([[Load UFS Model common libraries]]) | ||
|
||
local ufs_modules = { | ||
{["jasper"] = "2.0.32"}, | ||
{["zlib"] = "1.2.13"}, | ||
{["libpng"] = "1.6.37"}, | ||
{["hdf5"] = "1.14.0"}, | ||
{["netcdf-c"] = "4.9.2"}, | ||
{["netcdf-fortran"] = "4.6.1"}, | ||
{["parallelio"] = "2.5.10"}, | ||
{["esmf"] = "8.6.0"}, | ||
} | ||
|
||
for i = 1, #ufs_modules do | ||
for name, default_version in pairs(ufs_modules[i]) do | ||
local env_version_name = string.gsub(name, "-", "_") .. "_ver" | ||
load(pathJoin(name, os.getenv(env_version_name) or default_version)) | ||
end | ||
end |
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,30 @@ | ||
help([[ | ||
loads UFS Model prerequisites for NOAA Parallelworks/Intel | ||
]]) | ||
|
||
setenv("LMOD_TMOD_FIND_FIRST","yes") | ||
prepend_path("MODULEPATH", "/glade/work/epicufsrt/contrib/spack-stack/derecho/modulefiles") | ||
load("ecflow/5.8.4") | ||
load("mysql/8.0.33") | ||
|
||
setenv("LMOD_TMOD_FIND_FIRST","yes") | ||
prepend_path("MODULEPATH", "/lustre/desc1/scratch/epicufsrt/contrib/modulefiles_extra") | ||
prepend_path("MODULEPATH", "/glade/work/epicufsrt/contrib/spack-stack/derecho/spack-stack-1.6.0/envs/fms-2024.01/install/modulefiles/Core") | ||
|
||
unload("ncarcompilers") | ||
stack_intel_ver=os.getenv("stack_intel_ver") or "2021.10.0" | ||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
|
||
stack_cray_mpich_ver=os.getenv("stack-cray-mpich_ver") or "8.1.25" | ||
load(pathJoin("stack-cray-mpich", stack_cray_mpich_ver)) | ||
|
||
cmake_ver=os.getenv("cmake_ver") or "3.23.1" | ||
load(pathJoin("cmake", cmake_ver)) | ||
|
||
stack_python_ver=os.getenv("stack_python_ver") or "3.10.13" | ||
load(pathJoin("stack-python", stack_python_ver)) | ||
|
||
setenv("CMAKE_Platform", "derecho.intel") | ||
load("ufs-weather-model-env") | ||
|
||
whatis("Description: UFS build environment") |
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,33 @@ | ||
help([[ | ||
This module loads libraries required for building and running UFS Weather Model | ||
on the NOAA RDHPC machine Gaea C5 using Intel-2023.1.0. | ||
]]) | ||
|
||
whatis([===[Loads libraries needed for building the UFS Weather Model on Gaea ]===]) | ||
|
||
prepend_path("MODULEPATH", "/ncrc/proj/epic/spack-stack/spack-stack-1.6.0/envs/fms-2024.01/install/modulefiles/Core") | ||
|
||
stack_intel_ver=os.getenv("stack_intel_ver") or "2023.2.0" | ||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
|
||
stack_cray_mpich_ver=os.getenv("stack_cray_mpich_ver") or "8.1.28" | ||
load(pathJoin("stack-cray-mpich", stack_cray_mpich_ver)) | ||
|
||
stack_python_ver=os.getenv("stack_python_ver") or "3.10.13" | ||
load(pathJoin("stack-python", stack_python_ver)) | ||
|
||
cmake_ver=os.getenv("cmake_ver") or "3.23.1" | ||
load(pathJoin("cmake", cmake_ver)) | ||
|
||
load("ufs_common") | ||
|
||
nccmp_ver=os.getenv("nccmp_ver") or "1.9.0.1" | ||
load(pathJoin("nccmp", nccmp_ver)) | ||
|
||
unload("darshan-runtime") | ||
unload("cray-libsci") | ||
|
||
setenv("CC","cc") | ||
setenv("CXX","CC") | ||
setenv("FC","ftn") | ||
setenv("CMAKE_Platform","gaea.intel") |
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,26 @@ | ||
help([[ | ||
loads UFS Model prerequisites for Hera/Intel | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/fms-2024.01/install/modulefiles/Core") | ||
|
||
stack_intel_ver=os.getenv("stack_intel_ver") or "2021.5.0" | ||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
|
||
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.1" | ||
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) | ||
|
||
cmake_ver=os.getenv("cmake_ver") or "3.23.1" | ||
load(pathJoin("cmake", cmake_ver)) | ||
|
||
load("ufs_common") | ||
|
||
nccmp_ver=os.getenv("nccmp_ver") or "1.9.0.1" | ||
load(pathJoin("nccmp", nccmp_ver)) | ||
|
||
setenv("CC", "mpiicc") | ||
setenv("CXX", "mpiicpc") | ||
setenv("FC", "mpiifort") | ||
setenv("CMAKE_Platform", "hera.intel") | ||
|
||
whatis("Description: UFS build environment") |
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,33 @@ | ||
help([[ | ||
loads UFS Model prerequisites for Hera/IntelLLVM | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/upp-addon-env/install/modulefiles/Core") | ||
|
||
stack_intel_ver=os.getenv("stack_intel_ver") or "2021.5.0" | ||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
|
||
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.1" | ||
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) | ||
|
||
load("gnu") | ||
load("intel/2023.2.0") | ||
|
||
cmake_ver=os.getenv("cmake_ver") or "3.23.1" | ||
load(pathJoin("cmake", cmake_ver)) | ||
|
||
load("ufs_common") | ||
|
||
nccmp_ver=os.getenv("nccmp_ver") or "1.9.0.1" | ||
load(pathJoin("nccmp", nccmp_ver)) | ||
|
||
setenv("I_MPI_CC", "icx") | ||
setenv("I_MPI_CXX", "icpx") | ||
setenv("I_MPI_FC", "ifx") | ||
|
||
setenv("CC", "mpicc") | ||
setenv("CXX", "mpiicpc") | ||
setenv("FC", "mpifc") | ||
setenv("CMAKE_Platform", "hera.intel") | ||
|
||
whatis("Description: UFS build environment") |
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,26 @@ | ||
help([[ | ||
loads UFS Model prerequisites for Hercules/Intel | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.6.0/envs/fms-2024.01/install/modulefiles/Core") | ||
|
||
stack_intel_ver=os.getenv("stack_intel_ver") or "2021.9.0" | ||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
|
||
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.9.0" | ||
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) | ||
|
||
cmake_ver=os.getenv("cmake_ver") or "3.23.1" | ||
load(pathJoin("cmake", cmake_ver)) | ||
|
||
load("ufs_common") | ||
|
||
nccmp_ver=os.getenv("nccmp_ver") or "1.9.0.1" | ||
load(pathJoin("nccmp", nccmp_ver)) | ||
|
||
setenv("CC", "mpiicc") | ||
setenv("CXX", "mpiicpc") | ||
setenv("FC", "mpiifort") | ||
setenv("CMAKE_Platform", "hercules.intel") | ||
|
||
whatis("Description: UFS build environment") |
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,30 @@ | ||
help([[ | ||
loads UFS Model prerequisites for Hercules/IntelLLVM | ||
]]) | ||
|
||
prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.6.0/envs/upp-addon-env/install/modulefiles/Core") | ||
|
||
stack_intel_ver=os.getenv("stack_intel_ver") or "2021.9.0" | ||
load(pathJoin("stack-intel", stack_intel_ver)) | ||
|
||
stack_impi_ver=os.getenv("stack_impi_ver") or "2021.9.0" | ||
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver)) | ||
|
||
cmake_ver=os.getenv("cmake_ver") or "3.23.1" | ||
load(pathJoin("cmake", cmake_ver)) | ||
|
||
load("ufs_common") | ||
|
||
nccmp_ver=os.getenv("nccmp_ver") or "1.9.0.1" | ||
load(pathJoin("nccmp", nccmp_ver)) | ||
|
||
setenv("I_MPI_CC", "icx") | ||
setenv("I_MPI_CXX", "icpx") | ||
setenv("I_MPI_F90", "ifx") | ||
|
||
setenv("CC", "mpiicc") | ||
setenv("CXX", "mpiicpc") | ||
setenv("FC", "mpiifort") | ||
setenv("CMAKE_Platform", "hercules.intel") | ||
|
||
whatis("Description: UFS build environment") |
Oops, something went wrong.