Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ncrc6 env.sh to load C6 modules #303

Merged
merged 1 commit into from
Jul 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions site-configs/ncrc6/config.site
Original file line number Diff line number Diff line change
@@ -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
# <http://www.gnu.org/licenses/>.
#***********************************************************************
# 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=""
56 changes: 56 additions & 0 deletions site-configs/ncrc6/env.sh
Original file line number Diff line number Diff line change
@@ -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
# <http://www.gnu.org/licenses/>.
#***********************************************************************
#
# 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
Loading