Skip to content

Commit 7d6d8fb

Browse files
enable acorn build using spack-stack/1.6.0 (#1350)
1 parent 43cb9b7 commit 7d6d8fb

File tree

2 files changed

+73
-9
lines changed

2 files changed

+73
-9
lines changed

build.sh

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ while getopts "p:t:c:hvdfa" opt; do
7171
done
7272

7373
case ${BUILD_TARGET} in
74-
hera | orion | hercules | wcoss2 | noaacloud | gaea | gaeac6 )
74+
hera | orion | hercules | wcoss2 | noaacloud | gaea | gaeac6 | acorn )
7575
echo "Building GDASApp on $BUILD_TARGET"
7676
source $dir_root/ush/module-setup.sh
7777
module use $dir_root/modulefiles
@@ -103,14 +103,12 @@ WORKFLOW_BUILD=${WORKFLOW_BUILD:-"OFF"}
103103
CMAKE_OPTS+=" -DWORKFLOW_TESTS=${WORKFLOW_BUILD}"
104104

105105
# JCSDA changed test data things, need to make a dummy CRTM directory
106-
if [[ $BUILD_TARGET == 'hera' ]]; then
107-
if [ -d "$dir_root/bundle/fix/test-data-release/" ]; then rm -rf $dir_root/bundle/fix/test-data-release/; fi
108-
if [ -d "$dir_root/bundle/test-data-release/" ]; then rm -rf $dir_root/bundle/test-data-release/; fi
109-
mkdir -p $dir_root/bundle/fix/test-data-release/
110-
mkdir -p $dir_root/bundle/test-data-release/
111-
ln -sf $GDASAPP_TESTDATA/crtm $dir_root/bundle/fix/test-data-release/crtm
112-
ln -sf $GDASAPP_TESTDATA/crtm $dir_root/bundle/test-data-release/crtm
113-
fi
106+
if [ -d "$dir_root/bundle/fix/test-data-release/" ]; then rm -rf $dir_root/bundle/fix/test-data-release/; fi
107+
if [ -d "$dir_root/bundle/test-data-release/" ]; then rm -rf $dir_root/bundle/test-data-release/; fi
108+
mkdir -p $dir_root/bundle/fix/test-data-release/
109+
mkdir -p $dir_root/bundle/test-data-release/
110+
ln -sf $GDASAPP_TESTDATA/crtm $dir_root/bundle/fix/test-data-release/crtm
111+
ln -sf $GDASAPP_TESTDATA/crtm $dir_root/bundle/test-data-release/crtm
114112

115113
# Configure
116114
echo "Configuring ..."

modulefiles/GDAS/acorn.intel.lua

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
help([[
2+
Load environment for running the GDAS application with Intel compilers and MPI.
3+
]])
4+
5+
local pkgName = myModuleName()
6+
local pkgVersion = myModuleVersion()
7+
local pkgNameVer = myModuleFullName()
8+
9+
prepend_path("MODULEPATH", "/lfs/h1/emc/nceplibs/noscrub/spack-stack/spack-stack-1.6.0/envs/unified-env/install/modulefiles/Core")
10+
11+
load("PrgEnv-intel/8.2.0")
12+
load("cmake/3.20.2")
13+
load("craype/2.7.17")
14+
load("cray-pals/1.2.2")
15+
load("git/2.35.3")
16+
load("stack-intel/19.1.3.304")
17+
load("stack-cray-mpich/8.1.9")
18+
load("hdf5/1.14.0")
19+
load("parallel-netcdf/1.12.2")
20+
load("netcdf-c/4.9.2")
21+
load("netcdf-fortran/4.6.1")
22+
load("netcdf-cxx4/4.3.1")
23+
load("udunits/2.2.28")
24+
load("eigen/3.4.0")
25+
load("boost/1.79.0")
26+
load("gsl-lite/v0.40.0")
27+
load("sp/2.5.0")
28+
load("python/3.10.13")
29+
load("ecbuild/3.7.2")
30+
load("qhull/2020.2")
31+
load("eckit/1.24.4")
32+
load("fckit/0.11.0")
33+
load("atlas/0.35.0")
34+
load("nccmp/1.9.0.1")
35+
load("nco/5.0.6")
36+
load("gsl/2.7")
37+
load("prod_util/2.0.14")
38+
load("bufr/12.0.1")
39+
load("fms-C/2023.04")
40+
load("esmf-C/8.6.0")
41+
42+
unload("python/3.10.13")
43+
load("python/3.8.6")
44+
45+
-- hack for pybind11
46+
setenv("pybind11_ROOT", "/apps/spack/python/3.8.6/intel/19.1.3.304/pjn2nzkjvqgmjw4hmyz43v5x4jbxjzpk/lib/python3.8/site-packages/pybind11/share/cmake/pybind11")
47+
48+
-- hack for git-lfs
49+
prepend_path("PATH", "/apps/spack/git-lfs/2.11.0/gcc/11.2.0/m6b6nl5kfqngfteqbggydc7kflxere3s/bin")
50+
51+
-- hack for FMS
52+
setenv("fms_ROOT", "/apps/prod/hpc-stack/i-19.1.3.304__m-8.1.12__h-1.14.0__n-4.9.2__p-2.5.10__e-8.6.0pnetcdf/intel-19.1.3.304/cray-mpich-8.1.12/fms/2023.04")
53+
54+
local mpiexec = '/pe/intel/compilers_and_libraries_2020.4.304/linux/mpi/intel64/bin/mpirun'
55+
local mpinproc = '-n'
56+
setenv('MPIEXEC_EXEC', mpiexec)
57+
setenv('MPIEXEC_NPROC', mpinproc)
58+
59+
setenv("CRTM_FIX","/lfs/h2/emc/da/noscrub/emc.da/GDASApp/fix/crtm/2.4.0")
60+
setenv("GDASAPP_TESTDATA","/lfs/h2/emc/da/noscrub/emc.da/GDASApp/testdata")
61+
setenv("GDASAPP_UNIT_TEST_DATA_PATH", "/lfs/h2/emc/da/noscrub/emc.da/GDASApp/unittestdata")
62+
63+
whatis("Name: ".. pkgName)
64+
whatis("Version: ".. pkgVersion)
65+
whatis("Category: GDASApp")
66+
whatis("Description: Load all libraries needed for GDASApp")

0 commit comments

Comments
 (0)