From 9459e64f6fab70a4ea81247678aece401a07e452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stolarczuk?= Date: Fri, 7 Feb 2025 14:45:12 +0100 Subject: [PATCH] [CI][Bench] Use GPU mask to match the CPU mask and print produced results in CI, just FYI. --- .github/workflows/benchmarks-reusable.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/benchmarks-reusable.yml b/.github/workflows/benchmarks-reusable.yml index e823de389c..8ed794db3b 100644 --- a/.github/workflows/benchmarks-reusable.yml +++ b/.github/workflows/benchmarks-reusable.yml @@ -182,8 +182,8 @@ jobs: - name: Compute core range run: | - # Compute the core range for the first NUMA node, skipping the first 4 cores. - # This is to avoid the first cores that the kernel is likely to schedule more work on. + # Compute the core range for the first NUMA node; second node is for UMF jobs. + # Skip the first 4 cores - the kernel is likely to schedule more work on these. CORES=$(lscpu | awk ' /NUMA node0 CPU|On-line CPU/ {line=$0} END { @@ -192,8 +192,12 @@ jobs: sub(/^0/, "4", b[1]) print b[1] }') + echo "Selected core: $CORES" echo "CORES=$CORES" >> $GITHUB_ENV + ZE_AFFINITY_MASK=0 + echo "ZE_AFFINITY_MASK=$ZE_AFFINITY_MASK" >> $GITHUB_ENV + - name: Run benchmarks working-directory: ${{ github.workspace }}/ur-repo/ id: benchmarks @@ -209,6 +213,10 @@ jobs: ${{ inputs.upload_report && '--output-html' || '' }} ${{ inputs.bench_script_params }} + - name: Print benchmark results + run: | + cat ${{ github.workspace }}/ur-repo/benchmark_results.md + - name: Add comment to PR uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1 if: ${{ always() && inputs.pr_no != 0 }}