Makefile.include.nvhpc omp acc: Difference between revisions
(Created page with "{{DISPLAYTITLE:makefile.include.nvhpc_omp_acc}} <pre> # Default precompiler options CPP_OPTIONS = -DHOST=\"LinuxNV\" \ -DMPI -DMPI_BLOCK=8000 -Duse_collective \...") |
No edit summary |
||
Line 20: | Line 20: | ||
# N.B.: you might need to change the cuda-version here | # N.B.: you might need to change the cuda-version here | ||
# to one that comes with your NVIDIA-HPC SDK | # to one that comes with your NVIDIA-HPC SDK | ||
FC = mpif90 -acc -gpu=cc60,cc70,cc80,cuda11.0 -mp | FC = mpif90 -acc -gpu=cc60,cc70,cc80,cuda11.0 -mp | ||
FCL = mpif90 -acc -gpu=cc60,cc70,cc80,cuda11.0 -mp -c++libs | FCL = mpif90 -acc -gpu=cc60,cc70,cc80,cuda11.0 -mp -c++libs | ||
Line 72: | Line 72: | ||
INCS += -I$(QD)/include/qd | INCS += -I$(QD)/include/qd | ||
# BLAS | # BLAS (mandatory) | ||
BLAS = -lblas | |||
# LAPACK (mandatory) | |||
LAPACK = -llapack | |||
# scaLAPACK (mandatory) | # scaLAPACK (mandatory) | ||
LLIBS += | SCALAPACK = -Mscalapack | ||
LLIBS += $(SCALAPACK) $(LAPACK) $(BLAS) | |||
# FFTW (mandatory) | # FFTW (mandatory) |
Revision as of 17:02, 19 January 2022
# Default precompiler options CPP_OPTIONS = -DHOST=\"LinuxNV\" \ -DMPI -DMPI_BLOCK=8000 -Duse_collective \ -DscaLAPACK \ -DCACHE_SIZE=4000 \ -Davoidalloc \ -Dvasp6 \ -Duse_bse_te \ -Dtbdyn \ -Dqd_emulate \ -Dfock_dblbuf \ -D_OPENMP \ -D_OPENACC \ -DUSENCCL -DUSENCCLP2P CPP = nvfortran -Mpreprocess -Mfree -Mextend -E $(CPP_OPTIONS) $*$(FUFFIX) > $*$(SUFFIX) # N.B.: you might need to change the cuda-version here # to one that comes with your NVIDIA-HPC SDK FC = mpif90 -acc -gpu=cc60,cc70,cc80,cuda11.0 -mp FCL = mpif90 -acc -gpu=cc60,cc70,cc80,cuda11.0 -mp -c++libs FREE = -Mfree FFLAGS = -Mbackslash -Mlarge_arrays OFLAG = -fast DEBUG = -Mfree -O0 -traceback OBJECTS = fftmpiw.o fftmpi_map.o fftw3d.o fft3dlib.o LLIBS = -cudalib=cublas,cusolver,cufft,nccl -cuda # Redefine the standard list of O1 and O2 objects SOURCE_O1 := pade_fit.o SOURCE_O2 := pead.o # For what used to be vasp.5.lib CPP_LIB = $(CPP) FC_LIB = nvfortran CC_LIB = nvc -w CFLAGS_LIB = -O FFLAGS_LIB = -O1 -Mfixed FREE_LIB = $(FREE) OBJECTS_LIB = linpack_double.o # For the parser library CXX_PARS = nvc++ --no_warnings ## ## Customize as of this point! Of course you may change the preceding ## part of this file as well if you like, but it should rarely be ## necessary ... ## # Specify your NV HPC-SDK installation (mandatory) #... first try to set it automatically NVROOT =$(shell which nvfortran | awk -F /compilers/bin/nvfortran '{ print $$1 }') # If the above fails, then NVROOT needs to be set manually #NVHPC ?= /opt/nvidia/hpc_sdk #NVVERSION = 21.11 #NVROOT = $(NVHPC)/Linux_x86_64/$(NVVERSION) # Software emulation of quadruple precsion (mandatory) QD ?= $(NVROOT)/compilers/extras/qd LLIBS += -L$(QD)/lib -lqdmod -lqd INCS += -I$(QD)/include/qd # BLAS (mandatory) BLAS = -lblas # LAPACK (mandatory) LAPACK = -llapack # scaLAPACK (mandatory) SCALAPACK = -Mscalapack LLIBS += $(SCALAPACK) $(LAPACK) $(BLAS) # FFTW (mandatory) FFTW_ROOT ?= /path/to/your/fftw/installation LLIBS += -L$(FFTW_ROOT)/lib -lfftw3 -lfftw3_omp INCS += -I$(FFTW_ROOT)/include # HDF5-support (optional but strongly recommended) #CPP_OPTIONS+= -DVASP_HDF5 #HDF5_ROOT ?= /path/to/your/hdf5/installation #LLIBS += -L$(HDF5_ROOT)/lib -lhdf5_fortran #INCS += -I$(HDF5_ROOT)/include # For the VASP-2-Wannier90 interface (optional) #CPP_OPTIONS += -DVASP2WANNIER90 #WANNIER90_ROOT ?= /path/to/your/wannier90/installation #LLIBS += -L$(WANNIER90_ROOT)/lib -lwannier # For the fftlib library (experimental) #CPP_OPTIONS+= -Dsysv #FCL += fftlib.o #CXX_FFTLIB = nvc++ -mp --no_warnings -std=c++11 -DFFTLIB_THREADSAFE #INCS_FFTLIB = -I./include -I$(FFTW_ROOT)/include #LIBS += fftlib #LLIBS += -ldl