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 Frontier to GNU Make #2879

Merged
merged 1 commit into from
Jul 20, 2022
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
5 changes: 5 additions & 0 deletions Tools/GNUMake/Make.machines
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,11 @@ ifdef OLCF_ROCM_ROOT
which_site := olcf
which_computer := crusher
endif

ifeq ($(findstring frontier, $(host_name)), frontier)
which_site := olcf
which_computer := frontier
endif
endif

ifeq ($(findstring theta, $(host_name)), theta)
Expand Down
22 changes: 21 additions & 1 deletion Tools/GNUMake/sites/Make.olcf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# For Summit et al. at OLCF
#

OLCF_MACHINES := summit ascent spock crusher
OLCF_MACHINES := summit ascent spock crusher frontier

ifneq ($(which_computer), $(findstring $(which_computer), $(OLCF_MACHINES)))
$(error Unknown OLCF computer, $(which_computer))
Expand Down Expand Up @@ -84,3 +84,23 @@ ifeq ($(which_computer),crusher)
endif
endif
endif

ifeq ($(which_computer),frontier)
ifeq ($(USE_HIP),TRUE)
# MI250X
AMD_ARCH=gfx90a
endif

ifeq ($(USE_MPI),TRUE)
includes += $(shell CC --cray-print-opts=cflags)
ifneq ($(BL_NO_FORT),TRUE)
LIBRARIES += $(shell ftn --cray-print-opts=libs)
else
LIBRARIES += $(shell CC --cray-print-opts=libs)
endif
# for gpu aware mpi
ifeq ($(USE_HIP),TRUE)
LIBRARIES += $(PE_MPICH_GTL_DIR_amd_gfx90a) -lmpi_gtl_hsa
endif
endif
endif