@@ -113,17 +113,19 @@ runs:
113113 # modified output the entire sycl build dir as an artifact, in which the
114114 # intermediate files required can be stitched together from the build files.
115115 # However, this is not exactly "clean" or "fun to maintain"...
116- - name : Build Unified Runtime
116+ - name : Build LLVM
117117 shell : bash
118118 run : |
119- # Build Unified Runtime
119+ echo "::group::checkout_llvm"
120120 # Sparse-checkout UR at build ref:
121121 git clone --depth 1 --no-checkout https://github.com/intel/llvm ur
122122 cd ur
123123 git sparse-checkout init
124124 git sparse-checkout set unified-runtime
125125 git fetch origin ${{ inputs.build_ref }}
126126 git checkout FETCH_HEAD
127+ echo "::endgroup::"
128+ echo "::group::configure_llvm"
127129
128130 # Configure UR
129131 mkdir build install
@@ -135,32 +137,41 @@ runs:
135137 -DUR_BUILD_ADAPTER_L0=ON \
136138 -DUR_BUILD_ADAPTER_L0_V2=ON
137139
138- # Build and install UR
140+ echo "::endgroup::"
141+ echo "::group::build_and_install_llvm"
142+
139143 cmake --build build -j "$(nproc)"
140144 cmake --install build
141145
142146 cd -
147+
148+ echo "::endgroup::"
143149 # Install level zero v1.25.2
144150 # This is to have the latest level zero required by Compute Benchmarks
145151 # Remove this w/a once the sycl nightly images are updated to have level zero v1.25.2
146152 - name : Install level zero v1.25.2
147153 shell : bash
148154 run : |
149- # Install level zero v1.25.2
155+ echo "::group::checkout_level_zero"
150156 # Checkout Level Zero at build ref:
151157 wget https://github.com/oneapi-src/level-zero/archive/refs/tags/v1.25.2.tar.gz -O level-zero-v1.25.2.tar.gz
152158 tar -xvf level-zero-v1.25.2.tar.gz
153159 cd level-zero-1.25.2
154160
155- # Configure Level Zero
161+ echo "::endgroup::"
162+ echo "::group::configure_level_zero"
163+
156164 cmake -DCMAKE_BUILD_TYPE=Release \
157165 -Bbuild
158166
159- # Build and install Level Zero
167+ echo "::endgroup::"
168+ echo "::group::build_and_install_level_zero"
169+
160170 cmake --build build -j "$(nproc)"
161171 sudo cmake --install build
162172
163173 cd -
174+ echo "::endgroup::"
164175 - name : Set env var for results branch
165176 shell : bash
166177 run : |
@@ -181,18 +192,19 @@ runs:
181192 SAVE_PREFIX : ${{ inputs.save_name }}
182193 shell : bash
183194 run : |
184- # Build and run benchmarks
185195 # TODO generate summary + display helpful message here
186196 export CMPLR_ROOT=./toolchain
187- echo "-----"
197+ echo "::group::install_python_deps"
198+ echo "Installing python dependencies..."
188199 # Using --break-system-packages because:
189200 # - venv is not installed
190201 # - unable to install anything via pip, as python packages in the docker
191202 # container are managed by apt
192203 # - apt is unable to install anything due to unresolved dpkg dependencies,
193204 # as a result of how the sycl nightly images are created
194205 pip install --user --break-system-packages -r ./devops/scripts/benchmarks/requirements.txt
195- echo "-----"
206+ echo "::endgroup::"
207+ echo "::group::sycl_ls"
196208
197209 # By default, the benchmark scripts forceload level_zero
198210 FORCELOAD_ADAPTER="${ONEAPI_DEVICE_SELECTOR%%:*}"
@@ -228,7 +240,8 @@ runs:
228240 export COMPUTE_RUNTIME_TAG_CACHE="$(cat ./devops/dependencies.json | jq -r .linux.compute_runtime.github_tag)"
229241
230242 sycl-ls
231- echo "-----"
243+ echo "::endgroup::"
244+ echo "::group::run_benchmarks"
232245
233246 WORKDIR="$(realpath ./llvm_test_workdir)"
234247 if [ -n "$WORKDIR" ] && [ -d "$WORKDIR" ] && [[ "$WORKDIR" == *llvm_test_workdir* ]]; then rm -rf "$WORKDIR" ; fi
@@ -247,7 +260,8 @@ runs:
247260 ${{ inputs.exit_on_failure == 'true' && '--exit-on-failure --iterations 1' || '' }}
248261 # TODO: add back: "--flamegraph inclusive" once works properly
249262
250- echo "-----"
263+ echo "::endgroup::"
264+ echo "::group::compare_results"
251265 python3 ./devops/scripts/benchmarks/compare.py to_hist \
252266 --avg-type EWMA \
253267 --cutoff "$(date -u -d '7 days ago' +'%Y%m%d_%H%M%S')" \
@@ -260,7 +274,9 @@ runs:
260274 --produce-github-summary \
261275 ${{ inputs.dry_run == 'true' && '--dry-run' || '' }} \
262276
263- echo "-----"
277+ echo "::endgroup::"
278+
279+ LLVM_BENCHMARKS_UNIT_TESTING=1 COMPUTE_BENCHMARKS_BUILD_PATH=$WORKDIR/compute-benchmarks-build python3 ./devops/scripts/benchmarks/tests/test_integration.py
264280
265281 - name : Cache changes and upload github summary
266282 if : always()
0 commit comments