# ========================================
# ============= EXPERIMENTATION 5 ========
# Compute the quality by the threshold with multicore1
# parameters
NT=8
NP=8
TCU=50
NHI=50
NME=25
coef=2
R=1
TQ=1
# copy from eval6
echo "===> create data"
# copy amc fil with different threshold
for i in 50 ; do
for TQ in 1 2 3 4; do
# iteration
for ((iter=1; iter<=1000; ++iter)); do
if (( iter < 10 ))
then
var='0'$iter
# change the multicore protocol
sed -i "s/JOB_LEVEL_MIGRATION_TYPE/NO_MIGRATION_TYPE/" ./generated/"anytime_coef_${i}_threshold_${TQ}_iter${var}.xmlv3"
# change the multicore protocol
sed -i "s/JOB_LEVEL_MIGRATION_TYPE/NO_MIGRATION_TYPE/" ./generated/"amc_coef_${i}_threshold_${TQ}_iter${var}.xmlv3"
else
# change the multicore protocol
sed -i "s/JOB_LEVEL_MIGRATION_TYPE/NO_MIGRATION_TYPE/" ./generated/"amc_coef_${i}_threshold_${TQ}_iter${var}.xmlv3"
# change the multicore protocol
sed -i "s/JOB_LEVEL_MIGRATION_TYPE/NO_MIGRATION_TYPE/" ./generated/"anytime_coef_${i}_threshold_${TQ}_iter${var}.xmlv3"
fi
done
done
done
k=1
echo "rajouter les coeurs"
for i in 50; do
for TQ in 1 2 3 4; do
# iteration
for ((iter=1; iter<=1000; ++iter)); do
for j in 92 161 230 299 368 437 506 575; do
if [ $((k % 2)) -eq 0 ]
then
core="c1"
else
core="c2"
fi
if (( iter < 10 ))
then
var='0'$iter
sed -i $j'i'$core ./generated/"amc_coef_${i}_threshold_${TQ}_iter${var}.xmlv3"
sed -i $j'i'$core ./generated/"anytime_coef_${i}_threshold_${TQ}_iter${var}.xmlv3"
else
sed -i $j'i'$core ./generated/"amc_coef_${i}_threshold_${TQ}_iter${var}.xmlv3"
sed -i $j'i'$core ./generated/"anytime_coef_${i}_threshold_${TQ}_iter${var}.xmlv3"
fi
k=$k+1
done
k=1
done
done
done