Skip to content

Commit

Permalink
Added MINT_OPENMPI
Browse files Browse the repository at this point in the history
  • Loading branch information
jcandy committed Nov 6, 2024
1 parent ad9e1b4 commit 2cbd843
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 0 deletions.
30 changes: 30 additions & 0 deletions platform/build/make.inc.MINT_OPENMPI
Original file line number Diff line number Diff line change
@@ -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
13 changes: 13 additions & 0 deletions platform/exec/exec.MINT_OPENMPI
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2cbd843

Please sign in to comment.