Skip to content

Commit

Permalink
cluster code almost finished, to test
Browse files Browse the repository at this point in the history
  • Loading branch information
josura committed Aug 18, 2024
1 parent bf8a1e1 commit 279d6f6
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions scripts/bash/cluster/changingPerformanceParametersEuroHPC.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,33 @@ if [ $# -ne 3 ]; then
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
maxProcessors=$3

#nodes list goes from 1000 to 100000
nodesList=$(seq 1000 1000 100000)

# iterate over all nodes in input folder
for nodes in ${nodesList[@]}; do
# create the output folder
outputFolderName="$outputFolder/nodes${nodes}"
if [ ! -d $outputFolderName ]; then
mkdir -p $outputFolderName
fi
# run the simulation
mpirun -np $maxProcessors ./build/c2c-sepia-MPI --fUniqueGraph $inputsFolder/metapathwayEdges.tsv \
--initialPerturbationPerTypeFolder $inputsFolder/inputValues \
--typeInteractionFolder $inputsFolder/interactions \
--nodeDescriptionFile $inputsFolder/nodesInfo.tsv \
--dissipationModel scaled \
--dissipationModelParameters 0.5 \
--propagationModel neighbors \
--propagationModelParameters 0.5 \
--intertypeIterations 20 \
--intratypeIterations 5 \
--virtualNodesGranularity typeAndNode \
--saturation \
--outputFolder $outputFolderName
done

0 comments on commit 279d6f6

Please sign in to comment.