forked from learning-process/parallel_programming_course
-
Notifications
You must be signed in to change notification settings - Fork 2
71 lines (68 loc) · 2.06 KB
/
Copy pathperf.yml
File metadata and controls
71 lines (68 loc) · 2.06 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Performance
on:
workflow_call:
permissions:
contents: read
packages: read
jobs:
ubuntu-gcc-build-perf-stats:
runs-on: ubuntu-26.04
container:
image: ghcr.io/learning-process/ppc-ubuntu:1.3
credentials:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v6
- name: Setup environment
run: |
python3 -m pip install -r requirements.txt --break-system-packages --ignore-installed
- name: Download installed package
uses: ./.github/actions/download-install
with:
path: install
name: ubuntu-gcc-install-ubuntu-26.04
- name: Run perf tests
run: |
scripts/run_tests.py --running-type=performance
env:
PPC_NUM_PROC: 2
PPC_NUM_THREADS: 2
OMPI_ALLOW_RUN_AS_ROOT: 1
OMPI_ALLOW_RUN_AS_ROOT_CONFIRM: 1
- name: Archive results
working-directory: build
run: zip -r ../perf-stat.zip perf_stat_dir
- name: Upload results
uses: actions/upload-artifact@v7
with:
name: perf-stat
path: perf-stat.zip
macos-clang-build-perf-stats:
runs-on: macOS-26
steps:
- uses: actions/checkout@v6
- name: Setup macOS toolchain
uses: ./.github/actions/setup-macos-toolchain
- name: Setup environment
run: |
python3 -m pip install -r requirements.txt --break-system-packages
- name: Download installed package
uses: ./.github/actions/download-install
with:
path: install
name: macos-clang-install
- name: Run perf tests
run: |
scripts/run_tests.py --running-type=performance
env:
PPC_NUM_PROC: 1
PPC_NUM_THREADS: 2
- name: Archive results
working-directory: build
run: zip -r perf-stat-macos.zip perf_stat_dir
- name: Upload results
uses: actions/upload-artifact@v7
with:
name: perf-stat-macos
path: perf-stat-macos.zip