Skip to content

Commit

Permalink
Added CORG platform file
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Candy committed Nov 29, 2023
1 parent 279c6e3 commit 8beeef3
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 5 deletions.
33 changes: 33 additions & 0 deletions platform/build/make.inc.CORG
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#---------------------------------------------------
# Linux Mint
#---------------------------------------------------

IDENTITY="corg.gat.com gfortran+mpich+OpenBLAS (/usr)"
CORES_PER_NODE=4
NUMAS_PER_NODE=1

FFTWDIR=/usr/lib/x86_64-linux-gnu

ROOT=/home/math

# Compilers

FC = mpif90 -std=f2008 -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
5 changes: 0 additions & 5 deletions platform/build/make.inc.MINT
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,6 @@ F2PY = f2py
LMATH = ${ROOT}/OpenBLAS/libopenblas.a $(FFTWDIR)/libfftw3.a $(FFTWDIR)/libfftw3_omp.a
FFTW_INC=/usr/include

ifdef FANN_ROOT
# neural net libraries
NN_LIB=-L$(GACODE_ROOT)/../neural/ -I$(GACODE_ROOT)/../neural/ -lbrainfuse -lfann
endif

# OPTIONAL NetCDF:
NETCDF=-L/usr/lib -lnetcdff -lnetcdf
NETCDF_INC=/usr/include
Expand Down
13 changes: 13 additions & 0 deletions platform/exec/exec.CORG
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 -env OMP_NUM_THREADS $nomp -n $nmpi $exec

0 comments on commit 8beeef3

Please sign in to comment.