cloud-sat/run_solvers.sh

24 lines
690 B
Bash
Raw Normal View History

2023-04-10 11:57:59 +08:00
#!/bin/bash
instance="/pub/data/chenzh/data/sat2022"
run_solver(){
solver=$1
res_solver_ins=$2
solver_args=$3
if [ ! -d "$res_solver_ins" ]; then
mkdir -p $res_solver_ins
fi
for dir_file in `cat $instance/all.txt`
do
2023-04-12 12:52:04 +08:00
file=$dir_file
echo "$res_solver_ins $file $solver_args"
touch $res_solver_ins/$file
{ /usr/bin/time -f "\nreal\t%e\nuser\t%U\nsys\t%S\nmem\t%M\n" $solver $instance/$file $solver_args; } > $res_solver_ins/$file 2>&1
done
}
2023-04-12 12:52:04 +08:00
run_solver \
'mpirun -np 9 --allow-run-as-root ./light -i ' \
'exp-result'\
2023-04-12 12:52:04 +08:00
'--share=1 --threads=32 --times=3600'