forked from cms-patatrack/CLUEstering
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.76 KB
/
bench_profile_serial.yml
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
50
51
52
53
name: Run benchmark and profiling
# The workflow gets triggered by pushes and pull requests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
# checks out the code in the repository
- uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install matplotlib
sudo apt install -y libboost-dev
- name: Compile and run benchmark
working-directory: ${{ github.workspace }}/benchmark/dataset_size
run: |
cmake -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build -- -j 2
./build/serial.out 10 18
# TODO: this works on local but not on github actions
# - name: Compile and run profiling
# working-directory: ${{ github.workspace }}/benchmark/profiling
# run: |
# cmake -B build/Debug -DCMAKE_BUILD_TYPE=Debug
# cmake --build build/Debug -- -j 2
# cmake -B build/Release -DCMAKE_BUILD_TYPE=Release
# cmake --build build/Release -- -j 2
# ./build/Debug/serial.out ../../data/data_32768.csv
# gprof ./build/Debug/serial.out ../../data/data_32768.csv
# ./build/Release/serial.out ../../data/data_32768.csv
# gprof ./build/Release/serial.out ../../data/data_32768.csv
# - name: Check cache misses with perf
# working-directory: ${{ github.workspace }}/benchmark/profiling
# run: |
# perf stat -B -e cache-misses,cycles,instructions,branches ./build/Debug/serial.out ../../data/data_32768.csv
# perf stat -B -e cache-misses,cycles,instructions,branches ./build/Release/serial.out ../../data/data_32768.csv