Skip to content

[CI] Add containers with recommended driver versions #5486

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 6, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions .github/workflows/sycl_containers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,13 @@ on:
- sycl
paths:
- 'devops/containers/**'
- 'devops/dependencies.json'
- '.github/workflows/sycl_containers.yaml'
pull_request:
paths:
- 'devops/containers/**'
- 'devops/dependencies.json'
- '.github/workflows/sycl_containers.yaml'

jobs:
base_image_ubuntu2004:
Expand Down Expand Up @@ -52,6 +56,7 @@ jobs:
tags: |
ghcr.io/${{ github.repository }}/ubuntu2004_build:${{ github.sha }}
ghcr.io/${{ github.repository }}/ubuntu2004_build:latest

# This job produces a Docker container with the latest versions of Intel
# drivers, that can be found on GitHub.
drivers_image_ubuntu2004:
Expand All @@ -64,6 +69,15 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Get dependencies configuration
id: deps
run: |
DEPS=`cat devops/dependencies.json`
DEPS="${DEPS//'%'/'%25'}"
DEPS="${DEPS//$'\n'/'%0A'}"
DEPS="${DEPS//$'\r'/'%0D'}"
echo $DEPS
echo "::set-output name=deps::$DEPS"
- name: Build and Push Container
uses: ./devops/actions/build_container
with:
Expand All @@ -74,4 +88,33 @@ jobs:
tags: |
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:latest-${{ github.sha }}
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:latest
build-args: |
compute_runtime_tag=${{fromJson(steps.deps.outputs.deps).linux.compute_runtime.tag}}
igc_tag=${{fromJson(steps.deps.outputs.deps).linux.igc.tag}}
tbb_tag=${{fromJson(steps.deps.outputs.deps).linux.tbb.tag}}
fpgaemu_tag=${{fromJson(steps.deps.outputs.deps).linux.fpgaemu.tag}}
cpu_tag=${{fromJson(steps.deps.outputs.deps).linux.oclcpu.tag}}

# This job produces a Docker container with the latest versions of Intel
# drivers, that can be found on GitHub.
drivers_image_ubuntu2004_unstable:
if: github.repository == 'intel/llvm'
name: Intel Drivers (unstable) Ubuntu 20.04 Docker image
runs-on: ubuntu-latest
needs: base_image_ubuntu2004
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 2
- name: Build and Push Container
uses: ./devops/actions/build_container
with:
push: ${{ github.event_name != 'pull_request' }}
file: ubuntu2004_intel_drivers
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
tags: |
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:unstable-${{ github.sha }}
ghcr.io/${{ github.repository }}/ubuntu2004_intel_drivers:unstable

71 changes: 71 additions & 0 deletions devops/dependencies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
{
"linux": {
"compute_runtime": {
"github_tag": "21.46.21636",
"version": "21.46.21636",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems version is not used. Can we drop it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for compatibility with dependency.conf, which uses driver version instead of git tag (and versions and tags don't always align).

"url": "https://github.com/intel/compute-runtime/releases/tag/21.46.21636",
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
},
"igc": {
"github_tag": "igc-1.0.8744",
"version": "1.0.8744",
"url": "https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.8744",
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
},
"cm": {
"github_tag": "cmclang-1.0.97",
"version": "1.0.97",
"url": "https://github.com/intel/cm-compiler/releases/tag/cmclang-1.0.97",
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
},
"tbb": {
"github_tag": "v2021.5.0",
"version": "2021.5.0",
"url": "https://github.com/oneapi-src/oneTBB/releases/download/v2021.5.0/oneapi-tbb-2021.5.0-lin.tgz",
"root": "{DEPS_ROOT}/tbb/lin"
},
"oclcpu": {
"github_tag": "2021-WW50",
"version": "2021.13.11.0.23",
"url": "https://github.com/intel/llvm/releases/download/2021-WW50/oclcpuexp-2021.13.11.0.23_rel.tar.gz",
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclcpu"
},
"fpgaemu": {
"github_tag": "2021-WW50",
"version": "2021.13.11.0.23",
"url": "https://github.com/intel/llvm/releases/download/2021-WW50/fpgaemu-2021.13.11.0.23_rel.tar.gz",
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclfpgaemu"
},
"fpga": {
"root": "{ARCHIVE_ROOT}/comp/oclfpga/linux"
}
},
"windows": {
"compute_runtime": {
"version": "101.1191",
"url": "https://downloadmirror.intel.com/691496/igfx_win_101.1191.zip",
"root": ""
},
"tbb": {
"github_tag": "v2021.5.0",
"version": "2021.5.0",
"url": "https://github.com/oneapi-src/oneTBB/releases/download/v2021.5.0/oneapi-tbb-2021.5.0-win.zip",
"root": "{DEPS_ROOT}/tbb/win"
},
"oclcpu": {
"github_tag": "2021-WW50",
"version": "2021.13.11.0.23",
"url": "https://github.com/intel/llvm/releases/download/2021-WW50/win-oclcpuexp-2021.13.11.0.23_rel.zip",
"root": "{DEPS_ROOT}/opencl/runtime/win/oclcpu"
},
"fpgaemu": {
"github_tag": "2021-WW50",
"version": "2021.13.11.0.23",
"url": "https://github.com/intel/llvm/releases/download/2021-WW50/win-fpgaemu-2021.13.11.0.23_rel.zip",
"root": "{DEPS_ROOT}/opencl/runtime/win/oclfpgaemu"
},
"fpga": {
"root": "{ARCHIVE_ROOT}/comp/oclfpga/win"
}
}
}