diff --git a/scripts/bash/cluster/performanceAnalysis/localChangingPerformanceParametersEuroHPC.sh b/scripts/bash/cluster/performanceAnalysis/localChangingPerformanceParametersEuroHPC.sh new file mode 100644 index 0000000..54a7f00 --- /dev/null +++ b/scripts/bash/cluster/performanceAnalysis/localChangingPerformanceParametersEuroHPC.sh @@ -0,0 +1,29 @@ +# fill this part with the configuration for slurm + +# control if parameters are passed, if only three arguments are passed, the maximum number of processors is also passed +if [ $# -ne 3 ]; then + echo $# arguments passed + echo "Please pass the folder with the inputs and the folder where to save the outputs and the maximum number of processors" + exit 1 +fi + +inputsFolder=$1 +outputFolder=$2 +processors=$3 +interface="wlan0" + +mpirun --mca pml ob1 --mca btl tcp,self --mca btl_tcp_if_include $interface -np $processors ./build/c2c-sepia-MPI --graphsFilesFolder $inputsFolder/graphs \ + --initialPerturbationPerTypeFolder $inputsFolder/node_conditions_discr \ + --typeInteractionFolder $inputsFolder/interactions \ + --nodeDescriptionFolder $inputsFolder/communities \ + --dissipationModel scaled \ + --dissipationModelParameters 0.5 \ + --propagationModel neighbors \ + --propagationModelParameters 0.5 \ + --intertypeIterations 20 \ + --intratypeIterations 5 \ + --timestep 5 \ + --virtualNodesGranularity typeAndNode \ + --saturation \ + --savePerformance /home/josura/Projects/ccc/c2c-sepia/scripts/bash/cluster/performanceAnalysis/localPerformanceTimes.tsv \ + --outputFolder $outputFolder diff --git a/scripts/bash/cluster/performanceAnalysis/localSubmitPerformanceExperiments.sh b/scripts/bash/cluster/performanceAnalysis/localSubmitPerformanceExperiments.sh new file mode 100644 index 0000000..dd08888 --- /dev/null +++ b/scripts/bash/cluster/performanceAnalysis/localSubmitPerformanceExperiments.sh @@ -0,0 +1,29 @@ +# control if parameters are passed, if only three arguments are passed, the maximum number of processors is also passed +if [ $# -ne 4 ]; then + echo $# arguments passed + echo "Please pass the folder with the inputs and the folder where to save the outputs, the minimum number of processors and the maximum number of processors" + exit 1 +fi + +inputsFolder=$1 +outputFolder=$2 +minProcessors=$3 +maxProcessors=$4 + +#nodes list goes from 10000 to 100000 +nodesList=$(seq 10000 10000 100000) + +# iterate over all nodes in input folder +for nodes in ${nodesList[@]}; do + # create the output folder + outputFolderName="$outputFolder/${nodes}" + if [ ! -d $outputFolderName ]; then + mkdir -p $outputFolderName + fi + inputFolderName="$inputsFolder/${nodes}" + # run the simulation, start from 1 processor to the maximum number of processors + for i in $(seq $minProcessors $maxProcessors); do + bash /home/josura/Projects/ccc/c2c-sepia/scripts/bash/cluster/performanceAnalysis/localChangingPerformanceParametersEuroHPC.sh $inputFolderName $outputFolderName $i + done +done +