-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARC4 Compilation modifications and instructions (#28)
* Included source code issues from issue 11, point 1 * Included changes from trunk to allow build with gnu>=7. Created arc compatible batch script. Added diagnostic file assignment to straka.mcf * Added stdout folder and sge outputs to .gitignore * Included MVAPICH2 env variables in job submission script - needed.
- Loading branch information
Showing
14 changed files
with
130 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#$f90{?} = mpif90 | ||
#$cc{?} = cc | ||
$fflags_opt{?} = -O3 -module . | ||
$fflags{?} = $fflags_opt | ||
|
||
$fflags_core{?} = $fflags -recursive | ||
$fflags_io{?} = $fflags -recursive | ||
$fflags_psrc{?} = -O1 -module . | ||
$cflags = | ||
|
||
$fppdefs_debug{?} = DEBUG_MODE | ||
$fpp_flags{?} = -E -P -traditional | ||
|
||
$fppdefs{?} = U_ACTIVE V_ACTIVE W_ACTIVE ENFORCE_THREAD_SAFETY __DARWIN | ||
$cppdefs{?} = __DARWIN _XOPEN_SOURCE=700 ENFORCE_THREAD_SAFETY |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
$f90{?} = mpif90 | ||
$cc{?} = cc | ||
|
||
$netcdf_path{?} = $NETCDF_HOME | ||
$netcdf_inc_path{?} = $netcdf_path/include | ||
$netcdf_lib_path{?} = $netcdf_path/lib | ||
|
||
$fftw_path{?} = $FFTW_HOME | ||
$fftw_inc_path{?} = $fftw_path/include | ||
$fftw_lib_path{?} = $fftw_path/lib | ||
|
||
$hdf5_path{?} = $HDF5_HOME | ||
$hdf5_lib_path{?} = $hdf5_path/lib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
include = comp-gnu-4.4.7.cfg | ||
include = env-arc4.cfg | ||
include = monc-build.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#! /bin/bash | ||
|
||
#Script to compile Monc on ARC4: | ||
|
||
module purge | ||
module load user | ||
module switch intel gnu/8.3.0 | ||
#module switch openmpi mvapich2 | ||
module load fftw netcdf hdf5 fcm | ||
|
||
fcm make -j4 -f fcm-make/monc-arc4-gnu.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#!/bin/bash | ||
#$ -pe ib 4 | ||
#$ -l h_rt=0:30:0 | ||
#$ -l h_vmem=1G | ||
#$ -l placement=scatter | ||
#$ -cwd -V | ||
|
||
############################################################## | ||
#### THIS IS AN EXAMPLE SCRIPT TO DEMONSTRATE HOW TO #### | ||
#### SUBMIT A STANDARD monc JOB WITHOUT A RESTART #### | ||
#### Script assumes that there are directories called #### | ||
#### monc_stdout , checkpoint_files and diagnostic_files #### | ||
#### If these do not exist, MONC will fail #### | ||
############################################################## | ||
|
||
echo Starting job | ||
|
||
module purge | ||
module load user | ||
module switch intel gnu/8.3.0 | ||
#module switch openmpi mvapich2 | ||
module load netcdf hdf5 fftw fcm | ||
|
||
module list | ||
|
||
if [ ! -d checkpoint_files ]; then mkdir checkpoint_files; fi | ||
if [ ! -d monc_stdout ]; then mkdir monc_stdout; fi | ||
if [ ! -d diagnostic_files ]; then mkdir diagnostic_files; fi | ||
|
||
# MVAPICH2 RUNTIME VARIABLES | ||
#MONC_THREAD_MULTIPLE=0 | ||
#MV2_ENABLE_AFFINITY=0 | ||
#MV2_SHOW_CPU_BINDING=1 | ||
#MV2_USE_THREAD_WARNING=0 | ||
#export MONC_THREAD_MULTIPLE MV2_ENABLE_AFFINITY MV2_SHOW_CPU_BINDING \ | ||
# MV2_USE_THREAD_WARNING | ||
|
||
# Set the number of threads to 1 | ||
# This prevents any system libraries from automatically | ||
# using threading. | ||
export OMP_NUM_THREADS=1 | ||
|
||
# set env variables for submission command | ||
config_path='testcases/tank_experiments/straka.mcf' | ||
checkpoint_fn="checkpoint_files/straka_dump.nc" | ||
|
||
mpirun -np 4 ./build/bin/monc_driver.exe --config=$config_path --checkpoint_file=$checkpoint_fn &> monc_stdout/output_straka_dump_1 |