Skip to content

Commit b864f33

Browse files
committed
Improve Intel parallel build functionality
The parallel build may still fail due to slow file system flushes on the Fortran modulefiles. However, this greatly improves the parallel builds when using Intel.
1 parent 1520b39 commit b864f33

File tree

31 files changed

+67
-33
lines changed

31 files changed

+67
-33
lines changed

affinity/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libfms_affinity.la

amip_interp/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libamip_interp.la

astronomy/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libastronomy.la

axis_utils/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libaxis_utils.la

block_control/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libblock_control.la

column_diagnostics/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libcolumn_diagnostics.la

configure.ac

+8
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@ AC_REQUIRE_AUX_FILE([tap-driver.sh])
4646
LT_PREREQ([2.4])
4747
LT_INIT()
4848

49+
# If building on a Cray PE system, check if CRAYPE_LINK_TYPE is 'static'. If it
50+
# is, then disable building shared libraries. Note, the user can still override
51+
# this by using --enable-shared when running the configure script.
52+
AS_IF([test x${CRAYPE_VERSION:+yes} = "xyes"],[
53+
AS_IF([test x${CRAYPE_LINK_TYP} = "xstatic"],
54+
[AC_DISABLE_SHARED])])
55+
56+
4957
# Process user optons.
5058
AC_ARG_ENABLE([mixed-mode],
5159
[AS_HELP_STRING([--enable-mixed-mode],

constants/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libconstants.la

coupler/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience libraries.
2930
noinst_LTLIBRARIES = libcoupler.la

data_override/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libdata_override.la

diag_integral/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libdiag_integral.la

diag_manager/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience libraries.
2930
noinst_LTLIBRARIES = libdiag_manager.la

drifters/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@
2626
.NOTPARALLEL:
2727

2828
# Include .h and .mod files.
29-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
29+
AM_CPPFLAGS = -I$(top_srcdir)/include
30+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
3031

3132

3233
# Build these uninstalled convenience libraries.

exchange/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience libraries.
2930
noinst_LTLIBRARIES = libexchange.la

field_manager/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience libraries.
2930
noinst_LTLIBRARIES = libfield_manager.la

fms/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience libraries.
2930
noinst_LTLIBRARIES = libfms.la

fms2_io/Makefile.am

+2-4
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,9 @@
1919

2020
# This is an automake file for the fms2_io directory of the FMS package.
2121

22-
# Descend into include directory.
23-
#SUBDIRS = include
24-
2522
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(top_srcdir)/fms2_io/include -I$(MODDIR)
23+
AM_CPPFLAGS = -I$(top_srcdir)/fms2_io/include -I$(top_srcdir)/include
24+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2725

2826
# Build these uninstalled convenience libraries.
2927
noinst_LTLIBRARIES = libfms2_io.la

horiz_interp/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience libraries.
2930
noinst_LTLIBRARIES = libhoriz_interp.la

interpolator/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libinterpolator.la

memutils/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222
# Copyright 2019-2020, GFDL, Ed Hartnett, Seth Underwood
2323

2424
# Include .h and .mod files.
25-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
25+
AM_CPPFLAGS = -I$(top_srcdir)/include
26+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2627

2728
# The convenience library depends on its source.
2829
noinst_LTLIBRARIES = libmemutils.la

monin_obukhov/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@
2222

2323
# Ed Hartnett 2/22/19
2424

25-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
25+
AM_CPPFLAGS = -I$(top_srcdir)/include
26+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2627

2728
noinst_LTLIBRARIES = libmonin_obukhov.la
2829

mosaic/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience libraries.
2930

mpp/Makefile.am

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424

2525
# Include .h and .mod files.
2626
AM_CPPFLAGS = \
27-
-I$(MODDIR) \
2827
-I$(top_srcdir)/include \
2928
-I$(top_srcdir)/mpp/include
29+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
3030

3131
noinst_LTLIBRARIES = libmpp.la
3232

platform/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libplatform.la

random_numbers/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/28/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience library.
2930
noinst_LTLIBRARIES = librandom_numbers.la

sat_vapor_pres/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/28/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience library.
2930
noinst_LTLIBRARIES = libsat_vapor_pres.la

time_interp/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience libraries.
2930
noinst_LTLIBRARIES = libtime_interp.la

time_manager/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience libraries.
2930
noinst_LTLIBRARIES = libtime_manager.la

topography/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build these uninstalled convenience libraries.
2930
noinst_LTLIBRARIES = libtopography.la

tracer_manager/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libtracer_manager.la

tridiagonal/Makefile.am

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
# Ed Hartnett 2/22/19
2424

2525
# Include .h and .mod files.
26-
AM_CPPFLAGS = -I$(MODDIR) -I$(top_srcdir)/include
26+
AM_CPPFLAGS = -I$(top_srcdir)/include
27+
AM_FCFLAGS = $(FC_MODINC). $(FC_MODOUT)$(MODDIR)
2728

2829
# Build this uninstalled convenience library.
2930
noinst_LTLIBRARIES = libtridiagonal.la

0 commit comments

Comments
 (0)