@@ -5,9 +5,6 @@ name: Unified Runtime Pre Commit
5
5
6
6
# Note: the trigger is copy-pasted from sycl-linux-precommit.yml - probably to be fine-tuned.
7
7
on :
8
- push :
9
- branches-ignore :
10
- - ' dependabot/**'
11
8
# We rely on "Fork pull request workflows from outside collaborators" -
12
9
# "Require approval for all outside collaborators" at
13
10
# https://github.com/intel/llvm/settings/actions for security.
@@ -43,18 +40,16 @@ jobs:
43
40
name : Detect Changes
44
41
uses : ./.github/workflows/sycl-detect-changes.yml
45
42
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
51
48
52
49
adapters :
53
50
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') }}
58
53
strategy :
59
54
matrix :
60
55
include :
@@ -68,14 +63,14 @@ jobs:
68
63
image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
69
64
- name : L0
70
65
runner : UR_L0
66
+ static : ON
71
67
docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
72
68
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
69
- name : L0
75
70
runner : UR_L0
71
+ other_adapter : NATIVE_CPU
76
72
docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
77
73
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
74
- name : HIP
80
75
runner : UR_HIP
81
76
docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
92
87
- name : OPENCL
93
88
runner : UR_OPENCL
94
89
platform : " OPENCL:Intel(R) OpenCL"
90
+ other_adapter : NATIVE_CPU
95
91
docker_image : " ghcr.io/intel/llvm/ubuntu2204_build:latest"
96
92
image_options : -u 1001 --device=/dev/dri --device=/dev/kfd --privileged --cap-add SYS_ADMIN
97
- other_adapter : NATIVE_CPU
98
93
- name : NATIVE_CPU
99
94
runner : UR_NATIVE_CPU
100
95
docker_image : " ghcr.io/intel/llvm/ubuntu2204_build:latest"
@@ -110,42 +105,42 @@ jobs:
110
105
docker_image : ${{ matrix.docker_image }}
111
106
image_options : ${{ matrix.image_options || '' }}
112
107
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}}
108
+ macos :
109
+ name : MacOS build only
110
+ needs : [detect_changes, source_checks]
111
+ if : ${{ always() && !cancelled() && contains(needs.detect_changes.outputs.filters, 'ur') }}
112
+ strategy :
113
+ matrix :
114
+ os : ['macos-13']
115
+ runs-on : ${{matrix.os}}
121
116
122
- # steps:
123
- # - name: Checkout LLVM
124
- # uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
117
+ steps :
118
+ - name : Checkout LLVM
119
+ uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
125
120
126
- # - uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.0.0
127
- # with:
128
- # python-version: "3.10"
121
+ - uses : actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5.0.0
122
+ with :
123
+ python-version : " 3.10"
129
124
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
125
+ - name : Install prerequisites
126
+ working-directory : ${{github.workspace}}/unified-runtime
127
+ run : |
128
+ python3 -m pip install -r third_party/requirements.txt
129
+ python3 -m pip install -r third_party/requirements_testing.txt
135
130
136
- # - name: Install hwloc
137
- # run: brew install hwloc
131
+ - name : Install hwloc
132
+ run : brew install hwloc
138
133
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
134
+ - name : Configure Unified Runtime project
135
+ working-directory : ${{github.workspace}}/unified-runtime
136
+ run : >
137
+ cmake
138
+ -B${{github.workspace}}/build
139
+ -DUR_ENABLE_TRACING=ON
140
+ -DUR_DEVELOPER_MODE=ON
141
+ -DCMAKE_BUILD_TYPE=Release
142
+ -DUR_BUILD_TESTS=ON
143
+ -DUR_FORMAT_CPP_STYLE=ON
149
144
150
- # - name: Build
151
- # run: cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
145
+ - name : Build
146
+ run : cmake --build ${{github.workspace}}/build -j $(sysctl -n hw.logicalcpu)
0 commit comments