Just a heads up, we don't have a huge amount of space on this machine, ~750 GB for the git repos. We can include some data in the projects, but really big datasets will need to remain elsewhere. For anyone new to Git, this is a fairly good place to start: http://gitref.org/index.html Documentation for Gitlab is available here: http://doc.gitlab.com/

Commit df552090 authored by Khalid Kunji's avatar Khalid Kunji

Added option -e for memory estimate

parent 7e297e0a
......@@ -144,6 +144,23 @@ then
exit 1
fi
;;
e )
memory_estimate="${@:1:1}"
shift
if [ "${memory_estimate:0:1}" == "-" ]
then
echo "Flags shouldn't follow each other separately (e.g. -o -n ./out 4), but instead should be joined (e.g. -on ./out 4) or totally separate (e.g. -o ./out -n 4)"
exit 1
fi
if [ "${memory_estimate}" ]
then
echo "Memory estimate set successfully: " "${memory_estimate}" "MB"
export memory_estimate
else
echo "-e flag given with no amount of memory, aborting."
exit 1
fi
;;
l )
echo "long is true"
export long="true"
......@@ -212,7 +229,7 @@ then
echo " [MEMORY IN MB] using an estimate of the amount of memory GIGI may need. If -m [MEMORY IN MB] wasn't given, then it will use the amount of memory available "
echo " as shown by 'free.' For older kernels this isn't shown and we use an estimate that is no longer accurate for modern systems (amount free + amount of buff/cache). "
echo " https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=34e431b0ae398fc54ea69ff85ec700722c9da773 Also, -t is ignored when -q is given."
echo "-e [MEMORY IN MB] : Not yet implemented, manual estimate of how much memory GIGI will need for queued mode in case the calculated estimate is too inaccurate"
echo "-e [MEMORY IN MB] : Manual estimate of how much memory GIGI will need for queued mode in case the calculated estimate is too inaccurate"
echo "For further information please see the included readme file and or the same text online on the project page: https://cse-git.qcri.org/Imputation/Impute_Beaming"
exit 0
;;
......
......@@ -177,9 +177,14 @@ M=$((--M))
echo "M: " "${M}"
#estimated_memory_needed=$((-20490+0.05799*N*M+6164*S))
echo "-20490+0.05799*${N}*${M}+6164*${S}"
export estimated_memory_needed=$(echo "-20490+0.05799*${N}*${M}+6164*${S}" | bc)
echo "Estimated Memory Needed: " "${estimated_memory_needed}"
if [[ "${memory_estimate}" ]]
then
export estimated_memory_needed=$((1024*memory_estimate))
else
echo "-20490+0.05799*${N}*${M}+6164*${S}"
export estimated_memory_needed=$(echo "-20490+0.05799*${N}*${M}+6164*${S}" | bc)
fi
echo "Estimated Memory Needed in Kb: " "${estimated_memory_needed}"
cd "$parent_path"
if [[ "$queue_length" ]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment