-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addition of a gnu lua file for hercules (#1341)
- fixes #1340 I had to comment out `da-utils` in the bundle, but other than that the system builds.
- Loading branch information
1 parent
936e6fa
commit 93e7ec6
Showing
1 changed file
with
93 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,93 @@ | ||
help([[ | ||
Load environment for running the GDAS application with gnu compilers and MPI. | ||
]]) | ||
|
||
local pkgName = myModuleName() | ||
local pkgVersion = myModuleVersion() | ||
local pkgNameVer = myModuleFullName() | ||
|
||
prepend_path("MODULEPATH", '/work/noaa/epic/role-epic/spack-stack/hercules/modulefiles') | ||
prepend_path("MODULEPATH", '/work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-1.7.0/envs/ue-gcc/install/modulefiles/Core') | ||
prepend_path("MODULEPATH", '/work2/noaa/da/python/opt/modulefiles/stack') | ||
|
||
|
||
---- below two lines get us access to the spack-stack modules | ||
load("stack-gcc/12.2.0") | ||
load("stack-openmpi/4.1.6") | ||
|
||
load("cmake/3.23.1") | ||
load("curl/8.4.0") | ||
load("zlib/1.2.13") | ||
load("git/2.31.1") | ||
--load("pkg-config/0.27.1") | ||
load("hdf5/1.14.3") | ||
load("parallel-netcdf/1.12.3") | ||
load("netcdf-c/4.9.2") | ||
load("nccmp/1.9.0.1") | ||
load("netcdf-fortran/4.6.1") | ||
load("nco/5.1.6") | ||
load("parallelio/2.6.2") | ||
load("wget/1.21.1") | ||
load("boost/1.84.0") | ||
load("bufr/12.0.1") | ||
load("git-lfs/3.1.2") | ||
load("ecbuild/3.7.2") | ||
load("openjpeg/2.3.1") | ||
load("eccodes/2.33.0") | ||
load("eigen/3.4.0") | ||
load("openblas/0.3.24") | ||
load("eckit/1.24.5") | ||
load("fftw/3.3.10") | ||
load("fckit/0.11.0") | ||
load("fiat/1.2.0") | ||
load("ectrans/1.2.0") | ||
load("fms/2023.04") | ||
load("esmf/8.6.1") | ||
load("atlas/0.36.0") | ||
load("sp/2.5.0") | ||
load("gsl-lite/0.37.0") | ||
load("libjpeg/2.1.0") | ||
load("krb5/1.20.1") | ||
load("libtirpc/1.3.3") | ||
load("hdf/4.2.15") | ||
load("jedi-cmake/1.4.0") | ||
load("libpng/1.6.37") | ||
load("libxt/1.3.0") | ||
load("libxmu/1.1.4") | ||
load("libxpm/3.5.17") | ||
load("libxaw/1.0.15") | ||
load("udunits/2.2.28") | ||
load("ncview/2.1.9") | ||
load("netcdf-cxx4/4.3.1") | ||
load("py-pybind11/2.11.0") | ||
--load("crtm/v2.4_jedi") | ||
load("contrib/0.1") | ||
load("noaatools/3.1") | ||
load("rocoto/1.3.7") | ||
|
||
load("hpc/1.2.0") | ||
unload("python/3.10.13") | ||
unload("py-numpy/1.22.3") | ||
load("miniconda3/4.6.14") | ||
load("gdasapp/1.0.0") | ||
-- below is a hack because of cmake finding the wrong python... | ||
setenv("CONDA_PREFIX", "/work2/noaa/da/python/opt/core/miniconda3/4.6.14/envs/gdasapp/") | ||
|
||
setenv("CC","mpicc") | ||
setenv("FC","mpifort") | ||
setenv("CXX","mpicxx") | ||
local mpiexec = '/opt/slurm/bin/srun' | ||
local mpinproc = '-n' | ||
setenv('MPIEXEC_EXEC', mpiexec) | ||
setenv('MPIEXEC_NPROC', mpinproc) | ||
|
||
setenv("CRTM_FIX","/work2/noaa/da/role-da/GDASApp/fix/crtm/2.4.0") | ||
setenv("GDASAPP_TESTDATA","/work2/noaa/da/role-da/GDASApp/testdata") | ||
setenv("GDASAPP_UNIT_TEST_DATA_PATH", "/work2/noaa/da/role-da/GDASApp/unittestdata") | ||
|
||
execute{cmd="ulimit -s unlimited",modeA={"load"}} | ||
|
||
whatis("Name: ".. pkgName) | ||
whatis("Version: ".. pkgVersion) | ||
whatis("Category: GDASApp") | ||
whatis("Description: Load all libraries needed for GDASApp") |