@@ -5,9 +5,6 @@ name: Unified Runtime Pre Commit
55
66# Note: the trigger is copy-pasted from sycl-linux-precommit.yml - probably to be fine-tuned.
77on :
8- push :
9- branches-ignore :
10- - ' dependabot/**'
118 # We rely on "Fork pull request workflows from outside collaborators" -
129 # "Require approval for all outside collaborators" at
1310 # https://github.com/intel/llvm/settings/actions for security.
@@ -43,46 +40,40 @@ jobs:
4340 name : Detect Changes
4441 uses : ./.github/workflows/sycl-detect-changes.yml
4542
46- # source_checks:
47- # name: Source Checks
48- # needs: [detect_changes]
49- # if: ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
50- # uses: ./.github/workflows/ur-source-checks.yml
43+ source_checks :
44+ name : Source Checks
45+ needs : [detect_changes]
46+ if : ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
47+ uses : ./.github/workflows/ur-source-checks.yml
5148
5249 adapters :
5350 name : Adapters
54- # needs: [detect_changes, source_checks]
55- # if: ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
56- # needs: [detect_changes, source_checks]
57- # if: ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
51+ needs : [detect_changes, source_checks]
52+ if : ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
5853 strategy :
5954 matrix :
55+ # Extra native CPU jobs are here to force the loader to be used.
56+ # UR will not use the loader if there is only one target.
6057 include :
6158 - name : L0
6259 runner : UR_L0
63- docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
6460 image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
6561 - name : L0_V2
6662 runner : UR_L0
67- docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
6863 image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
6964 - name : L0
7065 runner : UR_L0
71- docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
72- image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
7366 static : ON
67+ image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
7468 - name : L0
7569 runner : UR_L0
76- docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
77- image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
7870 other_adapter : NATIVE_CPU
71+ image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
7972 - name : HIP
8073 runner : UR_HIP
81- docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
8274 image_options : -u 1001 --device=/dev/dri --device=/dev/kfd --cap-add=SYS_ADMIN
8375 - name : CUDA
8476 runner : UR_CUDA
85- docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
8677 image_options : -u 1001 --privileged --cap-add SYS_ADMIN --gpus all
8778 - name : OPENCL
8879 runner : UR_OPENCL
9283 - name : OPENCL
9384 runner : UR_OPENCL
9485 platform : " OPENCL:Intel(R) OpenCL"
86+ other_adapter : NATIVE_CPU
9587 docker_image : " ghcr.io/intel/llvm/ubuntu2204_build:latest"
9688 image_options : -u 1001 --device=/dev/dri --device=/dev/kfd --privileged --cap-add SYS_ADMIN
97- other_adapter : NATIVE_CPU
9889 - name : NATIVE_CPU
9990 runner : UR_NATIVE_CPU
10091 docker_image : " ghcr.io/intel/llvm/ubuntu2204_build:latest"
@@ -107,45 +98,45 @@ jobs:
10798 static_adapter : ${{ matrix.static || 'OFF' }}
10899 platform : ${{ matrix.platform || '' }}
109100 other_adapter_name : ${{ matrix.other_adapter || '' }}
110- docker_image : ${{ matrix.docker_image }}
101+ docker_image : ${{ matrix.docker_image || 'ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps' }}
111102 image_options : ${{ matrix.image_options || '' }}
112103
113- # macos:
114- # name: MacOS build only
115- # needs: [detect_changes, source_checks]
116- # if: ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
117- # strategy:
118- # matrix:
119- # os: ['macos-13']
120- # runs-on: ${{matrix.os}}
104+ macos :
105+ name : MacOS build only
106+ needs : [detect_changes, source_checks]
107+ if : ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
108+ strategy :
109+ matrix :
110+ os : ['macos-13']
111+ runs-on : ${{matrix.os}}
121112
122- # steps:
123- # - name: Checkout LLVM
124- # uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
113+ steps :
114+ - name : Checkout LLVM
115+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
125116
126- # - uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.0.0
127- # with:
128- # python-version: "3.10"
117+ - uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.0.0
118+ with :
119+ python-version : " 3.10"
129120
130- # - name: Install prerequisites
131- # working-directory: ${{github.workspace}}/unified-runtime
132- # run: |
133- # python3 -m pip install -r third_party/requirements.txt
134- # python3 -m pip install -r third_party/requirements_testing.txt
121+ - name : Install prerequisites
122+ working-directory : ${{github.workspace}}/unified-runtime
123+ run : |
124+ python3 -m pip install -r third_party/requirements.txt
125+ python3 -m pip install -r third_party/requirements_testing.txt
135126
136- # - name: Install hwloc
137- # run: brew install hwloc
127+ - name : Install hwloc
128+ run : brew install hwloc
138129
139- # - name: Configure Unified Runtime project
140- # working-directory: ${{github.workspace}}/unified-runtime
141- # run: >
142- # cmake
143- # -B${{github.workspace}}/build
144- # -DUR_ENABLE_TRACING=ON
145- # -DUR_DEVELOPER_MODE=ON
146- # -DCMAKE_BUILD_TYPE=Release
147- # -DUR_BUILD_TESTS=ON
148- # -DUR_FORMAT_CPP_STYLE=ON
130+ - name : Configure Unified Runtime project
131+ working-directory : ${{github.workspace}}/unified-runtime
132+ run : >
133+ cmake
134+ -B${{github.workspace}}/build
135+ -DUR_ENABLE_TRACING=ON
136+ -DUR_DEVELOPER_MODE=ON
137+ -DCMAKE_BUILD_TYPE=Release
138+ -DUR_BUILD_TESTS=ON
139+ -DUR_FORMAT_CPP_STYLE=ON
149140
150- # - name: Build
151- # run: cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
141+ - name : Build
142+ run : cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
0 commit comments