#!/bin/ksh # Use this script if you want to run 1 threaded task on a node # but want to schedule both available initiators so other jobs # are not taking your resources. The steps to accomplish this # are as follows: # -execute this script before your poe command/executable # -execute threadll_clean after your executable # -request in your job card 2 tasks per node (you will eventuall have 1) # -request in your job card to have ip protocol instead of us # (you will still get us later when your job starts in one of # the threaded classes). # # IMPORTANT NOTE: Be sure that the following binary is in the correct place and # can be found PARA_API_BIN=/nwprod/util/exec/para_api set -x if [ "x" = "x"$DATA ] then err_exit "DATA variable not set, unable to continue." fi #export MP_INFOLEVEL=3 export MP_RETRY=60 export MP_RETRYCOUNT=10 export MP_HOSTFILE="$DATA/host.list.$LOADL_STEP_NAME" $PARA_API_BIN > $MP_HOSTFILE if [ "$LOADL_STEP_CLASS" = "dev" ] then export LOADL_INTERACTIVE_CLASS=3 elif [ "$LOADL_STEP_CLASS" = "prod" ] then export LOADL_INTERACTIVE_CLASS=4 else export LOADL_INTERACTIVE_CLASS=$LOADL_STEP_CLASS fi exec 1>>$LOADL_STEP_OUT exec 2>>$LOADL_STEP_ERR export MP_PROCS=`wc -l $MP_HOSTFILE | awk ' { print $1 } ' ` export MP_NODE=$MP_PROCS export MP_EUILIB=us export MP_EUIDEVICE=css0 export MP_ADAPTER_USE=shared export LOADLBATCH=no