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

small fixes

parent e18168a2
No related branches found
No related tags found
No related merge requests found
......@@ -303,7 +303,6 @@ else
REQMEM=""
echo "[INFO] -- Estimating required memory"
M1=$(awk -f wGRR.awk -v MINP=1 -v MAXP=10 -v OUT=$OUT -v MEM=1 $OUT.allpairs.txt $PRT $OUT.m8)
echo $M1
REQMEM=$(bc -l <<< $(numfmt --from=iec $M1)*($ARRAYSIZE/10) | 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
......
......@@ -296,6 +296,6 @@ END {
}
}
if(MEM){
system("ps -wo rss,comm | grep wGRR.awk | grep "OUT" | sort -rn | awk '{print $1;exit}' | numfmt --from-unit=1024 --to=iec" )
system("ps T -wo rss,command | grep wGRR.awk | grep "OUT" | sort -rn | awk '{print $1;exit}' | numfmt --from-unit=1024 --to=iec" )
}
}
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