23.10.2014 Views

slides - Spring School in Advanced Computing TACC @ UP

slides - Spring School in Advanced Computing TACC @ UP

slides - Spring School in Advanced Computing TACC @ UP

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SMP Sockets<br />

Hybrid Batch Script 4 tasks/node, 4 threads/task<br />

numa.sh<br />

numa.csh<br />

for mvapich2<br />

#!/b<strong>in</strong>/bash<br />

export MV2_USE_AFFINITY=0<br />

export MV2_ENABLE_AFFINITY=0<br />

#TasksPerNode<br />

TPN=`echo $PE | sed 's/way//'`<br />

[ ! $TPN ] && echo TPN NOT def<strong>in</strong>ed!<br />

[ ! $TPN ] && exit 1<br />

socket=$(( $PMI_RANK % $TPN ))<br />

numactl -N $socket -m $socket ./a.out<br />

#!/b<strong>in</strong>/tcsh<br />

setenv MV2_USE_AFFINITY 0<br />

setenv MV2_ENABLE_AFFINITY 0<br />

#TasksPerNode<br />

set TPN = `echo $PE | sed 's/way//'`<br />

if(! ${%TPN}) echo TPN NOT def<strong>in</strong>ed!<br />

if(! ${%TPN}) exit 0<br />

@ socket = $PMI_RANK % $TPN<br />

numactl -N $socket -m $socket ./a.out<br />

13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!