Skip to content

Commit

Permalink
Update makefiles for NREL site to remove Peregrine machine and allow …
Browse files Browse the repository at this point in the history
…building with CUDA.
  • Loading branch information
jrood-nrel committed Mar 18, 2020
1 parent e348a5f commit 7edab78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
4 changes: 0 additions & 4 deletions Tools/GNUMake/Make.machines
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,6 @@ ifeq ($(findstring aurora, $(host_name)), aurora)
which_computer := aurora
endif

ifeq ($(findstring peregrine, $(NREL_CLUSTER)), peregrine)
which_site := nrel
which_computer := peregrine
endif
ifeq ($(findstring eagle, $(NREL_CLUSTER)), eagle)
which_site := nrel
which_computer := eagle
Expand Down
26 changes: 9 additions & 17 deletions Tools/GNUMake/sites/Make.nrel
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
ifneq ($(which_computer),$(filter $(which_computer),peregrine eagle rhodes))
ifneq ($(which_computer),$(filter $(which_computer),eagle rhodes))
$(error Unknown NREL computer, $(which_computer))
endif

ifeq ($(which_computer), peregrine)
# Use automatic CPU dispatch for max
# vectorization with Intel compilers
# since Peregrine has haswell and
# ivybridge nodes.
ifeq ($(COMP), intel)
CXXFLAGS += -axCORE-AVX2,CORE-AVX-I
CFLAGS += -axCORE-AVX2,CORE-AVX-I
FFLAGS += -axCORE-AVX2,CORE-AVX-I
F90FLAGS += -axCORE-AVX2,CORE-AVX-I
endif
else ifeq ($(which_computer), eagle)
ifeq ($(which_computer), eagle)
# Eagle is homogeneous at the moment
# so we can be very specific about arch.
# We are not accomodating older compilers
Expand All @@ -24,10 +13,13 @@ else ifeq ($(which_computer), eagle)
FFLAGS += -xSKYLAKE-AVX512
F90FLAGS += -xSKYLAKE-AVX512
else ifeq ($(COMP), $(filter $(COMP),gnu gcc llvm))
CXXFLAGS += -march=skylake-avx512 -mtune=skylake-avx512
CFLAGS += -march=skylake-avx512 -mtune=skylake-avx512
FFLAGS += -march=skylake-avx512 -mtune=skylake-avx512
F90FLAGS += -march=skylake-avx512 -mtune=skylake-avx512
# CUDA fails with "machine" redefinition error with these flags
ifneq ($(USE_CUDA), TRUE)
CXXFLAGS += -march=skylake-avx512 -mtune=skylake-avx512
CFLAGS += -march=skylake-avx512 -mtune=skylake-avx512
FFLAGS += -march=skylake-avx512 -mtune=skylake-avx512
F90FLAGS += -march=skylake-avx512 -mtune=skylake-avx512
endif
endif
else ifeq ($(which_computer), rhodes)
# Rhodes is dedicated single node machine for testing
Expand Down

0 comments on commit 7edab78

Please sign in to comment.