Skip to content

Commit 01d18fe

Browse files
committed
use PR driver in UR CI
Signed-off-by: Nick Sarnie <nick.sarnie@intel.com>
1 parent a3fcb84 commit 01d18fe

File tree

3 files changed

+69
-1
lines changed

3 files changed

+69
-1
lines changed

.github/workflows/ur-build-hw.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ on:
2929
required: true
3030
type: string
3131
default: ""
32+
install_igc_driver:
33+
required: false
34+
type: string
35+
default: ""
3236
workflow_dispatch:
3337
inputs:
3438
adapter_name:
@@ -57,7 +61,10 @@ on:
5761
required: true
5862
type: string
5963
default: ""
60-
64+
install_igc_driver:
65+
required: false
66+
type: string
67+
default: ""
6168
permissions: read-all
6269

6370
env:
@@ -131,6 +138,13 @@ jobs:
131138
sudo apt-get update
132139
sudo apt-get install -y intel-oneapi-runtime-opencl
133140
141+
- name: Install Intel GPU driver
142+
if: ${{ inputs.install_igc_driver && (inputs.adapter_name == 'OPENCL' || contains(inputs.adapter_name,'L0')) }}
143+
env:
144+
GITHUB_TOKEN: ${{ github.token }}
145+
run: |
146+
sudo -E bash devops/scripts/install_drivers.sh devops/dependencies.json --igfx
147+
134148
- name: Configure Unified Runtime project
135149
# ">" is used to avoid adding "\" at the end of each line; this command is quite long
136150
run: >

.github/workflows/ur-precommit.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ jobs:
9898
other_adapter_name: ${{ matrix.other_adapter || '' }}
9999
docker_image: ${{ matrix.docker_image || 'ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps'}}
100100
image_options: ${{ matrix.image_options || '' }}
101+
install_igc_driver: ${{ contains(needs.detect_changes.outputs.filters, 'drivers') }}
101102

102103
# TODO: Enable once the apt package at https://apt.llvm.org/noble/pool/main/l/llvm-toolchain-snapshot/ is updated
103104
# offload_build:

e

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
diff --git a/.github/workflows/ur-build-hw.yml b/.github/workflows/ur-build-hw.yml
2+
index 81f000f6d086..d67f7e183937 100644
3+
--- a/.github/workflows/ur-build-hw.yml
4+
+++ b/.github/workflows/ur-build-hw.yml
5+
@@ -29,6 +29,10 @@ on:
6+
required: true
7+
type: string
8+
default: ""
9+
+ install_igc_driver:
10+
+ required: false
11+
+ type: string
12+
+ default: ""
13+
workflow_dispatch:
14+
inputs:
15+
adapter_name:
16+
@@ -57,7 +61,10 @@ on:
17+
required: true
18+
type: string
19+
default: ""
20+
-
21+
+ install_igc_driver:
22+
+ required: false
23+
+ type: string
24+
+ default: ""
25+
permissions: read-all
26+

27+
env:
28+
@@ -131,6 +138,13 @@ jobs:
29+
sudo apt-get update
30+
sudo apt-get install -y intel-oneapi-runtime-opencl
31+

32+
+ - name: Install Intel GPU driver
33+
+ if: ${{ inputs.install_igc_driver && (inputs.adapter_name == 'OPENCL' || contains(inputs.adapter_name,'L0')) }}
34+
+ env:
35+
+ GITHUB_TOKEN: ${{ github.token }} 
36+
+ run: |
37+
+ sudo -E bash devops/scripts/install_drivers.sh devops/dependencies.json --igfx
38+
+
39+
- name: Configure Unified Runtime project
40+
# ">" is used to avoid adding "\" at the end of each line; this command is quite long
41+
run: >
42+
diff --git a/.github/workflows/ur-precommit.yml b/.github/workflows/ur-precommit.yml
43+
index 8d00b6226d90..1060dec1834a 100644
44+
--- a/.github/workflows/ur-precommit.yml
45+
+++ b/.github/workflows/ur-precommit.yml
46+
@@ -98,6 +98,7 @@ jobs:
47+
other_adapter_name: ${{ matrix.other_adapter || '' }}
48+
docker_image: ${{ matrix.docker_image || 'ghcr.io/intel/llvm/ubuntu2404_intel_drivers:alldeps'}}
49+
image_options: ${{ matrix.image_options || '' }}
50+
+ install_igc_driver: ${{ contains(needs.detect_changes.outputs.filters, 'drivers') }}
51+

52+
# TODO: Enable once the apt package at https://apt.llvm.org/noble/pool/main/l/llvm-toolchain-snapshot/ is updated
53+
# offload_build:

0 commit comments

Comments
 (0)