-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.sh
executable file
·26 lines (24 loc) · 1.02 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
#!/usr/bin/bash
# max of 768
#echo "num_particles,run_time(ns)" > Profiling/sequential.csv
#for run in {1..5} ; do
# for num_particles in "100" "500" "1000" "5000" "10000" "50000" "100000" "500000" "1000000"
# do
# echo "running_$run_$num_particles"
# ./particle_filter_cpu "$num_particles" 15 >> Profiling/sequential.csv
# done
#done
echo "block_size,num_particles,run_time(ns)" > Profiling/parallel_manual.csv
for run in {1..5} ; do
for num_particles in "100" "500" "1000" "5000" "10000" "50000" "100000" "500000" "1000000"
do
echo "running_$run_$num_particles"
for block_size in "1" "2" "4" "8" "16" "32" "64" "128" "256" "512"
do
# f_name="$block_size"_"$num_particles"_run_"$run"
# nsys profile --output tmp/"$f_name" ./particle_filter_gpu $num_particles 15 $block_size
# nsys stats tmp/"$f_name".qdrep >> reports/"$f_name".txt
./particle_filter_gpu $num_particles 15 $block_size >> Profiling/parallel_manual.csv
done
done
done