-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[develop] Add build_hera_gnu.lua file. Completes #476.
- Loading branch information
1 parent
5df2b73
commit e76a718
Showing
1 changed file
with
30 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
help([[ | ||
This module loads libraries for building the UFS SRW App on | ||
the NOAA RDHPC machine Hera using GNU 9.2.0 | ||
]]) | ||
|
||
whatis([===[Loads libraries needed for building the UFS SRW App on Hera using GNU 9.2.0 ]===]) | ||
|
||
prepend_path("MODULEPATH","/contrib/sutils/modulefiles") | ||
load("sutils") | ||
|
||
load(pathJoin("cmake", os.getenv("cmake_ver") or "3.20.1")) | ||
|
||
gnu_ver=os.getenv("gnu_ver") or "9.2.0" | ||
load(pathJoin("gnu", gnu_ver)) | ||
|
||
prepend_path("MODULEPATH", "/scratch1/NCEPDEV/nems/role.epic/hpc-stack/libs/gnu-9.2/modulefiles/stack") | ||
|
||
load(pathJoin("hpc", os.getenv("hpc_ver") or "1.2.0")) | ||
load(pathJoin("hpc-gnu", os.getenv("hpc-gnu_ver") or "9.2")) | ||
load(pathJoin("hpc-mpich", os.getenv("hpc-mpich_ver") or "3.3.2")) | ||
|
||
load("srw_common") | ||
|
||
load(pathJoin("nccmp", os.getenv("nccmp_ver") or "1.8.9")) | ||
load(pathJoin("nco", os.getenv("nco_ver") or "4.9.3")) | ||
|
||
setenv("CMAKE_C_COMPILER","mpicc") | ||
setenv("CMAKE_CXX_COMPILER","mpicxx") | ||
setenv("CMAKE_Fortran_COMPILER","mpif90") | ||
setenv("CMAKE_Platform","hera.gnu") |