-
Notifications
You must be signed in to change notification settings - Fork 12
/
profile.sh
executable file
·49 lines (38 loc) · 2.14 KB
/
profile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# echo "Size 64x64x64"
# echo "---"
# echo "Sphere"
# echo "GPU algorithm:"
# ./build/bin/voxelizer -r 64 ./data/sphere/sphere.obj ./data/sphere/sphere_voxelized_gpu.obj | grep -E "seconds|Triangles"
# echo "CPU algorithm:"
# ./sample/voxelizer ./data/sphere/sphere.obj ./data/sphere/sphere_voxelized_cpu.obj | grep -E "seconds"
# echo "\nBunny"
# echo "GPU algorithm:"
# ./build/bin/voxelizer -r 64 ./data/bunny/bunny.obj ./data/bunny/bunny_voxelized_gpu.obj | grep -E "seconds|Triangles"
# echo "CPU algorithm:"
# ./sample/voxelizer ./data/bunny/bunny.obj ./data/bunny/bunny_voxelized_cpu.obj | grep -E "seconds"
# echo "\nTeapot"
# echo "GPU algorithm:"
# ./build/bin/voxelizer -r 64 ./data/teapot/teapot.obj ./data/teapot/teapot_voxelized_gpu.obj | grep -E "seconds|Triangles"
# echo "CPU algorithm:"
# ./sample/voxelizer ./data/teapot/teapot.obj ./data/teapot/teapot_voxelized_cpu.obj | grep -E "seconds"
mkdir tmp
# ./build/bin/voxelizer -r 64 ./data/sphere/sphere.obj ./tmp/o | grep "Summary:"
# ./build/bin/voxelizer -r 64 ./data/teapot/teapot.obj ./tmp/o | grep "Summary:"
# ./build/bin/voxelizer -r 64 ./data/bunny/bunny.obj ./tmp/o | grep "Summary:"
# echo ""
# ./build/bin/voxelizer -r 128 ./data/sphere/sphere.obj ./tmp/o | grep "Summary:"
# ./build/bin/voxelizer -r 128 ./data/teapot/teapot.obj ./tmp/o | grep "Summary:"
# ./build/bin/voxelizer -r 128 ./data/bunny/bunny.obj ./tmp/o | grep "Summary:"
# echo ""
# ./build/bin/voxelizer -r 256 ./data/sphere/sphere.obj ./tmp/o | grep "Summary:"
# ./build/bin/voxelizer -r 256 ./data/teapot/teapot.obj ./tmp/o | grep "Summary:"
# ./build/bin/voxelizer -r 256 ./data/bunny/bunny.obj ./tmp/o | grep "Summary:"
# echo ""
./build/bin/voxelizer -r 512 ./data/sphere/sphere.obj ./tmp/o | grep "Summary:"
./build/bin/voxelizer -r 512 ./data/teapot/teapot.obj ./tmp/o | grep "Summary:"
./build/bin/voxelizer -r 512 ./data/bunny/bunny.obj ./tmp/o | grep "Summary:"
echo ""
./build/bin/voxelizer -r 1024 ./data/sphere/sphere.obj ./tmp/o | grep "Summary:"
./build/bin/voxelizer -r 1024 ./data/teapot/teapot.obj ./tmp/o | grep "Summary:"
./build/bin/voxelizer -r 1024 ./data/bunny/bunny.obj ./tmp/o | grep "Summary:"
rm -rf tmp