IBM®
Skip to main content
    Country/region [select]      Terms of use
 
 
    
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerworks > My developerWorks >  Dashboard > Linux for Power Architecture > ... > Benchmarks > psnap
developerWorks
Log In   View a printable version of the current page.
Overview Connect Spaces Forums Wikis
psnap
Added by billburos, last edited by billburos on Oct 15, 2009  (view change)
Labels: 
(None)

Download the latest psnap http://wwwc3.lanl.gov/pal/software/psnap/

On SLES 11, install openmpi* packages

http://wwwc3.lanl.gov/pal/software/psnap/

tar -zxf psnap-1.2.tgz
cd psnap-1.2
make
export LD_LIBRARY_PATH=/usr/local/openmpi/lib:/usr/lib64/mpi/gcc/openmpi/lib64
./psnap

Run it in mpi mode..

#!/bin/bash

commandline="mpirun "
cpus=`cat /proc/cpuinfo | grep processor | wc -l`
let cpus=$cpus-1

if [ ".$1" == ".odd" ]; then
   cpulist=`seq 1 2 $cpus`
elif [ ".$1" == ".even" ]; then
   cpulist=`seq 0 2 $cpus`
else
   cpulist=`seq 0 $cpus`
fi

for i in $cpulist; do
   commandline=$commandline"-np 1 taskset -c $i ./psnap : "
done
echo $commandline
$commandline


 
    About IBM Privacy Contact