HOSTS: Add support for NVIDIA HPC compilers.
Signed-off-by: Grzegorz Kowal <grzegorz@amuncode.org>
This commit is contained in:
parent
2098661d3c
commit
e352c2cb0e
@ -37,6 +37,38 @@ endif
|
|||||||
|
|
||||||
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
|
# PGI Fortran compiler
|
||||||
|
Loading…
x
Reference in New Issue
Block a user