-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdemo.sh
More file actions
executable file
·38 lines (27 loc) · 859 Bytes
/
demo.sh
File metadata and controls
executable file
·38 lines (27 loc) · 859 Bytes
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
#!/bin/bash
SAMPLES_PER_SEC=1000
SAMPLING_TIME_IN_SECS=9
START_BENCH_DELAY_SECS=1
OUTPUT_FILE=testout1.csv
echo "Starting Demo! Writing to file: ${OUTPUT_FILE}"
# Start taking samples
./main $SAMPLES_PER_SEC $SAMPLING_TIME_IN_SECS > ${OUTPUT_FILE} &
#./main $SAMPLES_PER_SEC $SAMPLING_TIME_IN_SECS "./Main_OutputV1.txt" > ${OUTPUT_FILE} &
waitpid=$!
# Wait some seconds and run the benchmark
sleep $START_BENCH_DELAY_SECS
./NPB/SNU_NPB_2019/NPB3.3-OMP-C/bin/ft.B.x
#sleep $START_BENCH_DELAY_SECS
#./NPB/SNU_NPB_2019/NPB3.3-OMP-C/bin/ft.B.x
#
#sleep $START_BENCH_DELAY_SECS
#./NPB/SNU_NPB_2019/NPB3.3-OMP-C/bin/ft.B.x
echo "FT Benchmark Complete!"
echo "Waiting for sampling to finish..."
# Wait for sampling to finish
wait $waitpid
echo "Generating image..."
python3 ./plotdata.py
xdg-open allLines.jpg
xdg-open meanLines.jpg
echo "Demo complete!"