-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path3d_tile_runner.sh
36 lines (28 loc) · 1.5 KB
/
3d_tile_runner.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
#!/bin/bash
output_file_name="results/3d_tile_results.csv"
echo "Creating temp/ and results/ folder. Delete temp/ folder when tests are completed."
mkdir -p temp/ results/
echo "num_files,source_x_size,source_y_size,source_z_size,tiles_x_count,tiles_y_count,tiles_z_count,buffer_z_size,separate_time_us,virtual_time_us" > $output_file_name
n_frames_per_file=1000;
tiles_z_count=2;
frame_dimension_length=128;
frame_increase_step=128;
for i in {0..6}
do
# Dimension of image (x and y)
frame_dimension_length=$(($frame_dimension_length+$frame_increase_step));
echo "Executing tests for image size "$frame_dimension_length"x"$frame_dimension_length
for tile_count in {1..2}
do
echo " Generating input files for tile count "$tile_count"x"$tile_count"x"$n_frames_per_file
# Generate the input files.
./bin/hdf5_test_prepare temp/virtual.hdf5 temp/source_%d.hdf5 $frame_dimension_length $frame_dimension_length $n_frames_per_file $tile_count $tile_count $tiles_z_count 10
# Repeat the measurments 10 times to have an average time.
for repeat_measurment in {1..10}
do
echo " Executing tests for tile count "$tile_count"x"$tile_count"x"$n_frames_per_file
# Execute tests and dump result into CSV file.
./bin/hdf5_test_execute temp/virtual.hdf5 temp/source_%d.hdf5 $frame_dimension_length $frame_dimension_length $n_frames_per_file $tile_count $tile_count $tiles_z_count 10 >> $output_file_name
done
done
done