Skip to content

Commit c3ae8d7

Browse files
Sivasuntharampillai, HareshSivasuntharampillai, Haresh
authored andcommitted
Update rocprofiler-sdk-continuous_integration.yml
2 parents b50dbed + 51b8fd1 commit c3ae8d7

File tree

1 file changed

+27
-26
lines changed

1 file changed

+27
-26
lines changed

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

Lines changed: 27 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ jobs:
5353
strategy:
5454
fail-fast: false
5555
matrix:
56-
runner: ['navi3', 'navi4', 'mi300a']
57-
os: ['ubuntu-22.04']
58-
build-type: ['RelWithDebInfo']
59-
ci-flags: ['--linter clang-tidy']
56+
system: [
57+
{gpu: 'navi3', runner: 'navi3-emu-runner-set', os: 'ubuntu-22.04', build-type: 'RelWithDebInfo', ci-flags: '--linter clang-tidy'},
58+
{gpu: 'navi4', runner: 'navi4-emu-runner-set', os: 'ubuntu-22.04', build-type: 'RelWithDebInfo', ci-flags: '--linter clang-tidy'},
59+
{gpu: 'mi3xx', runner: 'rocprof-ubuntu-22', os: 'ubuntu-22.04', build-type: 'RelWithDebInfo', ci-flags: '--linter clang-tidy'}
60+
]
6061

61-
runs-on: ${{ matrix.runner == 'mi3xx' && 'rocprof-ubuntu-22' || matrix.runner }}-emu-runner-set
62+
runs-on: ${{ matrix.system.runner }}
6263

6364
# define this for containers
6465
env:
@@ -93,7 +94,7 @@ jobs:
9394
ls -la
9495
9596
- name: Enable PC Sampling
96-
if: ${{ contains(matrix.runner, 'mi200') || contains(matrix.runner, 'mi300a') }}
97+
if: ${{ contains(matrix.system.gpu, 'mi200') || contains(matrix.system.gpu, 'mi300a') }}
9798
shell: bash
9899
working-directory: projects/rocprofiler-sdk
99100
run:
@@ -105,41 +106,41 @@ jobs:
105106
working-directory: projects/rocprofiler-sdk
106107
run:
107108
python3 ./source/scripts/run-ci.py -B build
108-
--name ${{ github.repository }}-${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.runner }}-core
109+
--name ${{ github.repository }}-${{ github.ref_name }}-${{ matrix.system.os }}-${{ matrix.system.gpu }}-core
109110
--build-jobs 16
110111
--site ${RUNNER_HOSTNAME}
111112
--gpu-targets ${{ env.GPU_TARGETS }}
112113
--run-attempt ${{ github.run_attempt }}
113-
${{ matrix.ci-flags }}
114+
${{ matrix.system.ci-flags }}
114115
--
115116
-DROCPROFILER_DEP_ROCMCORE=ON
116117
-DROCPROFILER_BUILD_DOCS=OFF
117-
-DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
118+
-DCMAKE_BUILD_TYPE=${{ matrix.system.build-type }}
118119
-DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-sdk
119120
-DCPACK_GENERATOR='DEB;RPM;TGZ'
120121
-DCPACK_PACKAGING_INSTALL_PREFIX="$(realpath /opt/rocm)"
121122
-DPython3_EXECUTABLE=$(which python3)
122123
${{ env.GLOBAL_CMAKE_OPTIONS }}
123124
--
124-
-LE "${${{ matrix.runner }}_EXCLUDE_LABEL_REGEX}"
125-
-E "${${{ matrix.runner }}_EXCLUDE_TESTS_REGEX}"
125+
-LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}"
126+
-E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}"
126127

127128
- name: Install
128-
if: ${{ contains(matrix.runner, env.CORE_EXT_RUNNER) }}
129+
if: ${{ contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
129130
timeout-minutes: 10
130131
working-directory: projects/rocprofiler-sdk
131132
run:
132133
cmake --build build --target install --parallel 16
133134

134135
- name: Build Packaging
135-
if: ${{ contains(matrix.runner, env.CORE_EXT_RUNNER) }}
136+
if: ${{ contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
136137
timeout-minutes: 10
137138
working-directory: projects/rocprofiler-sdk
138139
run:
139140
cmake --build build --target package --parallel 16
140141

141142
- name: Test Install Build
142-
if: ${{ contains(matrix.runner, env.CORE_EXT_RUNNER) }}
143+
if: ${{ contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
143144
timeout-minutes: 20
144145
shell: bash
145146
working-directory: projects/rocprofiler-sdk
@@ -149,11 +150,11 @@ jobs:
149150
export LD_LIBRARY_PATH=/opt/rocprofiler-sdk/lib:${LD_LIBRARY_PATH}
150151
cmake --build build-samples --target all --parallel 16
151152
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
153+
ctest --test-dir build-samples -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
154+
ctest --test-dir build-tests -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
154155
155156
- name: Install Packages
156-
if: ${{ contains(matrix.runner, env.CORE_EXT_RUNNER) }}
157+
if: ${{ contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
157158
timeout-minutes: 5
158159
shell: bash
159160
working-directory: projects/rocprofiler-sdk
@@ -166,7 +167,7 @@ jobs:
166167
for i in $(ls -S ./build/rocprofiler-sdk*.deb | egrep -v 'roctx|rocpd'); do dpkg --force-all -i ${i}; done;
167168
168169
- name: Test Installed Packages
169-
if: ${{ contains(matrix.runner, env.CORE_EXT_RUNNER) }}
170+
if: ${{ contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
170171
timeout-minutes: 20
171172
shell: bash
172173
working-directory: projects/rocprofiler-sdk
@@ -175,11 +176,11 @@ jobs:
175176
CMAKE_PREFIX_PATH=/opt/rocm cmake -B build-tests-deb -DGPU_TARGETS="gfx942" /opt/rocm/share/rocprofiler-sdk/tests
176177
cmake --build build-samples-deb --target all --parallel 16
177178
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
179+
ctest --test-dir build-samples-deb -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
180+
ctest --test-dir build-tests-deb -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
180181

181182
- name: Archive production artifacts
182-
if: ${{ github.event_name == 'workflow_dispatch' && contains(matrix.runner, env.CORE_EXT_RUNNER) }}
183+
if: ${{ github.event_name == 'workflow_dispatch' && contains(matrix.system.gpu, env.CORE_EXT_RUNNER) }}
183184
uses: actions/upload-artifact@v4
184185
with:
185186
name: installers-deb
@@ -194,11 +195,11 @@ jobs:
194195
fail-fast: false
195196
matrix:
196197
runner: ['mi300']
197-
os: ['rhel', 'sles']
198+
os: ['rhel-8', 'sles-15']
198199
build-type: ['RelWithDebInfo']
199200
ci-flags: ['']
200201

201-
runs-on: rocprofiler-${{ matrix.os }}
202+
runs-on: rocprof-${{ matrix.os }}
202203

203204
# define this for containers
204205
env:
@@ -214,7 +215,7 @@ jobs:
214215
working-directory: projects/rocprofiler-sdk
215216
run: |
216217
git config --global --add safe.directory '*'
217-
if [ "${OS_TYPE}" == "rhel" ]; then
218+
if [ "${OS_TYPE}" == "rhel-8" ]; then
218219
dnf makecache
219220
dnf groupinstall -y "Development Tools"
220221
dnf remove -y gcc-c++
@@ -269,13 +270,13 @@ jobs:
269270
strategy:
270271
fail-fast: false
271272
matrix:
272-
runner: ['mi300']
273+
runner: ['mi3xx']
273274
sanitizer: ['AddressSanitizer', 'ThreadSanitizer', 'LeakSanitizer', 'UndefinedBehaviorSanitizer']
274275
os: ['ubuntu-22.04']
275276
build-type: ['RelWithDebInfo']
276277

277278
if: ${{ contains(github.event_name, 'pull_request') }}
278-
runs-on: ${{ matrix.runner == 'mi3xx' && 'rocprofiler-ubuntu-22' || matrix.runner }}-emu-runner-set
279+
runs-on: ${{ matrix.runner == 'mi3xx' && 'rocprof-ubuntu-22' || matrix.runner }}
279280

280281
# define this for containers
281282
env:

0 commit comments

Comments
 (0)