From 31173b219a6f3a730f1454e7edfaeeb47f4d675c Mon Sep 17 00:00:00 2001 From: Iman Hosseini Date: Sat, 9 Sep 2023 12:50:42 -0400 Subject: [PATCH] Add make.inc file for NVHPC (#41) --- make.inc.nvhpc | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 make.inc.nvhpc diff --git a/make.inc.nvhpc b/make.inc.nvhpc new file mode 100644 index 0000000..a42021d --- /dev/null +++ b/make.inc.nvhpc @@ -0,0 +1,16 @@ +CC=nvc +CXX=nvc++ +FC=nvfortran +FFLAGS= -fPIC -O3 +LIBS=-lm +CLIBS = -lm -ldl -lifcore + +ifeq ($(FAST_KER),ON) + +CXXFLAGS = $(FFLAGS) +CXXFLAGS += -std=c++11 -DSCTL_HAVE_SVML -DSCTL_PROFILE=-1 +LIBS += -cxxlib +endif + +OMPLIBS = +OMPFLAGS = -mp