Skip to content

Commit

Permalink
Add modulefiles for Hercules (#760)
Browse files Browse the repository at this point in the history
* Delete machines not in operation

* Add modulefiles/hercules.lua.

---------

Co-authored-by: Wen Meng <wmeng@hercules-login-4.hpc.msstate.edu>
  • Loading branch information
WenMeng-NOAA and Wen Meng authored Aug 10, 2023
1 parent c6caa7d commit 520cc23
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 34 deletions.
72 changes: 72 additions & 0 deletions modulefiles/hercules.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
help([[
loads post prerequisites for Hercules/Intel
]])

prepend_path("MODULEPATH", "/work/noaa/epic/role-epic/spack-stack/hercules/spack-stack-dev-20230717/envs/unified-env/install/modulefiles/Core")

intel_ver=os.getenv("intel_ver") or "2021.9.0"
load(pathJoin("stack-intel", intel_ver))

mpi_ver=os.getenv("mpi_ver") or "2021.9.0"
load(pathJoin("stack-intel-oneapi-mpi", mpi_ver))

cmake_ver=os.getenv("cmake_ver") or "3.23.1"
load(pathJoin("cmake", cmake_ver))

jasper_ver=os.getenv("jasper_ver") or "2.0.32"
load(pathJoin("jasper", jasper_ver))

zlib_ver=os.getenv("zlib_ver") or "1.2.13"
load(pathJoin("zlib", zlib_ver))

libpng_ver=os.getenv("libpng_ver") or "1.6.37"
load(pathJoin("libpng", libpng_ver))

hdf5_ver=os.getenv("hdf5_ver") or "1.14.1-2"
load(pathJoin("hdf5", hdf5_ver))

netcdf_c_ver=os.getenv("netcdf_c_ver") or "4.9.2"
load(pathJoin("netcdf-c", netcdf_c_ver))

netcdf_fortran_ver=os.getenv("netcdf_fortran_ver") or "4.6.0"
load(pathJoin("netcdf-fortran", netcdf_fortran_ver))

bacio_ver=os.getenv("bacio_ver") or "2.4.1"
load(pathJoin("bacio", bacio_ver))

crtm_ver=os.getenv("crtm_ver") or "2.4.0"
load(pathJoin("crtm", crtm_ver))

g2_ver=os.getenv("g2_ver") or "3.4.5"
load(pathJoin("g2", g2_ver))

g2tmpl_ver=os.getenv("g2tmpl_ver") or "1.10.2"
load(pathJoin("g2tmpl", g2tmpl_ver))

ip_ver=os.getenv("ip_ver") or "3.3.3"
load(pathJoin("ip", ip_ver))

sp_ver=os.getenv("sp_ver") or "2.3.3"
load(pathJoin("sp", sp_ver))

w3emc_ver=os.getenv("w3emc_ver") or "2.9.2"
load(pathJoin("w3emc", w3emc_ver))

nemsio_ver_ver=os.getenv("nemsio_ver") or "2.5.4"
load(pathJoin("nemsio", nemsio_ver))

sigio_ver=os.getenv("sigio_ver") or "2.3.2"
load(pathJoin("sigio", sigio_ver))

sfcio_ver=os.getenv("sfcio_ver") or "1.4.1"
load(pathJoin("sfcio", sfcio_ver))

wrf_io_ver=os.getenv("wrf_io_ver") or "1.2.0"
load(pathJoin("wrf-io", wrf_io_ver))

setenv("CC", "mpiicc")
setenv("CXX", "mpiicpc")
setenv("FC", "mpiifort")
setenv("CMAKE_Platform", "hercules.intel")

whatis("Description: POST build environment")
39 changes: 5 additions & 34 deletions tests/detect_machine.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,40 +2,6 @@

case $(hostname -f) in

llogin1) MACHINE_ID=wcoss_cray ;; ### luna
llogin2) MACHINE_ID=wcoss_cray ;; ### luna
llogin3) MACHINE_ID=wcoss_cray ;; ### luna

slogin1) MACHINE_ID=wcoss_cray ;; ### surge
slogin2) MACHINE_ID=wcoss_cray ;; ### surge
slogin3) MACHINE_ID=wcoss_cray ;; ### surge

v71a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus
v71a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus
v71a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus
v72a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus
v72a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus
v72a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus
v109a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus
v109a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus
v109a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus
v110a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus
v110a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus
v110a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### venus

m71a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars
m71a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars
m71a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars
m72a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars
m72a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars
m72a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars
m109a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars
m110a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars
m109a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars
m110a1.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars
m110a2.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars
m110a3.ncep.noaa.gov) MACHINE_ID=wcoss_dell_p3 ;; ### mars

alogin01.acorn.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2_a ;; ### acorn
alogin02.acorn.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2_a ;; ### acorn
adecflow01.acorn.wcoss2.ncep.noaa.gov) MACHINE_ID=wcoss2 ;; ### acorn
Expand Down Expand Up @@ -105,6 +71,11 @@ case $(hostname -f) in
Orion-login-3.HPC.MsState.Edu) MACHINE_ID=orion ;; ### orion3
Orion-login-4.HPC.MsState.Edu) MACHINE_ID=orion ;; ### orion4

Hercules-login-1.HPC.MsState.Edu) MACHINE_ID=hercules ;; ### hercules1
Hercules-login-2.HPC.MsState.Edu) MACHINE_ID=hercules ;; ### hercules2
Hercules-login-3.HPC.MsState.Edu) MACHINE_ID=hercules ;; ### hercules3
Hercules-login-4.HPC.MsState.Edu) MACHINE_ID=hercules ;; ### hercules4

cheyenne1.cheyenne.ucar.edu) MACHINE_ID=cheyenne ;; ### cheyenne1
cheyenne2.cheyenne.ucar.edu) MACHINE_ID=cheyenne ;; ### cheyenne2
cheyenne3.cheyenne.ucar.edu) MACHINE_ID=cheyenne ;; ### cheyenne3
Expand Down

0 comments on commit 520cc23

Please sign in to comment.