Skip to content

Commit f4b3123

Browse files
authored
[CI] Add containers with recommended driver versions (#5486)
Add new `dependencies.json` config to build Docker containers with the recommended versions of Intel drivers. This is a temporary duplication of `buildbot/dependency.conf` file until they're merged.
1 parent 6cb3595 commit f4b3123

File tree

2 files changed

+114
-0
lines changed

2 files changed

+114
-0
lines changed

.github/workflows/sycl_containers.yaml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ on:
99
- sycl
1010
paths:
1111
- 'devops/containers/**'
12+
- 'devops/dependencies.json'
13+
- '.github/workflows/sycl_containers.yaml'
1214
pull_request:
1315
paths:
1416
- 'devops/containers/**'
17+
- 'devops/dependencies.json'
18+
- '.github/workflows/sycl_containers.yaml'
1519

1620
jobs:
1721
base_image_ubuntu2004:
@@ -52,6 +56,7 @@ jobs:
5256
tags: |
5357
ghcr.io/${{ github.repository }}/ubuntu2004_build:${{ github.sha }}
5458
ghcr.io/${{ github.repository }}/ubuntu2004_build:latest
59+
5560
# This job produces a Docker container with the latest versions of Intel
5661
# drivers, that can be found on GitHub.
5762
drivers_image_ubuntu2004:
@@ -64,6 +69,15 @@ jobs:
6469
uses: actions/checkout@v2
6570
with:
6671
fetch-depth: 2
72+
- name: Get dependencies configuration
73+
id: deps
74+
run: |
75+
DEPS=`cat devops/dependencies.json`
76+
DEPS="${DEPS//'%'/'%25'}"
77+
DEPS="${DEPS//$'\n'/'%0A'}"
78+
DEPS="${DEPS//$'\r'/'%0D'}"
79+
echo $DEPS
80+
echo "::set-output name=deps::$DEPS"
6781
- name: Build and Push Container
6882
uses: ./devops/actions/build_container
6983
with:
@@ -74,4 +88,33 @@ jobs:
7488
tags: |
7589
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:latest-${{ github.sha }}
7690
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:latest
91+
build-args: |
92+
compute_runtime_tag=${{fromJson(steps.deps.outputs.deps).linux.compute_runtime.tag}}
93+
igc_tag=${{fromJson(steps.deps.outputs.deps).linux.igc.tag}}
94+
tbb_tag=${{fromJson(steps.deps.outputs.deps).linux.tbb.tag}}
95+
fpgaemu_tag=${{fromJson(steps.deps.outputs.deps).linux.fpgaemu.tag}}
96+
cpu_tag=${{fromJson(steps.deps.outputs.deps).linux.oclcpu.tag}}
97+
98+
# This job produces a Docker container with the latest versions of Intel
99+
# drivers, that can be found on GitHub.
100+
drivers_image_ubuntu2004_unstable:
101+
if: github.repository == 'intel/llvm'
102+
name: Intel Drivers (unstable) Ubuntu 20.04 Docker image
103+
runs-on: ubuntu-latest
104+
needs: base_image_ubuntu2004
105+
steps:
106+
- name: Checkout
107+
uses: actions/checkout@v2
108+
with:
109+
fetch-depth: 2
110+
- name: Build and Push Container
111+
uses: ./devops/actions/build_container
112+
with:
113+
push: ${{ github.event_name != 'pull_request' }}
114+
file: ubuntu2004_intel_drivers
115+
username: ${{ github.repository_owner }}
116+
password: ${{ secrets.GITHUB_TOKEN }}
117+
tags: |
118+
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:unstable-${{ github.sha }}
119+
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:unstable
77120

devops/dependencies.json

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"linux": {
3+
"compute_runtime": {
4+
"github_tag": "21.46.21636",
5+
"version": "21.46.21636",
6+
"url": "https://github.com/intel/compute-runtime/releases/tag/21.46.21636",
7+
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
8+
},
9+
"igc": {
10+
"github_tag": "igc-1.0.8744",
11+
"version": "1.0.8744",
12+
"url": "https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.8744",
13+
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
14+
},
15+
"cm": {
16+
"github_tag": "cmclang-1.0.97",
17+
"version": "1.0.97",
18+
"url": "https://github.com/intel/cm-compiler/releases/tag/cmclang-1.0.97",
19+
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
20+
},
21+
"tbb": {
22+
"github_tag": "v2021.5.0",
23+
"version": "2021.5.0",
24+
"url": "https://github.com/oneapi-src/oneTBB/releases/download/v2021.5.0/oneapi-tbb-2021.5.0-lin.tgz",
25+
"root": "{DEPS_ROOT}/tbb/lin"
26+
},
27+
"oclcpu": {
28+
"github_tag": "2021-WW50",
29+
"version": "2021.13.11.0.23",
30+
"url": "https://github.com/intel/llvm/releases/download/2021-WW50/oclcpuexp-2021.13.11.0.23_rel.tar.gz",
31+
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclcpu"
32+
},
33+
"fpgaemu": {
34+
"github_tag": "2021-WW50",
35+
"version": "2021.13.11.0.23",
36+
"url": "https://github.com/intel/llvm/releases/download/2021-WW50/fpgaemu-2021.13.11.0.23_rel.tar.gz",
37+
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclfpgaemu"
38+
},
39+
"fpga": {
40+
"root": "{ARCHIVE_ROOT}/comp/oclfpga/linux"
41+
}
42+
},
43+
"windows": {
44+
"compute_runtime": {
45+
"version": "101.1191",
46+
"url": "https://downloadmirror.intel.com/691496/igfx_win_101.1191.zip",
47+
"root": ""
48+
},
49+
"tbb": {
50+
"github_tag": "v2021.5.0",
51+
"version": "2021.5.0",
52+
"url": "https://github.com/oneapi-src/oneTBB/releases/download/v2021.5.0/oneapi-tbb-2021.5.0-win.zip",
53+
"root": "{DEPS_ROOT}/tbb/win"
54+
},
55+
"oclcpu": {
56+
"github_tag": "2021-WW50",
57+
"version": "2021.13.11.0.23",
58+
"url": "https://github.com/intel/llvm/releases/download/2021-WW50/win-oclcpuexp-2021.13.11.0.23_rel.zip",
59+
"root": "{DEPS_ROOT}/opencl/runtime/win/oclcpu"
60+
},
61+
"fpgaemu": {
62+
"github_tag": "2021-WW50",
63+
"version": "2021.13.11.0.23",
64+
"url": "https://github.com/intel/llvm/releases/download/2021-WW50/win-fpgaemu-2021.13.11.0.23_rel.zip",
65+
"root": "{DEPS_ROOT}/opencl/runtime/win/oclfpgaemu"
66+
},
67+
"fpga": {
68+
"root": "{ARCHIVE_ROOT}/comp/oclfpga/win"
69+
}
70+
}
71+
}

0 commit comments

Comments
 (0)