diff --git a/Tools/GNUMake/Make.machines b/Tools/GNUMake/Make.machines index 6903ba05125..d68e594d80f 100644 --- a/Tools/GNUMake/Make.machines +++ b/Tools/GNUMake/Make.machines @@ -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) diff --git a/Tools/GNUMake/sites/Make.olcf b/Tools/GNUMake/sites/Make.olcf index fcccfc8de08..69f557786df 100644 --- a/Tools/GNUMake/sites/Make.olcf +++ b/Tools/GNUMake/sites/Make.olcf @@ -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)) @@ -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