Skip to content

Commit 4ac4f56

Browse files
committed
CI change WIP
1 parent 09a757c commit 4ac4f56

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

.github/workflows/sycl-ur-perf-benchmarking.yml

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ jobs:
135135
build_sycl_dispatch:
136136
name: '[Dispatch] Build SYCL'
137137
needs: [ sanitize_inputs_dispatch ]
138+
if: never()
138139
uses: ./.github/workflows/sycl-linux-build.yml
139140
with:
140141
build_ref: ${{ needs.sanitize_inputs_dispatch.outputs.build_ref }}
@@ -224,7 +225,7 @@ jobs:
224225
# Benchmark framework builds and runs on PRs path:
225226
build_pr:
226227
name: '[PR] Build SYCL'
227-
if: github.event_name == 'pull_request'
228+
if: never() && github.event_name == 'pull_request'
228229
uses: ./.github/workflows/sycl-linux-build.yml
229230
with:
230231
build_ref: ${{ github.sha }}
@@ -237,6 +238,36 @@ jobs:
237238
changes: ${{ needs.detect_changes.outputs.filters }}
238239
toolchain_artifact: sycl_linux_default
239240

241+
unittest_pr:
242+
name: '[PR] SYCL Unit Tests'
243+
if: github.event_name == 'pull_request'
244+
# needs: [build_pr]
245+
runs-on: PVC_PERF
246+
container:
247+
image: 'ghcr.io/intel/llvm/sycl_ubuntu2404_nightly:latest'
248+
env:
249+
LLVM_BENCHMARKS_UNIT_TESTING: 1
250+
CMPLR_ROOT: ./toolchain
251+
steps:
252+
- name: Install python libraries and dependencies
253+
run: |
254+
pip install --user --break-system-packages -r ./devops/scripts/benchmarks/requirements.txt
255+
- name: Checkout compute benchmarks code
256+
uses: actions/checkout@v3
257+
with:
258+
repository: intel/compute-benchmarks
259+
ref: master
260+
path: compute-benchmarks
261+
- name: Build Compute Benchmarks
262+
run: |
263+
mkdir build && cd build
264+
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DNULL_L0=ON ../compute-benchmarks
265+
cmake --build . -- -j$(nproc)
266+
- name: Run tests
267+
run: |
268+
COMPUTE_BENCHMARK_BUILD_PATH=compute-benchmarks/build python3 ./devops/scripts/benchmarks/tests/test_integration.py
269+
270+
240271
# TODO: When we have stable BMG runner(s), consider moving this job to that runner.
241272
test_benchmark_framework:
242273
name: '[PR] Benchmark suite testing'

devops/scripts/benchmarks/tests/test_integration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def run_main(self, *args):
5454
"./devops/scripts/benchmarks/main.py",
5555
self.WORKDIR_DIR,
5656
"--sycl",
57-
os.environ.get("ONEAPI_ROOT"),
57+
os.environ.get("CMPLR_ROOT"),
5858
"--save",
5959
"testfile",
6060
"--output-html",

0 commit comments

Comments
 (0)