# (c) 2012-2015 Los Alamos National Security, LLC. All rights reserved.
# Open MPI configuration for Cray XC v2.x GNU compiler,
# Lustre

if test "$CC" = "cc" ; then
   echo "ERROR: Open MPI should not be compiled with Cray's wrapper compilers (cc/CC/ftn)"
   exit 1
fi

if test "$enable_debug" = "yes"; then
   source debug-common
else
   source optimized-common
fi

# enable and Lustre in romio
with_io_romio_flags="--with-file-system=ufs+nfs+lustre CFLAGS=-I/opt/cray/lustre-cray_ari_s/default/include"

# enable Lustre in OMPI I/O
with_lustre=/opt/cray/lustre-cray_ari_s/default