-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
scripts for generating performances on local
- Loading branch information
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
scripts/bash/cluster/performanceAnalysis/localChangingPerformanceParametersEuroHPC.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
29 changes: 29 additions & 0 deletions
29
scripts/bash/cluster/performanceAnalysis/localSubmitPerformanceExperiments.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|