-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgigafrost_tile_runner.sh
31 lines (23 loc) · 1.29 KB
/
gigafrost_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
#!/bin/bash
output_file_name="results/gigafrost_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;
frame_dimension_length=1024;
tile_count=2;
buffer_z_size=1;
tile_z_size=4;
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 $tile_z_size $buffer_z_size
for buffer_z_size in 1 10 50 100 250 500
do
# 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" and buffer z size "$buffer_z_size
# 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 $tile_z_size $buffer_z_size >> $output_file_name
done
done