HOSTS: Add support for NVIDIA HPC compilers.

Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
Grzegorz Kowal 2021-11-01 11:33:50 -03:00
parent 2098661d3c
commit e352c2cb0e

View File

@ -37,6 +37,38 @@ endif
endif
#-------------------------------------------------------------------------------
#
# NVIDIA Fortran compiler
#
ifeq ($(COMPILER), NVIDIA)
# compiler and linker setup
#
ifeq ($(MPI),Y)
FC = mpifort
else
FC = nvfortran
endif
LD = $(FC)
# compiler and linker flags
#
ifeq ($(DEBUG),Y)
FFLAGS = -O -g -DDEBUG
else
FFLAGS = -fast -O3
endif
ifeq ($(PROFILE),Y)
FFLAGS += -Mprof=dwarf
endif
LDFLAGS = $(FFLAGS)
ifeq ($(STATIC),Y)
LDFLAGS += -Bstatic
endif
endif
#-------------------------------------------------------------------------------
#
# PGI Fortran compiler