Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .github/workflows/sycl-linux-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ jobs:
# Emulate default value for manual dispatch as we've run out of available arguments.
run: cmake --build $GITHUB_WORKSPACE/build --target ${{ inputs.build_target || 'sycl-toolchain' }}
- name: check-llvm
if: always() && !cancelled() && contains(inputs.changes, 'llvm')
if: ${{ !cancelled() && contains(inputs.changes, 'llvm') }}
env:
# Can't inline to support possible quotes inside:
BUILD_CONFIGURE_EXTRA_ARGS: ${{ inputs.build_configure_extra_args }}
Expand All @@ -222,7 +222,7 @@ jobs:

cmake --build $GITHUB_WORKSPACE/build --target check-llvm
- name: check-clang
if: always() && !cancelled() && contains(inputs.changes, 'clang')
if: ${{ !cancelled() && contains(inputs.changes, 'clang') }}
env:
# Can't inline to support possible quotes inside:
BUILD_CONFIGURE_EXTRA_ARGS: ${{ inputs.build_configure_extra_args }}
Expand All @@ -235,71 +235,71 @@ jobs:
fi
cmake --build $GITHUB_WORKSPACE/build --target check-clang
- name: check-sycl
if: always() && !cancelled() && contains(inputs.changes, 'sycl')
if: ${{ !cancelled() && contains(inputs.changes, 'sycl') }}
run: |
# TODO consider moving this to Dockerfile.
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
cmake --build $GITHUB_WORKSPACE/build --target check-sycl
- name: check-sycl-unittests
if: always() && !cancelled() && contains(inputs.changes, 'sycl')
if: ${{ !cancelled() && contains(inputs.changes, 'sycl') }}
run: |
# TODO consider moving this to Dockerfile.
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
cmake --build $GITHUB_WORKSPACE/build --target check-sycl-unittests
- name: check-llvm-spirv
if: always() && !cancelled() && contains(inputs.changes, 'llvm_spirv')
if: ${{ !cancelled() && contains(inputs.changes, 'llvm_spirv') }}
run: |
cmake --build $GITHUB_WORKSPACE/build --target check-llvm-spirv
- name: check-xptifw
if: always() && !cancelled() && contains(inputs.changes, 'xptifw')
if: ${{ !cancelled() && contains(inputs.changes, 'xptifw') }}
run: |
cmake --build $GITHUB_WORKSPACE/build --target check-xptifw
- name: check-libclc
if: always() && !cancelled() && contains(inputs.changes, 'libclc')
if: ${{ !cancelled() && contains(inputs.changes, 'libclc') }}
run: |
cmake --build $GITHUB_WORKSPACE/build --target check-libclc
- name: check-libdevice
if: always() && !cancelled() && contains(inputs.changes, 'sycl')
if: ${{ !cancelled() && contains(inputs.changes, 'sycl') }}
run: |
cmake --build $GITHUB_WORKSPACE/build --target check-libdevice
- name: Check E2E test requirements
if: always() && !cancelled() && !contains(inputs.changes, 'sycl')
if: ${{ !cancelled() && !contains(inputs.changes, 'sycl') }}
run: |
# TODO consider moving this to Dockerfile.
export LD_LIBRARY_PATH=/usr/local/cuda/compat/:/usr/local/cuda/lib64:$LD_LIBRARY_PATH
LIT_OPTS="--allow-empty-runs" LIT_FILTER="e2e_test_requirements" cmake --build $GITHUB_WORKSPACE/build --target check-sycl
- name: Install sycl-toolchain
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
run: |
cmake --build $GITHUB_WORKSPACE/build --target deploy-sycl-toolchain

- name: Pack toolchain release
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
if: ${{ !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
run: tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/toolchain .
- name: Upload toolchain release
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
if: ${{ !cancelled() && steps.build.conclusion == 'success' && inputs.release_toolchain_artifact != '' }}
uses: actions/upload-artifact@v5
with:
name: ${{ inputs.release_toolchain_artifact }}
path: ${{ steps.artifact_info.outputs.ARCHIVE_NAME }}
retention-days: ${{ inputs.retention-days }}

- name: Install utilities
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
run: |
cmake --build $GITHUB_WORKSPACE/build --target install-sycl-test-utilities

- name: Additional Install for "--shared-libs" build
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' && contains(inputs.build_configure_extra_args, '--shared-libs') }}
if: ${{ !cancelled() && steps.build.conclusion == 'success' && contains(inputs.build_configure_extra_args, '--shared-libs') }}
run: |
cmake --build $GITHUB_WORKSPACE/build --target install-clang-libraries
cmake --build $GITHUB_WORKSPACE/build --target install-llvm-libraries

- name: Pack toolchain
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
run: tar -I '${{ steps.artifact_info.outputs.COMPRESS }}' -cf ${{ steps.artifact_info.outputs.ARCHIVE_NAME }} -C $GITHUB_WORKSPACE/toolchain .
- name: Upload toolchain
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
uses: actions/upload-artifact@v5
with:
name: ${{ inputs.toolchain_artifact }}
Expand All @@ -310,7 +310,7 @@ jobs:
- name: Source OneAPI TBB vars.sh
# Tasks that use the just built toolchain below, need extra environment
# setup. No harm in it if all of those tasks would get skipped.
if: ${{ always() && !cancelled() && steps.build.conclusion == 'success' }}
if: ${{ !cancelled() && steps.build.conclusion == 'success' }}
run: |
# https://github.com/actions/runner/issues/1964 prevents us from using
# the ENTRYPOINT in the image.
Expand All @@ -327,7 +327,7 @@ jobs:
rm env_before env_after

- name: Build E2E tests
if: ${{ inputs.e2e_binaries_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
if: ${{ inputs.e2e_binaries_artifact && !cancelled() && steps.build.conclusion == 'success' }}
uses: ./devops/actions/run-tests/e2e
with:
ref: ${{ inputs.ref || github.sha }}
Expand All @@ -338,11 +338,11 @@ jobs:
extra_lit_opts: --param sycl_build_targets="spir;nvidia;amd"

- name: Remove E2E tests before spirv-backend run
if: ${{ inputs.e2e_binaries_spirv_backend_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
if: ${{ inputs.e2e_binaries_spirv_backend_artifact && !cancelled() && steps.build.conclusion == 'success' }}
run: rm -rf build-e2e

- name: Build E2E tests with SPIR-V Backend
if: ${{ inputs.e2e_binaries_spirv_backend_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
if: ${{ inputs.e2e_binaries_spirv_backend_artifact && !cancelled() && steps.build.conclusion == 'success' }}
uses: ./devops/actions/run-tests/e2e
with:
ref: ${{ inputs.ref || github.sha }}
Expand All @@ -353,11 +353,11 @@ jobs:
extra_lit_opts: --param spirv-backend=True

- name: Remove E2E tests before preview-mode run
if: ${{ inputs.e2e_binaries_preview_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
if: ${{ inputs.e2e_binaries_preview_artifact && !cancelled() && steps.build.conclusion == 'success' }}
run: rm -rf build-e2e

- name: Build E2E tests in Preview Mode
if: ${{ inputs.e2e_binaries_preview_artifact && always() && !cancelled() && steps.build.conclusion == 'success' }}
if: ${{ inputs.e2e_binaries_preview_artifact && !cancelled() && steps.build.conclusion == 'success' }}
uses: ./devops/actions/run-tests/e2e
with:
ref: ${{ inputs.ref || github.sha }}
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/sycl-linux-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
build:
name: Self build
needs: [detect_changes]
if: always() && success()
if: success()
uses: ./.github/workflows/sycl-linux-build.yml
with:
build_ref: ${{ github.sha }}
Expand All @@ -70,7 +70,7 @@ jobs:
# Build and run native cpu e2e tests separately as cannot currently
# build all the e2e tests
build_run_native_cpu_e2e_tests:
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
runs-on: [Linux, build]
needs: [build]
container:
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
# The idea is to ensure that the code works with both CUDA versions.
build_ubuntu2204:
needs: [detect_changes]
if: always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur_cuda_adapter')
if: ${{ !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur_cuda_adapter') }}
uses: ./.github/workflows/sycl-linux-build.yml
with:
build_ref: ${{ github.sha }}
Expand Down Expand Up @@ -143,7 +143,7 @@ jobs:

E2E:
needs: [build, detect_changes, compat_read_exclude]
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
permissions:
contents: write
packages: read
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:
contents: write
packages: read
if: |
always() && !cancelled()
!cancelled()
&& needs.build.outputs.build_conclusion == 'success'
&& (contains(github.event.pull_request.labels.*.name, 'run-perf-tests')
|| contains(needs.detect_changes.outputs.filters, 'perf-tests'))
Expand Down
21 changes: 10 additions & 11 deletions .github/workflows/sycl-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ jobs:
permissions:
contents: write
packages: read
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -175,7 +175,7 @@ jobs:
permissions:
contents: write
packages: read
if: ${{ always() && !cancelled() && needs.ubuntu2404_oneapi_build.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.ubuntu2404_oneapi_build.outputs.build_conclusion == 'success' }}
uses: ./.github/workflows/sycl-linux-run-tests.yml
with:
name: Intel PVC L0 oneAPI
Expand Down Expand Up @@ -204,8 +204,7 @@ jobs:
needs: build-win
# Continue if build was successful.
if: |
always()
&& !cancelled()
!cancelled()
&& needs.build-win.outputs.build_conclusion == 'success'
strategy:
fail-fast: false
Expand All @@ -228,7 +227,7 @@ jobs:

cuda-aws-start:
needs: [ubuntu2204_build]
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
uses: ./.github/workflows/sycl-aws.yml
secrets: inherit
with:
Expand All @@ -239,7 +238,7 @@ jobs:
permissions:
contents: write
packages: read
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
uses: ./.github/workflows/sycl-linux-run-tests.yml
with:
name: CUDA E2E
Expand All @@ -255,7 +254,7 @@ jobs:

cuda-aws-stop:
needs: [cuda-aws-start, cuda-run-tests]
if: always() && ${{ needs.cuda-aws-start.result != 'skipped' }}
if: ${{ needs.cuda-aws-start.result != 'skipped' }}
uses: ./.github/workflows/sycl-aws.yml
secrets: inherit
with:
Expand All @@ -266,7 +265,7 @@ jobs:
permissions:
contents: write
packages: read
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
uses: ./.github/workflows/sycl-linux-run-tests.yml
with:
name: Build SYCL-CTS for Linux
Expand All @@ -285,7 +284,7 @@ jobs:
permissions:
contents: write
packages: read
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -315,7 +314,7 @@ jobs:

build-sycl-cts-win:
needs: build-win
if: ${{ always() && !cancelled() && needs.build-win.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.build-win.outputs.build_conclusion == 'success' }}
uses: ./.github/workflows/sycl-windows-run-tests.yml
with:
name: Build SYCL-CTS for Windows
Expand All @@ -328,7 +327,7 @@ jobs:

run-sycl-cts-win:
needs: [build-win, build-sycl-cts-win]
if: ${{ always() && !cancelled() && needs.build-win.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.build-win.outputs.build_conclusion == 'success' }}
strategy:
fail-fast: false
matrix:
Expand Down
12 changes: 5 additions & 7 deletions .github/workflows/sycl-post-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:

e2e-lin:
needs: [detect_changes, build-lin]
if: ${{ always() && !cancelled() && needs.build-lin.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.build-lin.outputs.build_conclusion == 'success' }}
permissions:
contents: write
packages: read
Expand Down Expand Up @@ -111,9 +111,8 @@ jobs:

build-win:
if: |
always()
&& success()
&& github.repository == 'intel/llvm'
success() &&
github.repository == 'intel/llvm'
uses: ./.github/workflows/sycl-windows-build.yml
with:
cxx: icx
Expand All @@ -124,9 +123,8 @@ jobs:
needs: build-win
# Continue if build was successful.
if: |
always()
&& !cancelled()
&& needs.build-win.outputs.build_conclusion == 'success'
!cancelled() &&
needs.build-win.outputs.build_conclusion == 'success'
uses: ./.github/workflows/sycl-windows-run-tests.yml
with:
name: Intel GEN12 Graphics with Level Zero
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sycl-prebuilt-e2e-container.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
name: Run E2E tests with SYCL RT they were built with
runs-on: [Linux, pvc]
needs: [docker, build]
if: ${{ always() && !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.build.outputs.build_conclusion == 'success' }}
container:
image: ghcr.io/${{ github.repository }}/sycl_prebuilt_tests:${{ inputs.ref || github.ref_name }}
options: -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sycl-trivy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: ./bin/trivy config --format json --output trivy-report.json --ignorefile=devops/.trivyignore.yaml devops/containers --exit-code 1

- name: Upload report artifact
if: always() && !cancelled()
if: ${{ !cancelled() }}
uses: actions/upload-artifact@v5
with:
name: trivy-report
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/sycl-ur-perf-benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ jobs:
permissions:
contents: write
packages: read
if: always() && !cancelled() && needs.build_sycl_dispatch.outputs.build_conclusion == 'success'
if: ${{ !cancelled() && needs.build_sycl_dispatch.outputs.build_conclusion == 'success' }}
strategy:
matrix:
include:
Expand Down Expand Up @@ -199,7 +199,7 @@ jobs:
permissions:
contents: write
packages: read
if: always() && !cancelled() && needs.build_nightly.outputs.build_conclusion == 'success'
if: ${{ !cancelled() && needs.build_nightly.outputs.build_conclusion == 'success' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -250,7 +250,7 @@ jobs:
permissions:
contents: write
packages: read
if: always() && !cancelled() && needs.build_pr.outputs.build_conclusion == 'success'
if: ${{ !cancelled() && needs.build_pr.outputs.build_conclusion == 'success' }}
uses: ./.github/workflows/sycl-linux-run-tests.yml
with:
name: 'Framework test: PVC_PERF, L0, Minimal preset'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sycl-weekly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
permissions:
contents: write
packages: read
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
uses: ./.github/workflows/sycl-linux-run-tests.yml
with:
name: Build SYCL-CTS
Expand All @@ -45,7 +45,7 @@ jobs:
permissions:
contents: write
packages: read
if: ${{ always() && !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
if: ${{ !cancelled() && needs.ubuntu2204_build.outputs.build_conclusion == 'success' }}
strategy:
fail-fast: false
matrix:
Expand Down
Loading
Loading