From 2cbd8434b314512cea878d07ed928e051270276d Mon Sep 17 00:00:00 2001 From: candy Date: Tue, 5 Nov 2024 17:50:16 -0800 Subject: [PATCH] Added MINT_OPENMPI --- platform/build/make.inc.MINT_OPENMPI | 30 ++++++++++++++++++++++++++++ platform/exec/exec.MINT_OPENMPI | 13 ++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 platform/build/make.inc.MINT_OPENMPI create mode 100755 platform/exec/exec.MINT_OPENMPI diff --git a/platform/build/make.inc.MINT_OPENMPI b/platform/build/make.inc.MINT_OPENMPI new file mode 100644 index 000000000..8257f7e16 --- /dev/null +++ b/platform/build/make.inc.MINT_OPENMPI @@ -0,0 +1,30 @@ +#--------------------------------------------------- +# Linux Mint +#--------------------------------------------------- + +IDENTITY="Linux Mint gfortran+openmpi+OpenBLAS (/usr)" +CORES_PER_NODE=4 +NUMAS_PER_NODE=1 + +FFTWDIR=/usr/lib/x86_64-linux-gnu +ROOT=/home/candy/GIT + +# Compilers +FC = mpif90 -std=f2018 -fall-intrinsics -I $(GACODE_ROOT)/modules -J $(GACODE_ROOT)/modules -fPIC +F77 = mpif77 +FOMP =-fopenmp +FMATH =-fdefault-real-8 -fdefault-double-8 +FOPT =-Ofast +FDEBUG =-Wall -W -fcheck=all -g -fbacktrace -ffpe-trap=invalid,zero,overflow -fimplicit-none -finit-real=nan +F2PY = f2py + +# System math libraries +LMATH = ${ROOT}/OpenBLAS/libopenblas.a $(FFTWDIR)/libfftw3.a $(FFTWDIR)/libfftw3_omp.a +FFTW_INC=/usr/include + +# OPTIONAL NetCDF: +NETCDF=-L/usr/lib -lnetcdff -lnetcdf +NETCDF_INC=/usr/include + +# Archive +ARCH = ar cr diff --git a/platform/exec/exec.MINT_OPENMPI b/platform/exec/exec.MINT_OPENMPI new file mode 100755 index 000000000..9f92d0033 --- /dev/null +++ b/platform/exec/exec.MINT_OPENMPI @@ -0,0 +1,13 @@ +#!/bin/sh +# GACODE Parallel execution script (MINT) + +simdir=${1} +nmpi=${2} +exec=${3} +nomp=${4} +numa=${5} +mpinuma=${6} + +cd $simdir +mpiexec -x OMP_NUM_THREADS=$nomp -np $nmpi $exec +