@@ -52,12 +52,13 @@ jobs:
5252 strategy :
5353 fail-fast : false
5454 matrix :
55- runner : ['navi3', 'navi4', 'mi300a']
56- os : ['ubuntu-22.04']
57- build-type : ['RelWithDebInfo']
58- ci-flags : ['--linter clang-tidy']
55+ system : [
56+ {gpu: 'navi3', runner: 'navi3-emu-runner-set', os: 'ubuntu-22.04', build-type: 'RelWithDebInfo', ci-flags: '--linter clang-tidy'},
57+ {gpu: 'navi4', runner: 'navi4-emu-runner-set', os: 'ubuntu-22.04', build-type: 'RelWithDebInfo', ci-flags: '--linter clang-tidy'},
58+ {gpu: 'mi3xx', runner: 'rocprof-ubuntu-22', os: 'ubuntu-22.04', build-type: 'RelWithDebInfo', ci-flags: '--linter clang-tidy'}
59+ ]
5960
60- runs-on : ${{ matrix.runner == 'mi3xx' && 'rocprof-azure' || matrix .runner }}-emu-runner-set
61+ runs-on : ${{ matrix.system .runner }}
6162
6263 # define this for containers
6364 env :
9091 ls -la
9192
9293 - name : Enable PC Sampling
93- if : ${{ contains(matrix.runner , 'mi200') || contains(matrix.runner , 'mi300a') }}
94+ if : ${{ contains(matrix.system.gpu , 'mi200') || contains(matrix.system.gpu , 'mi300a') }}
9495 shell : bash
9596 run : |
9697 echo 'ROCPROFILER_PC_SAMPLING_BETA_ENABLED=1' >> $GITHUB_ENV
@@ -100,39 +101,39 @@ jobs:
100101 shell : bash
101102 run :
102103 python3 ./source/scripts/run-ci.py -B build
103- --name ${{ github.repository }}-${{ github.ref_name }}-${{ matrix.os }}-${{ matrix.runner }}-core
104+ --name ${{ github.repository }}-${{ github.ref_name }}-${{ matrix.system. os }}-${{ matrix.system.gpu }}-core
104105 --build-jobs 16
105106 --site ${RUNNER_HOSTNAME}
106107 --gpu-targets ${{ env.GPU_TARGETS }}
107108 --run-attempt ${{ github.run_attempt }}
108- ${{ matrix.ci-flags }}
109+ ${{ matrix.system. ci-flags }}
109110 --
110111 -DROCPROFILER_DEP_ROCMCORE=ON
111112 -DROCPROFILER_BUILD_DOCS=OFF
112- -DCMAKE_BUILD_TYPE=${{ matrix.build-type }}
113+ -DCMAKE_BUILD_TYPE=${{ matrix.system. build-type }}
113114 -DCMAKE_INSTALL_PREFIX=/opt/rocprofiler-sdk
114115 -DCPACK_GENERATOR='DEB;RPM;TGZ'
115116 -DCPACK_PACKAGING_INSTALL_PREFIX="$(realpath /opt/rocm)"
116117 -DPython3_EXECUTABLE=$(which python3)
117118 ${{ env.GLOBAL_CMAKE_OPTIONS }}
118119 --
119- -LE "${${{ matrix.runner }}_EXCLUDE_LABEL_REGEX}"
120- -E "${${{ matrix.runner }}_EXCLUDE_TESTS_REGEX}"
120+ -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}"
121+ -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}"
121122
122123 - name : Install
123- if : ${{ contains(matrix.runner , env.CORE_EXT_RUNNER) }}
124+ if : ${{ contains(matrix.system.gpu , env.CORE_EXT_RUNNER) }}
124125 timeout-minutes : 10
125126 run :
126127 cmake --build build --target install --parallel 16
127128
128129 - name : Build Packaging
129- if : ${{ contains(matrix.runner , env.CORE_EXT_RUNNER) }}
130+ if : ${{ contains(matrix.system.gpu , env.CORE_EXT_RUNNER) }}
130131 timeout-minutes : 10
131132 run :
132133 cmake --build build --target package --parallel 16
133134
134135 - name : Test Install Build
135- if : ${{ contains(matrix.runner , env.CORE_EXT_RUNNER) }}
136+ if : ${{ contains(matrix.system.gpu , env.CORE_EXT_RUNNER) }}
136137 timeout-minutes : 20
137138 shell : bash
138139 run : |
@@ -141,11 +142,11 @@ jobs:
141142 export LD_LIBRARY_PATH=/opt/rocprofiler-sdk/lib:${LD_LIBRARY_PATH}
142143 cmake --build build-samples --target all --parallel 16
143144 cmake --build build-tests --target all --parallel 16
144- ctest --test-dir build-samples -LE "${${{ matrix.runner }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.runner }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
145- ctest --test-dir build-tests -LE "${${{ matrix.runner }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.runner }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
145+ ctest --test-dir build-samples -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
146+ ctest --test-dir build-tests -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
146147
147148 - name : Install Packages
148- if : ${{ contains(matrix.runner , env.CORE_EXT_RUNNER) }}
149+ if : ${{ contains(matrix.system.gpu , env.CORE_EXT_RUNNER) }}
149150 timeout-minutes : 5
150151 shell : bash
151152 run : |
@@ -157,19 +158,19 @@ jobs:
157158 for i in $(ls -S ./build/rocprofiler-sdk*.deb | egrep -v 'roctx|rocpd'); do dpkg --force-all -i ${i}; done;
158159
159160 - name : Test Installed Packages
160- if : ${{ contains(matrix.runner , env.CORE_EXT_RUNNER) }}
161+ if : ${{ contains(matrix.system.gpu , env.CORE_EXT_RUNNER) }}
161162 timeout-minutes : 20
162163 shell : bash
163164 run : |
164165 CMAKE_PREFIX_PATH=/opt/rocm cmake -B build-samples-deb /opt/rocm/share/rocprofiler-sdk/samples
165166 CMAKE_PREFIX_PATH=/opt/rocm cmake -B build-tests-deb -DGPU_TARGETS="gfx942" /opt/rocm/share/rocprofiler-sdk/tests
166167 cmake --build build-samples-deb --target all --parallel 16
167168 cmake --build build-tests-deb --target all --parallel 16
168- ctest --test-dir build-samples-deb -LE "${${{ matrix.runner }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.runner }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
169- ctest --test-dir build-tests-deb -LE "${${{ matrix.runner }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.runner }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
169+ ctest --test-dir build-samples-deb -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
170+ ctest --test-dir build-tests-deb -LE "${${{ matrix.system.gpu }}_EXCLUDE_LABEL_REGEX}" -E "${${{ matrix.system.gpu }}_EXCLUDE_TESTS_REGEX}" --output-on-failure
170171
171172 - name : Archive production artifacts
172- if : ${{ github.event_name == 'workflow_dispatch' && contains(matrix.runner , env.CORE_EXT_RUNNER) }}
173+ if : ${{ github.event_name == 'workflow_dispatch' && contains(matrix.system.gpu , env.CORE_EXT_RUNNER) }}
173174 uses : actions/upload-artifact@v4
174175 with :
175176 name : installers-deb
@@ -184,11 +185,11 @@ jobs:
184185 fail-fast : false
185186 matrix :
186187 runner : ['mi300']
187- os : ['rhel', 'sles']
188+ os : ['rhel-8 ', 'sles-15 ']
188189 build-type : ['RelWithDebInfo']
189190 ci-flags : ['']
190191
191- runs-on : rocprof-azure- ${{ matrix.os }}-emu-runner-set
192+ runs-on : rocprof-${{ matrix.os }}
192193
193194 # define this for containers
194195 env :
@@ -203,7 +204,7 @@ jobs:
203204 shell : bash
204205 run : |
205206 git config --global --add safe.directory '*'
206- if [ "${OS_TYPE}" == "rhel" ]; then
207+ if [ "${OS_TYPE}" == "rhel-8 " ]; then
207208 dnf makecache
208209 dnf groupinstall -y "Development Tools"
209210 dnf remove -y gcc-c++
@@ -255,13 +256,13 @@ jobs:
255256 strategy :
256257 fail-fast : false
257258 matrix :
258- runner : ['mi300 ']
259+ runner : ['mi3xx ']
259260 sanitizer : ['AddressSanitizer', 'ThreadSanitizer', 'LeakSanitizer', 'UndefinedBehaviorSanitizer']
260261 os : ['ubuntu-22.04']
261262 build-type : ['RelWithDebInfo']
262263
263264 if : ${{ contains(github.event_name, 'pull_request') }}
264- runs-on : ${{ matrix.runner == 'mi3xx' && 'rocprof-azure ' || matrix.runner }}-emu-runner-set
265+ runs-on : ${{ matrix.runner == 'mi3xx' && 'rocprof-ubuntu-22 ' || matrix.runner }}
265266
266267 # define this for containers
267268 env :
0 commit comments