Skip to content

Commit

Permalink
changed cluster code to test performance into bash script to submit a…
Browse files Browse the repository at this point in the history
…nother bash script
  • Loading branch information
josura committed Aug 19, 2024
1 parent 279d6f6 commit 7b7ec98
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# 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

srun -n $processors ./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 $outputFolder
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,8 @@ for nodes in ${nodesList[@]}; do
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
# run the simulation, start from 1 processor to the maximum number of processors
for i in $(seq 1 $maxProcessors); do
bash submitPerformanceExperiments.sh $inputsFolder $outputFolderName $i
done
done

0 comments on commit 7b7ec98

Please sign in to comment.