From 41e6734ebc643511c2eab6f3fced0f56261d4807 Mon Sep 17 00:00:00 2001 From: Chris Blanton Date: Tue, 2 Jul 2024 15:18:59 -0400 Subject: [PATCH] #302 Add ncrc6 env.sh to load C6 modules --- site-configs/ncrc6/config.site | 38 +++++++++++++++++++++++ site-configs/ncrc6/env.sh | 56 ++++++++++++++++++++++++++++++++++ 2 files changed, 94 insertions(+) create mode 100644 site-configs/ncrc6/config.site create mode 100755 site-configs/ncrc6/env.sh diff --git a/site-configs/ncrc6/config.site b/site-configs/ncrc6/config.site new file mode 100644 index 00000000..db0b6b96 --- /dev/null +++ b/site-configs/ncrc6/config.site @@ -0,0 +1,38 @@ +#*********************************************************************** +# GNU Lesser General Public License +# +# This file is part of the GFDL FRE NetCDF tools package (FRE-NCTools). +# +# FRE-NCTools is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or (at +# your option) any later version. +# +# FRE-NCTools is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with FRE-NCTools (LICENSE.md). If not, see +# . +#*********************************************************************** +# Default site configuration for NCRC Gaea platforms +# +# configure options +test -z "$with_mpi" && with_mpi=yes +# Standard prefix location for FRE distribution +test "$prefix" = NONE && prefix=/ncrc/home2/fms/local/opt/fre-nctools/${PACKAGE_VERSION}/ncrc6 + +# Compilers +test -z "$CC" && CC=cc +test -z "$FC" && FC=ftn + +# Compile/Link flags +test -z "$CFLAGS" && CFLAGS="-O2" +test -z "$FCFLAGS" && FCFLAGS="-O2" +test -z "$LIBS" && LIBS="" +test -z "$NETCDF_LIBS" && NETCDF_LIBS="" +test -z "$NETCDF_LDFLAGS" && NETCDF_LDFLAGS="" +test -z "$NETCDF_FCLIBS" && NETCDF_FCLIBS="" +test -z "$NETCDF_FCLDFLAGS" && NETCDF_FCLDFLAGS="" diff --git a/site-configs/ncrc6/env.sh b/site-configs/ncrc6/env.sh new file mode 100755 index 00000000..1c88c125 --- /dev/null +++ b/site-configs/ncrc6/env.sh @@ -0,0 +1,56 @@ +#!/bin/sh +#*********************************************************************** +# GNU Lesser General Public License +# +# This file is part of the GFDL FRE NetCDF tools package (FRE-NCTools). +# +# FRE-NCTools is free software: you can redistribute it and/or modify it under +# the terms of the GNU Lesser General Public License as published by +# the Free Software Foundation, either version 3 of the License, or (at +# your option) any later version. +# +# FRE-NCTools is distributed in the hope that it will be useful, but WITHOUT +# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +# for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with FRE-NCTools (LICENSE.md). If not, see +# . +#*********************************************************************** +# +# Copyright (c) 2021 - Seth Underwood (@underwoo) +# +# This script configures the environment using Environment modules +# for building FRE-NCtools. This script can be run with the `eval` +# command to modify the environment. Syntax is similar to the +# syntax used in modulefiles. + +#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +# DO NOT CHANGE THIS LINE +. $( dirname $( dirname $(readlink -f $0) ) )/env_functions.sh +#!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +module rm PrgEnv-pgi PrgEnv-intel PrgEnv-gnu PrgEnv-cray +module load PrgEnv-gnu/8.5.0 +module load gcc-native/12.3 +module load cray-hdf5/1.12.2.11 +module load cray-netcdf/4.9.0.9 +module load nccmp + +# Add bats to PATH +# Needed for testing +module append-path PATH /ncrc/home2/Seth.Underwood/opt/bats/0.4.0/bin + +# ********************************************************************** +# Set environment variablesSetup and Load the Modules +# ********************************************************************** +setenv MPICH_UNEX_BUFFER_SIZE 256m +setenv MPICH_MAX_SHORT_MSG_SIZE 64000 +setenv MPICH_PTL_UNEX_EVENTS 160k +setenv KMP_STACKSIZE 2g +setenv F_UFMTENDIAN big +setenv NC_BLKSZ 64K + +# Set CONFIG_SITE to the correct config.site file for the system +setenv CONFIG_SITE $( dirname $(readlink -f $0) )/config.site