Commit bcb58652 authored by Carl Schreck's avatar Carl Schreck
Browse files

Tweaked bsub_intv to grab a whole ibm node

parent 69a70e50
......@@ -10,15 +10,23 @@ echo $QUEUE
curr_dir=`pwd -L`
job_code=$(cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 4 | head -n 1)
job_name=intv_$job_code
bsub -M 8000000 -o /dev/null -sp 100 -q $QUEUE -W 8:00 -J $job_name sleep 8h
if [ "$QUEUE" == "ibm" ]; then
bsub -n 24 -R "span[hosts=1]" -M 8000000 -o /dev/null -sp 100 -q $QUEUE -W 8:00 -J $job_name sleep 8h
else
bsub -M 8000000 -o /dev/null -sp 100 -q $QUEUE -W 8:00 -J $job_name sleep 8h
fi
job_stat=`bjobs -w | grep $job_name | awk '{ print $3 }'`
while [ "$job_stat" == "PEND" ]; do
job_stat=`bjobs -w | grep $job_name | awk '{ print $3 }'`
done
exec_host=`bjobs -w | grep $job_name | awk '{ print $6 }'`
exec_host=`bjobs -w | grep $job_name | awk '{ print $6 }' | cut -f1 -d":"`
echo $exec_host
ssh -Y $exec_host -t " cd $curr_dir; bash --login;"
if [ "$exec_host" == "c44" ]; then
ssh -p 2222 -Y $exec_host -t " cd $curr_dir; bash --login;"
else
ssh -Y $exec_host -t " cd $curr_dir; bash --login;"
fi
bkill -J $job_name
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