ampere_research/trilinos/run.sh
2024-10-29 19:27:33 -04:00

42 lines
1.3 KiB
Bash
Executable File

#! /bin/bash
srun_args=(
--account oasis
--partition oasis
--qos high
--cpus-per-task 16
--ntasks-per-node 1
#--output debug.output
--output /dev/null
#--error debug.output
--error /dev/null
)
echo "${srun_args[@]}"
#node=$1
power_baseline_time_s=30
#input_files=(maxwell4.xml maxwell6.xml maxwell8.xml maxwell10.xml maxwell12.xml maxwell14.xml maxwell16.xml maxwell18.xml maxwell20.xml maxwell22.xml maxwell24.xml maxwell26.xml maxwell28.xml maxwell30.xml maxwell32.xml maxwell34.xml maxwell36.xml maxwell38.xml maxwell40.xml)
#input_files=(maxwell4.xml maxwell6.xml maxwell8.xml maxwell10.xml)
#input_files=(maxwell12.xml maxwell14.xml maxwell16.xml maxwell18.xml maxwell20.xml)
#input_files=(maxwell22.xml maxwell24.xml maxwell26.xml maxwell28.xml maxwell30.xml)
#input_files=(maxwell32.xml maxwell34.xml maxwell36.xml maxwell38.xml maxwell40.xml)
input_files=(maxwell42.xml maxwell44.xml maxwell46.xml maxwell48.xml maxwell50.xml)
node_num=10
# solvers, linalg
for args in {MueLu,CG,GMRES}\ "Tpetra"; do
for input_file in ${input_files[@]}; do
if [[ $node_num -eq 39 ]]; then
node_num=10
fi
#srun --nodelist $node collect_data_ampere.sh $baseline_time_s $args $input_file &
srun ${srun_args[@]} --nodelist oasis"$node_num" collect_data_ampere.sh $power_baseline_time_s $args $input_file &
((node_num++))
done
done
wait