Skip to content

Commit

Permalink
Fix some build issues at LLNL (AMReX-Codes#1510)
Browse files Browse the repository at this point in the history
  • Loading branch information
maximumcats authored Nov 5, 2020
1 parent 7ca532e commit 9aa75b1
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions Tools/GNUMake/sites/Make.llnl
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,20 @@ ifeq ($(which_computer),$(filter $(which_computer),ray rzmanta))

XLC_ROOT = /usr/tce/packages/xl/xl-beta-2018.06.01/xlC/16.1.1/
XLF_ROOT = /usr/tce/packages/xl/xl-beta-2018.06.01/xlf/16.1.1/
MPIROOT=/usr/tce/packages/spectrum-mpi/ibm/spectrum-mpi-2018.06.01
MPIROOT=/usr/tce/packages/spectrum-mpi/ibm/spectrum-mpi-rolling-release

ifeq ($(USE_MPI),TRUE)
CC = mpicc
CXX = mpicxx
FC = mpifort
F90 = mpifort

LIBRARIES += -lmpi_ibm_mpifh
ifeq ($(USE_GPU_PRAGMA),TRUE)
LIBRARIES += -lmpi_ibm_mpifh
else
LIBRARIES += -lmpi_ibm
override XTRALIBS += -L$(MPIROOT)/lib
endif
endif

ifeq ($(USE_CUDA),TRUE)
Expand Down Expand Up @@ -53,7 +58,7 @@ ifeq ($(which_computer),$(filter $(which_computer),ray rzmanta))
endif

ifeq ($(lowercase_comp),gnu)
override XTRALIBS := -lgfortran
override XTRALIBS += -lgfortran
endif

ifeq ($(lowercase_comp),ibm)
Expand All @@ -74,7 +79,12 @@ ifeq ($(which_computer),$(filter $(which_computer),sierra butte rzansel lassen))
FC = mpifort
F90 = mpifort

LIBRARIES += -lmpi_ibm_mpifh
ifeq ($(USE_GPU_PRAGMA),TRUE)
LIBRARIES += -lmpi_ibm_mpifh
else
LIBRARIES += -lmpi_ibm
override XTRALIBS += -L$(MPIROOT)/lib
endif
endif

ifeq ($(USE_CUDA),TRUE)
Expand Down Expand Up @@ -107,7 +117,8 @@ ifeq ($(which_computer),$(filter $(which_computer),sierra butte rzansel lassen))
endif

ifeq ($(lowercase_comp),gnu)
override XTRALIBS := -lgfortran
# Note we need gcc/8.3.1 at LLNL because gcc/7.3.1 does not contain libquadmath
override XTRALIBS += -lgfortran
endif

ifeq ($(lowercase_comp),ibm)
Expand Down

0 comments on commit 9aa75b1

Please sign in to comment.