Skip to content

Commit

Permalink
Update profile script
Browse files Browse the repository at this point in the history
  • Loading branch information
al-ro committed Jan 18, 2024
1 parent 3bad0bf commit fde7e55
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions profile.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,31 +17,13 @@ function cancel {

trap cancel SIGQUIT

for scene in `seq 0 2`
do
echo -n "GPU BVH $scene..."
file="GPU_BVH"$scene".out"
./PathTracer -w $width -h $height -p $scene -d 0 -a 1>$file
timing="$(grep "$prefix" $file)"
echo "$timing" | sed -e "s/^$prefix//"
done

for scene in `seq 0 2`
do
echo -n "GPU scene $scene..."
file="GPU_scene"$scene".out"
./PathTracer -w $width -h $height -s $samples -p $scene -d 0 1>$file
timing="$(grep "$prefix" $file)"
echo "$timing" | sed -e "s/^$prefix//"
done

for scene in `seq 0 2`
do
for i in ${threads[@]}
do
echo -n "CPU BVH $scene threads $i..."
file="CPU_BVH_"$scene"_threads_"$i".out"
./PathTracer -w $width -h $height -p $scene -d 1 -t $i -a 1>$file
./PathTracer -w $width -h $height -p $scene -t $i -a 1>$file
timing="$(grep "$prefix" $file)"
echo "$timing" | sed -e "s/^$prefix//"
done
Expand All @@ -53,7 +35,7 @@ do
do
echo -n "CPU scene $scene threads $i..."
file="CPU_scene_"$scene"_threads_"$i".out"
./PathTracer -w $width -h $height -s $samples -p $scene -d 1 -t $i 1>$file
./PathTracer -w $width -h $height -s $samples -p $scene -t $i 1>$file
timing="$(grep "$prefix" $file)"
echo "$timing" | sed -e "s/^$prefix//"
done
Expand Down

0 comments on commit fde7e55

Please sign in to comment.