Skip to content
Snippets Groups Projects
Commit adc7be47 authored by Julien  GUGLIELMINI's avatar Julien GUGLIELMINI
Browse files

Removed default for reqmem

parent 51bd5f27
No related branches found
No related tags found
No related merge requests found
......@@ -302,15 +302,12 @@ if [[ $BATCHFLAG == 0 ]] ; then
fi
else
REQMEM=""
if [[ $ARRAYSIZE -le 10000 ]] ; then
REQMEM="1G"
else
echo "[INFO] -- Estimating required memory"
M1=$(awk -f wGRR_mem.awk -v MINP=1 -v MAXP=10000 $OUT.allpairs.txt $OUT.m8)
REQMEM=$(bc -l <<< "$ARRAYSIZE/10000*$M1*100" | numfmt --to=iec | awk '{U=$0;gsub(/[^A-Za-z]/,"",U);V=$0;gsub(/[A-Za-z]+$/,"",V);split(V,a,".");n=split(a[1],b,"");c=b[1]+1;i=1;while(++i<=n){c=c"0"}print c""U}')
echo "[INFO] -- $REQMEM per job required"
duration=$SECONDS
printf "%-10s -- %s\n" "[TIME]" $(textifyDuration $duration)
echo "[INFO] -- Estimating required memory"
M1=$(awk -f wGRR_mem.awk -v MINP=1 -v MAXP=10000 $OUT.allpairs.txt $OUT.m8)
REQMEM=$(bc -l <<< "$ARRAYSIZE/10000*$M1*100" | numfmt --to=iec | awk '{U=$0;gsub(/[^A-Za-z]/,"",U);V=$0;gsub(/[A-Za-z]+$/,"",V);split(V,a,".");n=split(a[1],b,"");c=b[1]+1;i=1;while(++i<=n){c=c"0"}print c""U}')
echo "[INFO] -- $REQMEM per job required"
duration=$SECONDS
printf "%-10s -- %s\n" "[TIME]" $(textifyDuration $duration)
fi
echo "[INFO] -- Submitting $NJOBS jobs for wGRR calculation"
if [[ $PARTITION == "common" ]] ; then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment