Skip to content

Commit

Permalink
scripts for generating performances on local
Browse files Browse the repository at this point in the history
  • Loading branch information
josura committed Aug 28, 2024
1 parent e1ec1a8 commit a995c42
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit a995c42

Please sign in to comment.