@@ -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,46 +40,40 @@ 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 :
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.
60
57
include :
61
58
- name : L0
62
59
runner : UR_L0
63
- docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
64
60
image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
65
61
- name : L0_V2
66
62
runner : UR_L0
67
- docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
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
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
66
static : ON
67
+ image_options : -u 1001 --device=/dev/dri -v /dev/dri/by-path:/dev/dri/by-path --privileged --cap-add SYS_ADMIN
74
68
- name : L0
75
69
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
70
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
79
72
- name : HIP
80
73
runner : UR_HIP
81
- docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
82
74
image_options : -u 1001 --device=/dev/dri --device=/dev/kfd --cap-add=SYS_ADMIN
83
75
- name : CUDA
84
76
runner : UR_CUDA
85
- docker_image : " ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps"
86
77
image_options : -u 1001 --privileged --cap-add SYS_ADMIN --gpus all
87
78
- name : OPENCL
88
79
runner : UR_OPENCL
92
83
- name : OPENCL
93
84
runner : UR_OPENCL
94
85
platform : " OPENCL:Intel(R) OpenCL"
86
+ other_adapter : NATIVE_CPU
95
87
docker_image : " ghcr.io/intel/llvm/ubuntu2204_build:latest"
96
88
image_options : -u 1001 --device=/dev/dri --device=/dev/kfd --privileged --cap-add SYS_ADMIN
97
- other_adapter : NATIVE_CPU
98
89
- name : NATIVE_CPU
99
90
runner : UR_NATIVE_CPU
100
91
docker_image : " ghcr.io/intel/llvm/ubuntu2204_build:latest"
@@ -107,45 +98,45 @@ jobs:
107
98
static_adapter : ${{ matrix.static || 'OFF' }}
108
99
platform : ${{ matrix.platform || '' }}
109
100
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' }}
111
102
image_options : ${{ matrix.image_options || '' }}
112
103
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}}
121
112
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
125
116
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"
129
120
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
135
126
136
- # - name: Install hwloc
137
- # run: brew install hwloc
127
+ - name : Install hwloc
128
+ run : brew install hwloc
138
129
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
149
140
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