-
Notifications
You must be signed in to change notification settings - Fork 231
53 lines (41 loc) · 1.18 KB
/
perfmon.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: Performance Monitor
on: [push, pull_request]
jobs:
build-test-perfmon:
runs-on: ubuntu-latest
defaults:
run:
working-directory: .testing
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: ./.github/actions/ubuntu-setup
- uses: ./.github/actions/testing-setup
- name: Compile optimized models
if: ${{ github.event_name == 'pull_request' }}
run: >-
make -j build.prof
MOM_TARGET_SLUG=$GITHUB_REPOSITORY
MOM_TARGET_LOCAL_BRANCH=$GITHUB_BASE_REF
DO_REGRESSION_TESTS=true
- name: Generate profile data
if: ${{ github.event_name == 'pull_request' }}
run: >-
pip install f90nml &&
make profile
DO_REGRESSION_TESTS=true
- name: Generate perf data
if: ${{ github.event_name == 'pull_request' }}
run: |
sudo sysctl -w kernel.perf_event_paranoid=2
make perf DO_REGRESSION_TESTS=true
- name: Compile timing tests
run: |
make -j build.timing
- name: Run timing tests
run: |
make -j run.timing
- name: Display timing results
run: |
make -j show.timing