From 2dcd5061b149ccdcd7161a61970bfeca559d6918 Mon Sep 17 00:00:00 2001 From: Patryk Kaminski Date: Mon, 11 Mar 2024 14:58:51 +0100 Subject: [PATCH] Run fuzztests on L0 HW in CI instead of running fuzztests in CI on the null adapter. --- .github/workflows/cmake.yml | 9 ++++++--- .github/workflows/nightly.yml | 10 ++++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 085ab7ec19..238b28737e 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -115,14 +115,15 @@ jobs: working-directory: ${{github.workspace}}/build run: ctest -C ${{matrix.build_type}} --output-on-failure -L "umf|loader|validation|tracing|unit|urtrace" - fuzztest-build: - name: Build and run quick fuzztest scenarios + fuzztest-build-hw: + name: Build and run quick fuzztest scenarios on L0 HW + if: github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW strategy: matrix: build_type: [Debug, Release] compiler: [{c: clang, cxx: clang++}] - runs-on: 'ubuntu-22.04' + runs-on: 'L0' steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -151,8 +152,10 @@ jobs: -DUR_BUILD_TESTS=ON -DUR_USE_ASAN=ON -DUR_USE_UBSAN=ON + -DUR_BUILD_ADAPTER_L0=ON -DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++ -DUR_CONFORMANCE_TARGET_TRIPLES=spir64 + -DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib - name: Build run: cmake --build ${{github.workspace}}/build -j $(nproc) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index b99770c3db..41c369db9a 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -9,14 +9,15 @@ permissions: contents: read jobs: - long-fuzz-test: + long-fuzz-test-hw: name: Run long fuzz tests + if: github.repository == 'oneapi-src/unified-runtime' # run only on upstream; forks won't have the HW strategy: matrix: build_type: [Debug, Release] compiler: [{c: clang, cxx: clang++}] - runs-on: 'ubuntu-22.04' + runs-on: 'L0' steps: - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -41,12 +42,13 @@ jobs: -DUR_BUILD_TESTS=ON -DUR_USE_ASAN=ON -DUR_USE_UBSAN=ON + -DUR_BUILD_ADAPTER_L0=ON -DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++ -DUR_CONFORMANCE_TARGET_TRIPLES=spir64 + -DUR_SYCL_LIBRARY_DIR=${{github.workspace}}/dpcpp_compiler/lib - name: Build - run: > - LD_LIBRARY_PATH=${{github.workspace}}/dpcpp_compiler/lib + run: | cmake --build ${{github.workspace}}/build -j $(nproc) - name: Fuzz long test