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

SCM Repository

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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2852 - (download) (as text) (annotate)
Mon Dec 15 13:15:11 2014 UTC (4 years, 9 months ago) by lamonts
File size: 679 byte(s)
Updated single script to generate when needed
#!/bin/bash

rm ./boids 
if [ $7 != "generate" ]; then
    make -f genVelo.makefile clean
    make -f genVelo.makefile
    make -f genPosn.makefile clean
    make -f genPosn.makefile
    echo "Create posns.nrrd and velocities.nrrd"
    ./genVelo $2 
    ./genPosns $2 $3 $4 
else
    echo "Keeping previous files"
fi

echo "Compiling boids diderot program" 
../../../bin/diderotc --log --exec --double --disable-high-vn --disable-mid-vn --disable-low-vn --target=$1 --debug boids.diderot 

echo "Running Diderot program"
if [ "$1" == "pthread" ]; then 
	./boids -timing -width $3 -height $4 -queryRadius $5 -seqt $6
else 
	./boids -timing -width $3 -height $4 -queryRadius $5
fi 

root@smlnj-gforge.cs.uchicago.edu
ViewVC Help
Powered by ViewVC 1.0.0