9 START_TIME=`date '+%Y-%b-%d_%H.%M.%S'`
10 TIMING_FILE=time_run_EndToEndApp.csv
13 #################################################
14 ### MPI job configuration for Kay supercomputer
16 ### Note: User may need to modify.
17 #################################################
22 NPROCS=$(( NTASKSPERNODE*NNODES ))
24 export OMP_NUM_THREADS=${NTHREADS}
25 export AFF_THREAD=${NTHREADS}
26 export KMP_AFFINITY=compact
31 #################################################
32 ### Application configuration.
34 ### Note: User may need to modify.
35 #################################################
38 EXECUTABLE=simple_MPI.py
42 #################################################
43 ### Load relevant module files (gcc 8.2.0 and
44 ### Intel 2019 update 5).
45 #################################################
47 module load gcc/8.2.0 intel/2019u5
49 #################################################
50 ### Set-up MPI environment variables for SHM.
51 #################################################
52 export I_MPI_SHM=skx_avx512
54 #################################################
55 ### Specify MPI parameter tuning model [optional]
56 #################################################
57 export I_MPI_TUNING_BIN=${I_MPI_ROOT}/intel64/etc/tuning_skx_shm-ofi_efa.dat
59 #################################################
61 #################################################
64 srun --ntasks ${NPROCS} -c 1 --ntasks-per-socket=${NPROCS_PER_SOCKET} --cpu-bind=cores -m plane=${PLANE_FILL_WIDTH} python ${PATH_TO_EXECUTABLE}/${EXECUTABLE} ${EXECUTABLE_ARGS}
67 runtime=$((end_time-start_time))
69 echo "Execution time: ${runtime}"