---
# System prepended metadata

title: Build hpc-stack
tags: [Software]

---

# Build hpc-stack

## step 1. get hpc-stack
```
$ git clone https://github.com/NOAA-EMC/hpc-stack.git
```
## step 2. setup config
```
$ cd hpc-stack/
$ PREFIX="/path/to/your/hpc_stack"
$ CONFIG="/path/to/your/hpc_stack/config/config_linux_twnia3.sh"
$ STACK="/path/to/your/hpc_stack/stack/stack_ufs_weather_ci.yaml"
```
## step 3. (should be run only once)
```
$ ./setup_modules.sh -p ${PREFIX} -c ${CONFIG}
```
## step 4. build stack
```
$ ./build_stack.sh -p ${PREFIX} -c ${CONFIG} -y ${STACK} -m $@ | tee log.build_stack.$(date +'%Y%m%d%H%M')
```

## step 5. load hpc-stack
```
$ module use /users/xb80/opt/hpc_stack/modulefiles/core 
$ module av
--------------------- /users/xb80/opt/hpc_stack/modulefiles/core ---------------------
   cmakemodules/v1.2.0    esma_cmake/v3.4.3     hpc-python/3.6.8
   ecbuild/ecmwf-3.6.1    hpc-fujitsu/1.2.33
$ module load hpc-fujitsu/1.2.33
$ module load hpc-fujitsu/1.2.33
$ module load hpc-fujitsu-mpi/1.2.33
$ module av
---- /users/xb80/opt/hpc_stack/modulefiles/mpi/fujitsu/1.2.33/fujitsu-mpi/1.2.33 -----
   esmf/cwb_8.3.0_b258             (D)    ncio/1.0.0
   esmf/cwb_8.3.0                         nemsio/2.5.2
   esmf/cwb_8.4.0                         nemsiogfs/2.5.3
   esmf/cwb_8.5.0b01                      netcdf/4.7.4    (D)
   fms/2022.04                            pio/2.5.3
   hdf5/1.10.6                     (D)    upp/10.0.9
   mapl/2.7.3-esmf-cwb_8.3.0              upp/11.0.0      (D)
   mapl/2.22.0-esmf-cwb_8.3.0_b258 (D)    wrf_io/1.2.0
   mapl/2.34.3-esmf-cwb_8.4.0

----------- /users/xb80/opt/hpc_stack/modulefiles/compiler/fujitsu/1.2.33 ------------
   bacio/2.4.1               hdf5/1.10.6                   sfcio/1.4.1
   bufr/11.5.0               hpc-fujitsu-mpi/1.2.33 (L)    sigio/2.3.2
   crtm/2.3.0                ip/3.3.3                      sp/2.3.3
   g2/3.4.2                  ip2/1.1.2                     w3emc/2.9.2
   g2c/1.6.2                 jasper/2.0.25                 w3nco/2.4.1
   g2tmpl/1.9.1              jpeg/9.1.0                    wgrib2/2.0.8
   gfsio/1.4.1               landsfcutil/2.4.1             yafyaml/v0.5.1 (D)
   gftl-shared/v1.3.0        libpng/1.6.35                 zlib/1.2.11
   gftl-shared/v1.5.1 (D)    netcdf/4.7.4
   grib_util/1.2.2           prod_util/1.2.2

```