From e625463287c3da1ad4899466fba707774f8b99fc Mon Sep 17 00:00:00 2001 From: Eugen Betke Date: Wed, 24 Oct 2018 08:05:59 +0200 Subject: [PATCH] Tool for estimating runtime --- tool_estimate_time_remains.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100755 tool_estimate_time_remains.sh diff --git a/tool_estimate_time_remains.sh b/tool_estimate_time_remains.sh new file mode 100755 index 000000000..0f2f61d4d --- /dev/null +++ b/tool_estimate_time_remains.sh @@ -0,0 +1,15 @@ +#!/bin/bash + + + +API_ARR=( "POSIX" "MPIIO" ) +NN_ARR=( 4 2 1 8 16) +PPN_ARR=( 8 6 4 2 1 ) +T_ARR=( $((10*1024*1024)) $((1*1024*1024)) $((100*1024)) $((16*1024)) ) + + +done="$(find output -type f | wc -l)" +todo=$((${#API_ARR[@]} * ${#NN_ARR[@]} * ${#PPN_ARR[@]} * ${#T_ARR[@]})) +remains=$(($todo - $done)) + +echo "$(($remains * 2 * 6 / 60)) h"