@@ -5,6 +5,9 @@ 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/**'
811 # We rely on "Fork pull request workflows from outside collaborators" -
912 # "Require approval for all outside collaborators" at
1013 # https://github.com/intel/llvm/settings/actions for security.
@@ -40,75 +43,123 @@ jobs:
4043 name : Detect Changes
4144 uses : ./.github/workflows/sycl-detect-changes.yml
4245
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
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
4851
4952 adapters :
5053 name : Adapters
51- needs : [detect_changes, source_checks]
52- if : ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
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') }}
5358 strategy :
5459 matrix :
60+ include :
61+ - name : L0
62+ runner : UR_L0
63+ docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
64+ image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
65+ - name : L0_V2
66+ runner : UR_L0
67+ docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
68+ image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
69+ - name : L0
70+ 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
73+ static : ON
74+ - name : L0
75+ 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
78+ other_adapter : NATIVE_CPU
79+ - name : HIP
80+ runner : UR_HIP
81+ docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
82+ image_options : -u 1001 --device=/dev/dri --device=/dev/kfd --cap-add=SYS_ADMIN
83+ - name : CUDA
84+ runner : UR_CUDA
85+ docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
86+ image_options : -u 1001 --privileged --cap-add SYS_ADMIN --gpus all
87+ - name : OPENCL
88+ runner : UR_OPENCL
89+ platform : " Intel(R) OpenCL"
90+ docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
91+ image_options : -u 1001 --device=/dev/dri --device=/dev/kfd --privileged --cap-add SYS_ADMIN
92+ - name : OPENCL
93+ runner : UR_OPENCL
94+ platform : " OPENCL:Intel(R) OpenCL"
95+ docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
96+ image_options : -u 1001 --device=/dev/dri --device=/dev/kfd --privileged --cap-add SYS_ADMIN
97+ other_adapter : NATIVE_CPU
98+ - name : NATIVE_CPU
99+ runner : UR_NATIVE_CPU
100+ docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
101+ image_options : -u 1001 --device=/dev/dri --privileged --cap-add SYS_ADMIN
102+
55103 # Extra native CPU jobs are here to force the loader to be used.
56104 # UR will not use the loader if there is only one target.
57- adapter : [
58- {name: L0, runner: UR_L0},
59- {name: L0_V2, runner: UR_L0},
60- {name: L0, runner: UR_L0, static: ON},
61- {name: OPENCL, runner: UR_OPENCL, platform: "Intel(R) OpenCL"},
62- {name: CUDA, runner: UR_CUDA},
63- {name: HIP, runner: UR_HIP},
64- {name: NATIVE_CPU, runner: UR_NATIVE_CPU},
65- {name: OPENCL, runner: UR_OPENCL, other_adapter: NATIVE_CPU, platform: "OPENCL:Intel(R) OpenCL"},
66- {name: L0, runner: UR_L0, other_adapter: NATIVE_CPU},
67- ]
105+ # adapter: [
106+ # {name: L0, runner: UR_L0, docker_image: "ghcr.io/intel/llvm/ubuntu2204_build:latest" },
107+ # {name: L0_V2, runner: UR_L0},
108+ # {name: L0, runner: UR_L0, static: ON},
109+ # {name: OPENCL, runner: UR_OPENCL, platform: "Intel(R) OpenCL"},
110+ # {name: CUDA, runner: UR_CUDA},
111+ # {name: HIP, runner: UR_HIP},
112+ # {name: NATIVE_CPU, runner: UR_NATIVE_CPU},
113+ # {name: OPENCL, runner: UR_OPENCL, other_adapter: NATIVE_CPU, platform: "OPENCL:Intel(R) OpenCL"},
114+ # {name: L0, runner: UR_L0, other_adapter: NATIVE_CPU},
115+ # ]
68116 uses : ./.github/workflows/ur-build-hw.yml
69117 with :
70- adapter_name : ${{ matrix.adapter.name }}
71- runner_name : ${{ matrix.adapter.runner }}
72- static_loader : ${{ matrix.adapter.static || 'OFF' }}
73- static_adapter : ${{ matrix.adapter.static || 'OFF' }}
74- platform : ${{ matrix.adapter.platform || '' }}
75- other_adapter_name : ${{ matrix.adapter.other_adapter || '' }}
118+ adapter_name : ${{ matrix.name }}
119+ runner_name : ${{ matrix.runner }}
120+ static_loader : ${{ matrix.static || 'OFF' }}
121+ static_adapter : ${{ matrix.static || 'OFF' }}
122+ platform : ${{ matrix.platform || '' }}
123+ other_adapter_name : ${{ matrix.other_adapter || '' }}
124+ docker_image : ${{ matrix.docker_image }}
125+ image_options : ${{ matrix.image_options || '' }}
76126
77- macos :
78- name : MacOS build only
79- needs : [detect_changes, source_checks]
80- if : ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
81- strategy :
82- matrix :
83- os : ['macos-13']
84- runs-on : ${{matrix.os}}
127+ # macos:
128+ # name: MacOS build only
129+ # needs: [detect_changes, source_checks]
130+ # if: ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
131+ # strategy:
132+ # matrix:
133+ # os: ['macos-13']
134+ # runs-on: ${{matrix.os}}
135+
136+ # steps:
137+ # - name: Checkout LLVM
138+ # uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
85139
86- steps :
87- - name : Checkout LLVM
88- uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
89140
90- - uses : actions/setup-python@6ca8e8598faa206f7140a65ba31b899bebe16f58 # v5.0.0
141+ - uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.0.0
91142 with :
92143 python-version : 3.9
93144
94- - name : Install prerequisites
95- working-directory : ${{github.workspace}}/unified-runtime
96- run : python3 -m pip install -r third_party/requirements.txt
145+ # - name: Install prerequisites
146+ # working-directory: ${{github.workspace}}/unified-runtime
147+ # run: python3 -m pip install -r third_party/requirements.txt
97148
98- - name : Install hwloc
99- run : brew install hwloc
149+ # - name: Install hwloc
150+ # run: brew install hwloc
100151
101- - name : Configure Unified Runtime project
102- working-directory : ${{github.workspace}}/unified-runtime
103- run : >
104- cmake
105- -B${{github.workspace}}/build
106- -DUR_ENABLE_TRACING=ON
107- -DUR_DEVELOPER_MODE=ON
108- -DCMAKE_BUILD_TYPE=Release
109- -DUR_BUILD_TESTS=ON
110- -DUR_FORMAT_CPP_STYLE=ON
111- -DUMF_ENABLE_POOL_TRACKING=ON
152+ # - name: Configure Unified Runtime project
153+ # working-directory: ${{github.workspace}}/unified-runtime
154+ # run: >
155+ # cmake
156+ # -B${{github.workspace}}/build
157+ # -DUR_ENABLE_TRACING=ON
158+ # -DUR_DEVELOPER_MODE=ON
159+ # -DCMAKE_BUILD_TYPE=Release
160+ # -DUR_BUILD_TESTS=ON
161+ # -DUR_FORMAT_CPP_STYLE=ON
162+ # -DUMF_ENABLE_POOL_TRACKING=ON
112163
113- - name : Build
114- run : cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
164+ # - name: Build
165+ # run: cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
0 commit comments