Skip to content

Commit 4689af8

Browse files
authored
Merge branch 'amd/hsivasun/modify-workflows' into amd/aelwazir/updating-runners
2 parents d288365 + c3ae8d7 commit 4689af8

File tree

25 files changed

+1225
-64
lines changed

25 files changed

+1225
-64
lines changed

.github/workflows/kws-caller.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Documentation
2+
3+
on:
4+
push:
5+
paths:
6+
- 'projects/rocprofiler-compute/docs/archive/docs-2.x/**'
7+
- 'projects/rocprofiler-compute/docs/archive/docs-1.x/**'
8+
- '.github/workflows/rocprofiler-compute-docs.yml'
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
concurrency:
18+
group: "pages"
19+
cancel-in-progress: true
20+
21+
jobs:
22+
# Build job
23+
build:
24+
runs-on: ubuntu-latest
25+
container:
26+
image: sphinxdoc/sphinx
27+
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v4
31+
with:
32+
sparse-checkout: projects/rocprofiler-compute
33+
- name: Additional python packages
34+
run: |
35+
cd projects/rocprofiler-compute
36+
pip3 install -r docs/archive/requirements-doc.txt
37+
- name: Setup Pages
38+
uses: actions/configure-pages@v4
39+
- name: Build 1.x docs
40+
run: |
41+
cd docs/archive/docs-1.x
42+
make html
43+
- name: Build 2.x docs
44+
run: |
45+
cd docs/archive/docs-2.x
46+
make html
47+
- name: Relocate 1.x docs
48+
run: |
49+
mv docs/archive/docs-1.x/_build/html docs/archive/_build/html/1.x
50+
- name: Upload artifact
51+
uses: actions/upload-pages-artifact@v3
52+
with:
53+
path: ./docs/archive/_build/html
54+
55+
# Deployment job
56+
deploy:
57+
environment:
58+
name: github-pages
59+
url: ${{ steps.deployment.outputs.page_url }}
60+
runs-on: ubuntu-latest
61+
needs: build
62+
steps:
63+
- name: Deploy to GitHub Pages
64+
id: deployment
65+
uses: actions/deploy-pages@v4

.github/workflows/rocprofiler-sdk-continuous_integration.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -53,10 +53,9 @@ jobs:
5353
strategy:
5454
fail-fast: false
5555
matrix:
56-
runner: ['navi3', 'navi4', 'mi300a']
56+
runner: ['navi4', 'navi3', 'mi300']
5757
os: ['ubuntu-22.04']
5858
build-type: ['RelWithDebInfo']
59-
ci-flags: ['--linter clang-tidy']
6059

6160
runs-on: rocprofiler-${{ matrix.runner == 'mi3xx' && 'ubuntu-22' || matrix.runner }}
6261

@@ -93,7 +92,7 @@ jobs:
9392
ls -la
9493
9594
- name: Enable PC Sampling
96-
if: ${{ contains(matrix.runner, 'mi200') || contains(matrix.runner, 'mi300a') }}
95+
if: ${{ contains(matrix.system.gpu, 'mi200') || contains(matrix.system.gpu, 'mi300a') }}
9796
shell: bash
9897
working-directory: projects/rocprofiler-sdk
9998
run:
@@ -105,41 +104,41 @@ jobs:
105104
working-directory: projects/rocprofiler-sdk
106105
run:
107106
python3 ./source/scripts/run-ci.py -B build
108-
--name ${{ github.repository }}-${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.runner }}-core
107+
--name ${{ github.repository }}-${{ github.ref_name }}-${{ matrix.system.os }}-${{ matrix.system.gpu }}-core
109108
--build-jobs 16
110109
--site ${RUNNER_HOSTNAME}
111110
--gpu-targets ${{ env.GPU_TARGETS }}
112111
--run-attempt ${{ github.run_attempt }}
113-
${{ matrix.ci-flags }}
112+
${{ matrix.system.ci-flags }}
114113
--
115114
-DROCPROFILER_DEP_ROCMCORE=ON
116115
-DROCPROFILER_BUILD_DOCS=OFF
117-
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
116+
-DCMAKE_BUILD_TYPE=${{ matrix.system.build-type }}
118117
-DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-sdk
119118
-DCPACK_GENERATOR='DEB;RPM;TGZ'
120119
-DCPACK_PACKAGING_INSTALL_PREFIX="$(realpath /opt/rocm)"
121120
-DPython3_EXECUTABLE=$(which python3)
122121
${{ env.GLOBAL_CMAKE_OPTIONS }}
123122
--
124-
-LE "${${{ matrix.runner }}_EXCLUDE_LABEL_REGEX}"
125-
-E "${${{ matrix.runner }}_EXCLUDE_TESTS_REGEX}"
123+
-LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}"
124+
-E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}"
126125

127126
- name: Install
128-
if: ${{ contains(matrix.runner, env.CORE_EXT_RUNNER) }}
127+
if: ${{ contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
129128
timeout-minutes: 10
130129
working-directory: projects/rocprofiler-sdk
131130
run:
132131
cmake --build build --target install --parallel 16
133132

134133
- name: Build Packaging
135-
if: ${{ contains(matrix.runner, env.CORE_EXT_RUNNER) }}
134+
if: ${{ contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
136135
timeout-minutes: 10
137136
working-directory: projects/rocprofiler-sdk
138137
run:
139138
cmake --build build --target package --parallel 16
140139

141140
- name: Test Install Build
142-
if: ${{ contains(matrix.runner, env.CORE_EXT_RUNNER) }}
141+
if: ${{ contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
143142
timeout-minutes: 20
144143
shell: bash
145144
working-directory: projects/rocprofiler-sdk
@@ -149,11 +148,11 @@ jobs:
149148
export LD_LIBRARY_PATH=/opt/rocprofiler-sdk/lib:${LD_LIBRARY_PATH}
150149
cmake --build build-samples --target all --parallel 16
151150
cmake --build build-tests --target all --parallel 16
152-
ctest --test-dir build-samples -LE "${${{ matrix.runner }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.runner }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
153-
ctest --test-dir build-tests -LE "${${{ matrix.runner }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.runner }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
151+
ctest --test-dir build-samples -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
152+
ctest --test-dir build-tests -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
154153
155154
- name: Install Packages
156-
if: ${{ contains(matrix.runner, env.CORE_EXT_RUNNER) }}
155+
if: ${{ contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
157156
timeout-minutes: 5
158157
shell: bash
159158
working-directory: projects/rocprofiler-sdk
@@ -166,7 +165,7 @@ jobs:
166165
for i in $(ls -S ./build/rocprofiler-sdk*.deb | egrep -v 'roctx|rocpd'); do dpkg --force-all -i ${i}; done;
167166
168167
- name: Test Installed Packages
169-
if: ${{ contains(matrix.runner, env.CORE_EXT_RUNNER) }}
168+
if: ${{ contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
170169
timeout-minutes: 20
171170
shell: bash
172171
working-directory: projects/rocprofiler-sdk
@@ -175,11 +174,11 @@ jobs:
175174
CMAKE_PREFIX_PATH=/opt/rocm cmake -B build-tests-deb -DGPU_TARGETS="gfx942" /opt/rocm/share/rocprofiler-sdk/tests
176175
cmake --build build-samples-deb --target all --parallel 16
177176
cmake --build build-tests-deb --target all --parallel 16
178-
ctest --test-dir build-samples-deb -LE "${${{ matrix.runner }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.runner }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
179-
ctest --test-dir build-tests-deb -LE "${${{ matrix.runner }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.runner }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
177+
ctest --test-dir build-samples-deb -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
178+
ctest --test-dir build-tests-deb -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
180179

181180
- name: Archive production artifacts
182-
if: ${{ github.event_name == 'workflow_dispatch' && contains(matrix.runner, env.CORE_EXT_RUNNER) }}
181+
if: ${{ github.event_name == 'workflow_dispatch' && contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
183182
uses: actions/upload-artifact@v4
184183
with:
185184
name: installers-deb
@@ -194,11 +193,11 @@ jobs:
194193
fail-fast: false
195194
matrix:
196195
runner: ['mi300']
197-
os: ['rhel', 'sles']
196+
os: ['rhel-8', 'sles-15']
198197
build-type: ['RelWithDebInfo']
199198
ci-flags: ['']
200199

201-
runs-on: rocprofiler-${{ matrix.os }}
200+
runs-on: rocprof-${{ matrix.os }}
202201

203202
# define this for containers
204203
env:
@@ -214,7 +213,7 @@ jobs:
214213
working-directory: projects/rocprofiler-sdk
215214
run: |
216215
git config --global --add safe.directory '*'
217-
if [ "${OS_TYPE}" == "rhel" ]; then
216+
if [ "${OS_TYPE}" == "rhel-8" ]; then
218217
dnf makecache
219218
dnf groupinstall -y "Development Tools"
220219
dnf remove -y gcc-c++

.github/workflows/rocprofiler-systems-containers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ jobs:
7171
timeout_minutes: 45
7272
max_attempts: 3
7373
command: |
74-
projects/rocprofiler-systems/docker
74+
pushd projects/rocprofiler-systems/docker
7575
./build-docker-ci.sh --distro ${{ matrix.distro }} --versions ${{ matrix.version }} --user ${{ secrets.DOCKERHUB_USERNAME }} --push --jobs 2 --elfutils-version 0.186 --boost-version 1.79.0
7676
popd
7777
Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
name: "CodeQL Advanced"
2+
3+
on:
4+
push:
5+
branches: [ "amd-staging" ]
6+
pull_request:
7+
branches: [ "amd-staging" ]
8+
schedule:
9+
- cron: '0 0 * * *'
10+
11+
env:
12+
EXCLUDED_PATHS: ""
13+
14+
jobs:
15+
analyze:
16+
name: Analyze (${{ matrix.language }})
17+
# Runner size impacts CodeQL analysis time. To learn more, please see:
18+
# - https://gh.io/recommended-hardware-resources-for-running-codeql
19+
# - https://gh.io/supported-runners-and-hardware-resources
20+
# - https://gh.io/using-larger-runners (GitHub.com only)
21+
# Consider using larger runners or machines with greater resources for possible analysis time improvements.
22+
runs-on: AMD-ROCm-Internal-dev1
23+
container: rocm/dev-ubuntu-22.04:latest
24+
permissions:
25+
# required for all workflows
26+
security-events: write
27+
28+
# required to fetch internal or private CodeQL packs
29+
packages: read
30+
31+
# only required for workflows in private repositories
32+
actions: read
33+
contents: read
34+
35+
strategy:
36+
fail-fast: false
37+
matrix:
38+
include:
39+
- language: c-cpp
40+
build-mode: manual
41+
- language: python
42+
build-mode: none
43+
- language: actions
44+
build-mode: none
45+
46+
steps:
47+
- name: Install OS requirements
48+
timeout-minutes: 10
49+
shell: bash
50+
run: |
51+
sudo apt update
52+
sudo apt install -y software-properties-common
53+
sudo apt-add-repository ppa:git-core/ppa
54+
sudo apt-get update
55+
sudo apt install -y git
56+
57+
- name: Checkout repository
58+
uses: actions/checkout@v4
59+
60+
- if: matrix.build-mode == 'manual'
61+
name: Install requirements
62+
timeout-minutes: 10
63+
shell: bash
64+
run: |
65+
git config --global --add safe.directory '*'
66+
apt-get update
67+
apt-get install -y build-essential cmake g++-11 g++-12 python3-pip libdw-dev rocm-llvm-dev libgtest-dev libgmock-dev
68+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 10 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11
69+
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 20 --slave /usr/bin/g++ g++ /usr/bin/g++-12 --slave /usr/bin/gcov gcov /usr/bin/gcov-12
70+
71+
# Initializes the CodeQL tools for scanning.
72+
- name: Initialize CodeQL
73+
uses: github/codeql-action/init@v3
74+
with:
75+
languages: ${{ matrix.language }}
76+
build-mode: ${{ matrix.build-mode }}
77+
queries: security-extended
78+
# If you wish to specify custom queries, you can do so here or in a config file.
79+
# By default, queries listed here will override any specified in a config file.
80+
# Prefix the list here with "+" to use these queries and those in the config file.
81+
82+
# For more details on CodeQL's query packs, refer to: https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/configuring-code-scanning#using-queries-in-ql-packs
83+
# queries: security-extended,security-and-quality
84+
85+
# If the analyze step fails for one of the languages you are analyzing with
86+
# "We were unable to automatically build your code", modify the matrix above
87+
# to set the build mode to "manual" for that language. Then modify this step
88+
# to build your code.
89+
# ℹ️ Command-line programs to run using the OS shell.
90+
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
91+
- if: matrix.build-mode == 'manual'
92+
name: Configure and Build
93+
timeout-minutes: 30
94+
shell: bash
95+
run: |
96+
cmake -B /tmp/build -DGPU_TARGETS='gfx906,gfx90a,gfx942,gfx1101,gfx1201' -DCMAKE_PREFIX_PATH=/opt/rocm
97+
cmake --build /tmp/build --target all --parallel 16
98+
99+
- name: Perform CodeQL Analysis
100+
uses: github/codeql-action/analyze@v3
101+
with:
102+
category: "/language:${{matrix.language}}"

0 commit comments

Comments
 (0)