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

Create mkmf.template.nvhpc #557

Merged
Merged
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
30 changes: 30 additions & 0 deletions build_templates/mkmf.template.nvhpc
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Template for NVIDIA HPC (nvhpc) Compiler Environment
#
# DART software - Copyright UCAR. This open source software is provided
# by UCAR, "as is", without charge, subject to all terms of use at
# http://www.image.ucar.edu/DAReS/DART/DART_download
#

# ftn is for Derecho (a Cray machine)
# For non-Cray machines use nvfortran
MPIFC = ftn
MPILD = ftn
FC = ftn
LD = ftn

# If your NETCDF environment variable is not set correctly,
# uncomment the following line and set value to where lib and include
# are found for the netcdf files that match this compiler.
#
# NETCDF = /opt/local

INCS = -I$(NETCDF)/include
LIBS = -L$(NETCDF)/lib -lnetcdff -lnetcdf
FFLAGS = -O -Kieee -Mbackslash $(INCS)
LDFLAGS = $(INCS) $(LIBS)
hkershaw-brown marked this conversation as resolved.
Show resolved Hide resolved

# For development or debugging, use the following flags.
# To generate a traceback,
# set the enviroment variable 'NVCOMPILER_TERM=trace' at runtime.
# FFLAGS = -gopt -C -traceback -Ktrap=fp -Mbackslash -Kieee $(INCS)