Repository navigation
100 lines (87 loc) · 2.93 KB
/
Copy pathtest-rdna4.yml
File metadata and controls
100 lines (87 loc) · 2.93 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: RDNA4
on:
workflow_dispatch:
schedule:
- cron: "0 */12 * * *"
pull_request:
branches: [ main, dev ]
permissions:
contents: read
jobs:
gpu-collectors-rdna4:
permissions:
contents: read
checks: write
pull-requests: write
runs-on: [linux-gfx120X-gpu-rocm, gfx_gfx1201]
strategy:
matrix:
rocm: [7.2.4]
fail-fast: false
container:
image: rocm/dev-ubuntu-24.04:${{ matrix.rocm }}
options:
--ipc host
--cap-add SYS_PTRACE
--group-add video
--device /dev/kfd
--device /dev/dri/renderD128
defaults:
run:
shell: bash
steps:
- name: Host software
run: |
sudo apt-get update -y
sudo apt install git cmake -y
sudo apt install python3-venv -y
sudo apt install python3-yaml libcurl4-openssl-dev libdw-dev -y
- name: Interrogate
run: |
rocm-smi
which python3
amd-smi version
cat /etc/os-release
amd-smi static --asic --gpu 0
amd-smi metric -E
- name: Checkout code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Update git directory
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Create virtual environment
run: |
python3 -m venv --system-site-packages omnistat_venv
source omnistat_venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
pip install -r test/requirements.txt
pip install "nanobind<3.0"
cmake -S omnistat/rocprofiler-sdk/ -B build/ -DCMAKE_PREFIX_PATH=/opt/rocm
cmake --build build/
cmake --install build/ --prefix .
- name: Build kernel trace library
run: |
cmake -B build -S omnistat/rocprofiler-sdk -DBUILD_KERNEL_TRACE_LIB=ON -DCMAKE_PREFIX_PATH=/opt/rocm
cmake --build build
- name: Build test workloads
run: make -C test/workloads
- name: Collector tests
env:
ROCP_TOOL_LIBRARIES: ${{ github.workspace }}/build/libomnistat_trace.so
LD_LIBRARY_PATH: /opt/rocm/lib
run: |
export HIP_VISIBLE_DEVICES=0
source omnistat_venv/bin/activate
su - ubuntu -c "sleep 300 &"
pytest -s -v --junitxml=results.xml test/test_collectors.py test/test_endpoint_collectors.py test/test_external_collector.py
# skip for dependabot (read-only token)
- name: Publish Test Report
uses: mikepenz/action-junit-report@6ef3fdcfcd5f0b5d14df3e659ef19b8c6820f93d # v6.6.1
if: ${{ !cancelled() && github.actor != 'dependabot[bot]' }}
with:
include_passed: 'true'
report_paths: 'results.xml'
check_name: "Collector Tests (rdna4) - ${{ matrix.rocm }}"
comment: 'true'