New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 7230 – NEMO

Changeset 7230


Ignore:
Timestamp:
2016-11-15T13:56:09+01:00 (7 years ago)
Author:
timgraham
Message:

Added modifications to instrument code and use perf_regions in GYRE_BENCHMARK

Location:
branches/2016/dev_HPC_Gyre_benchmark_test/NEMOGCM/BENCHMARK
Files:
5 added
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2016/dev_HPC_Gyre_benchmark_test/NEMOGCM/BENCHMARK/GYRE_benchmark.sh

    r6511 r7230  
    2222# 
    2323# Compiler among those in NEMOGCM/ARCH 
    24 COMPILER=XC40_METO 
     24COMPILER=XC40_METO_perf_tools 
    2525export BATCH_COMMAND_PAR="qsub" 
    2626export BATCH_COMMAND_SEQ=$BATCH_COMMAND_PAR 
     
    2828export MPIRUN_FLAG="yes" 
    2929export USING_XIOS="yes" 
     30export PERF_REGIONS_HOME=/home/tigrah/perf_regions 
     31 
     32#Number of cores on a single node of HPC 
     33export CORES_PER_NODE=32 
     34 
     35# List of papi_counters to be used 
     36export LIST_COUNTERS=PAPI_L1_ICM 
     37 
     38 
     39# Make a link to perf_regions_fortran.f90 in MY_SRC directory 
     40# I think it should be possible to just include the .mod file but it's failing on XC40 at the moment 
     41ln -sf $PERF_REGIONS_HOME/src/perf_regions_fortran.F90 MY_SRC/perf_regions_fortran.F90 
     42 
    3043# 
    3144export DEL_KEYS="key_iomput" 
     
    5871# control HPC behaviour for benchmarking 
    5972######################################### 
    60 module load perftools-lite 
    6173module load cray-netcdf 
    6274 
     
    7789 
    7890 
     91#Cleanup instrumentation from old run 
     92. ./perf_regions_instrumentation.py cleanup 
     93 
     94#Instrument OPA_SRC code before compilation 
     95. ./perf_regions_instrumentation.py 
     96 
    7997# GYRE CONFIGURATION 
    8098export TEST_NAME="BENCHMARK" 
    81 export NUM_COUNTERS=2 
    82 export LIST_COUNTERS=FP_COMP_OPS_EXE,PAPI_L3_TCM 
    83  
    8499. ./param.cfg 
    85100. ./all_functions.sh 
    86101cd ${CONFIG_DIR} 
    87 . ./makenemo -m ${CMP_NAM} -n GYRE_BENCHMARK -r GYRE -j 8 del_key key_mpp_mpi 
    88 mkdir -p ${NEW_CONF}/${TEST_NAME} 
     102. ./makenemo -m ${CMP_NAM} -n GYRE_BENCHMARK -e /home/tigrah/dev_HPC_Gyre_benchmark_test/NEMOGCM/BENCHMARK/MY_SRC -r GYRE -j 8 del_key "key_mpp_mpi key_iomput" 
     103echo $PWD 
     104cd GYRE_BENCHMARK 
     105mkdir -p ${TEST_NAME} 
    89106export EXE_DIR=${CONFIG_DIR}/${NEW_CONF}/${TEST_NAME} 
    90 cp -rL ${CONFIG_DIR}/${NEW_CONF}/EXP00/* ${EXE_DIR}/. 
    91 cp -r ${SETTE_DIR}/iodef_sette.xml ${EXE_DIR}/iodef.xml 
    92107JOB_FILE=${EXE_DIR}/run_job.sh 
     108proc=1 
     109cd $EXE_DIR 
     110  cp -rL ${CONFIG_DIR}/${NEW_CONF}/EXP00/* ${EXE_DIR}/. 
     111  cp -r ${SETTE_DIR}/iodef_sette.xml ${EXE_DIR}/iodef.xml 
     112  cp -r ${SETTE_DIR}/perf_region_list.txt ${EXE_DIR}/perf_region_list.txt 
     113 
    93114NPROC=1 
    94115cd ${EXE_DIR}   
  • branches/2016/dev_HPC_Gyre_benchmark_test/NEMOGCM/BENCHMARK/prepare_job.sh

    r6296 r7230  
    251251             -e"s:MPI_FLAG:${MPI_FLAG}:" \ 
    252252             -e"s:DEF_NEMO_VALIDATION:${NEMO_VALIDATION_DIR}:" -e"s:DEF_NEW_CONF:${NEW_CONF}:" \ 
    253              -e"s:DEF_CMP_NAM:${CMP_NAM}:" -e"s:DEF_TEST_NAME:${TEST_NAME}:" > run_sette_test.job 
     253             -e"s:DEF_CMP_NAM:${CMP_NAM}:" -e"s:DEF_TEST_NAME:${TEST_NAME}:" \ 
     254             -e"s:DEF_LD_LIB:${PERF_REGIONS_HOME}/build/:" -e"s:DEF_COUNTERS:${LIST_COUNTERS}:" \ 
     255             -e"s:DEF_CORES_PER_NODE:$CORES_PER_NODE:" > run_sette_test.job 
    254256 
    255257        case ${COMPILER} in 
Note: See TracChangeset for help on using the changeset viewer.