Skip to content

Commit

Permalink
Update UPP modulefile on S4 with spack-stack 1.5.0 (NOAA-EMC#828)
Browse files Browse the repository at this point in the history
* Rename s4 to s4.lua, update to use spack-stack on s4

* Update modulefiles for s4 to make it uniform with other platform

---------

Co-authored-by: Innocent Souopgui <[email protected]>
  • Loading branch information
souopgui and Innocent Souopgui authored Dec 1, 2023
1 parent b469e27 commit 987c7f2
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 33 deletions.
33 changes: 0 additions & 33 deletions modulefiles/s4

This file was deleted.

24 changes: 24 additions & 0 deletions modulefiles/s4.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
-- ---------------------------------------------------------------------------
-- David Huber 06/2021, Set up config. with the hpc-stack NCEPLIBS.
-- Innocent Souopgui 11/2023, Update to use spack-stack
-- ---------------------------------------------------------------------------


prepend_path("MODULEPATH", "/data/prod/jedi/spack-stack/spack-stack-1.5.0/envs/unified-env/install/modulefiles/Core")

local stack_intel_ver=os.getenv("stack_intel_ver") or "2021.5.0"
local stack_impi_ver=os.getenv("stack_impi_ver") or "2021.5.0"
local cmake_ver=os.getenv("cmake_ver") or "3.23.1"

load(pathJoin("stack-intel", stack_intel_ver))
load(pathJoin("stack-intel-oneapi-mpi", stack_impi_ver))
load(pathJoin("cmake", cmake_ver))

load("upp_common")

setenv("CC","mpiicc")
setenv("CXX","mpiicpc")
setenv("FC","mpiifort")

whatis("Description: UPP build environment")

0 comments on commit 987c7f2

Please sign in to comment.