abinit/doc/build/GPU_Nvidia_GH100.ac9

64 lines
1.7 KiB
Plaintext

# ================================================================
# Configuration file for ABINIT 10.5 compilation
#
# CPU: Nvidia Grace
# GPU: Nvidia H100 SXM4 80 Go
# Compilers: Nvidia HPC compilers 24.5
# Libraries: NVPL, CUDA
# ================================================================
#prefix=${ROOT}/install/${MY_ARCH}/abinit-gpu
# Compilers and flags
# ========================================
FC=$FC_MPI
CC=$CC_MPI
CXX=$CXX_MPI
with_optim_flavor="standard"
fcflags_opt_80_tdep="-O1 -g -fPIC" # NVFORTRAN has difficulties to compile 80_tdep directory
# Parallel compilation
# ========================================
with_mpi="yes"
enable_mpi_io="yes"
enable_openmp="yes"
# CUDA GPU
# ========================================
with_cuda="${CUDA_ROOT}"
enable_openmp_offload="yes"
enable_mpi_gpu_aware="yes"
GPU_ARCH=90
# Debug
# with_gpu_markers="yes"
# Linear Algebra library
# ========================================
with_linalg_flavor="netlib"
LINALG_LDFLAGS="-L${NVHPC_ROOT}/compilers/lib -lblas -llapack"
# FFT
# ========================================
with_fft_flavor="fftw3"
with_fftw3="${FFTW3_ROOT}"
FFTW3_CFLAGS="-I${FFTW3_ROOT}/include"
FFTW3_FCFLAGS="-I${FFTW3_ROOT}/include"
FFTW3_CPPFLAGS="-I${FFTW3_ROOT}/include"
FFTW3_LIBS="-L${FFTW3_ROOT}/lib -lfftw3 -lfftw3f -lfftw3_threads "
# NetCDF library
# ========================================
with_hdf5="${HDF5_ROOT}"
with_netcdf="${NETCDF_C_ROOT}"
with_netcdf_fortran="${NETCDF_FORTRAN_ROOT}"
# Additional plugins & libs
# ========================================
with_libxc="${ROOT}/install/${MY_ARCH}/libxc"
# Miscellaneous options
# ========================================
enable_zdot_bugfix="no"
enable_gw_dpc="yes"