#!/bin/csh # set three parameters below to L1, L2, L3 dinero command lines # this example is set to approximate the course alpha servers set _L1_="dinero -i8K -d8K -b32 -ww -An -a1 -B8 -W8" set _L2_="dinero -u96K -b32 -wc -Aw -a3 -rr -B8 -W8" set _L3_="dinero -u8M -b32 -wc -Aw -a1 -B8 -W8" set _limit_="-z100000000000" # set command line below to generate the trace # if an existing trace file, use a "cat" command # if an atom-ized program then run the program set _cmd_="matmul.atomd" # set these three variables to the file names you want dinero stats stored in set _fL1_=L1.out set _fL2_=L2.out set _fL3_=L3.out # normally you won't have to edit past this point... date; uptime set _awkcmd_="awk -f multilev.awk -v " rm $_fL1_ ; rm $_fL2_ ; rm $_fL3_ echo $_cmd_ "|" $_L1_ $_limit_ -o2 "|" $_awkcmd_ fn=L1.out "|" $_L2_ $_limit_ -o2 "|" $_awkcmd_ fn=L2.out "|" $_L3_ $_limit_ ">" L3.out $_cmd_ | $_L1_ $_limit_ -o2 | $_awkcmd_ fn=L1.out | $_L2_ $_limit_ -o2 | $_awkcmd_ fn=L2.out | $_L3_ $_limit_ > L3.out echo "L1 information is in file:" $_fL1_ echo "L2 information is in file:" $_fL2_ echo "L3 information is in file:" $_fL3_ unset _L1_ ; unset _L2_ ; unset _L3_ ; unset _cmd_ ; unset _awkcmd_ ; unset _limit_ date; uptime