From b876ce7dd26fcd495d90b7cf3809aff4f1fbb106 Mon Sep 17 00:00:00 2001 From: David Goz <david.goz@inaf.it> Date: Fri, 21 Jun 2024 13:37:07 +0000 Subject: [PATCH] Delete run.sh --- jacobi/serial/not_opt/script/run.sh | 65 ----------------------------- 1 file changed, 65 deletions(-) delete mode 100755 jacobi/serial/not_opt/script/run.sh diff --git a/jacobi/serial/not_opt/script/run.sh b/jacobi/serial/not_opt/script/run.sh deleted file mode 100755 index d88cce0..0000000 --- a/jacobi/serial/not_opt/script/run.sh +++ /dev/null @@ -1,65 +0,0 @@ -#!/bin/bash - -# compile the application -# select flags inside the Makefile (parent directory) -cd .. && make mpi_omp_step_profiling -f Makefile - -if [[ "$?" != "0" ]] -then - echo "Cannot compile the application ...aborting..." - exit 1 -fi - -# the executable -EXEC=$(find . -name *$(hostname)* -executable -type f) -if [[ "$?" != "0" ]] -then - echo "Cannot find the executable ...aborting..." - exit 2 -fi - -# return to ./script and source input parameters and function -cd - && source input_parameters && source write_paramfile.sh - -# loop over particles -for PART in "${N[@]}" -do - # loop over MPI tasks - for TASK in "${MPI[@]}" - do - # loop over OMP threads - for THR in "${THREADS[@]}" - do - # write the paramfile - write_paramfile ${TEMPLATE} ${PARAMFILE} \ - ${DELETE_OUTPUT_FILES} ${OUTPUTDIR} \ - ${THR} ${PART} - - # check the status - if [[ "$?" != "0" ]] - then - echo "Error while writing ${PARAMFILE} ...aborting..." - exit 3 - fi - - # move the paramfile and move to the parent directory where the executable resides - mv ${PARAMFILE} ../ && cd .. - - # run the application - mpirun -np ${TASK} ${EXEC} ${PARAMFILE} - # check exit status - if [[ "$?" != "0" ]] - then - echo "####################################################################" - echo "ERROR while running the app using: ${TASK} MPI tasks and ${GPU} GPUs" - echo "####################################################################" - fi - - # delete the paramfile and return to the previous directory - rm -f ${PARAMFILE} && cd - - done # loop over THR - done # loop over TASKS -done # looop over particles - -# Everything is OK! -exit 0 -- GitLab