correlation bugfixes

This commit is contained in:
2020-03-03 16:16:10 -05:00
parent 4de34e213e
commit 4b361cccea
2 changed files with 46 additions and 26 deletions

View File

@@ -12,18 +12,24 @@ rank=0
echo $SLURM_NODELIST | tr -d c | tr -d [ | tr -d ] | perl -pe 's/(\d+)-(\d+)/join(",",$1..$2)/eg' | awk 'BEGIN { RS=","} { print "c"$1 }' > $NODEFILE
for node in 'cat $NODEFILE'; do
ssh -n $node "mkdir /tmp/ghaas/ && tar -xf data00.tar.gz -C /tmp/ghaas" & pid[$rank]=$!
for node in `cat $NODEFILE`; do
ssh -n $node "[[ ! -f /tmp/ghaas/KEY ]] || mkdir -p /tmp/ghaas/ && tar -xf /home/ghaas/correlate/data00.tar.gz -C /tmp/ghaas" & pid[$rank]=$!
(( rank++ ))
done
rank=0
for node in 'cat $NODEFILE'; do
for node in `cat $NODEFILE`; do
echo "waiting on" $rank
wait ${pid[$rank]}
rank++
(( rank++ ))
done
rm $NODEFILE
prun ./analyze /tmp/ghaas
rm -r /tmp/ghaas
rank=0
for node in `cat $NODEFILE`; do
ssh -n $node "rm -r /tmp/ghaas" & pid[$rank]=$!
(( rank++ ))
done
rm $NODEFILE