2024-heraklion-parallel-python/exercises/exerciseC/run_with_all_configurations.sh

14 lines
269 B
Bash
Raw Normal View History

2024-08-30 08:24:04 +02:00
#!/bin/bash
set -ex
# This is a bash script.
# It runs the python program multiple times with different arguments.
2024-08-29 23:17:47 +02:00
for i in {1..5} # Number of processes
2024-08-29 17:30:29 +02:00
do
2024-08-29 23:17:47 +02:00
for j in {1..5} # Number of threads
2024-08-29 17:30:29 +02:00
do
python process_images.py $i $j images/*
done
2024-08-30 08:24:04 +02:00
done