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
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++
0 commit comments