Home My Page Projects Code Snippets Project Openings diderot
Summary Activity Tracker Tasks SCM

SCM Repository

[diderot] View of /branches/lamont/test/boids/benchmark/both.sh
ViewVC logotype

View of /branches/lamont/test/boids/benchmark/both.sh

Parent Directory Parent Directory | Revision Log Revision Log

Revision 3282 - (download) (as text) (annotate)
Tue Oct 13 19:46:34 2015 UTC (4 years, 3 months ago) by lamonts
File size: 1062 byte(s)
Fixed bug with dead strands appearing in query lists

rm ./boids
rm seqTiming
rm parTiming

if [ $7 != "-rerun" ]; then
    echo "Compile Positions and Velocities programs"
    make -f genVelo.makefile clean 
    make -f genVelo.makefile 
    make -f genPosn.makefile clean 
    make -f genPosn.makefile 

    echo "Generating Positions and Velocities" 
    ./genVelo  $1
    ./genPosns $1 $2 $3
    echo "Rerunning last execution with the same positions/velocities"

echo "Running the sequential version"
../../../bin/diderotc --log --debug --double --exec --disable-high-vn --disable-mid-vn --disable-low-vn --target=c boids.diderot
./boids -spatialTiming -timing -queryRadius $4 -width $2 -height $3 > seqTiming

echo "Running the parallel version"
../../../bin/diderotc --log --debug --double --exec --disable-high-vn --disable-mid-vn --disable-low-vn --target=pthread boids.diderot
./boids -spatialTiming -timing -queryRadius $4 -width $2 -height $3 -seqt $5 -np $6 > parTiming

echo "Timing Results"
echo "===Parallel Timing==="
cat parTiming
echo "====Sequential Timing==="
cat seqTiming

ViewVC Help
Powered by ViewVC 1.0.0