Skip to content

Commit

Permalink
[CI] Fix igc-dev Docker container and bump version (#16271)
Browse files Browse the repository at this point in the history
igc-dev is using `libigc.so.2` and released igc is using `libigc.so.1`,
and there's no symlink to `libigc.so` in the dev-igc packages, so we
need to do it ourselves.

Also, fix the workflow so it runs on changes to the driver install
script and XFAIL failing tests.

And manually update the igc-dev version since the one we are using here
is too old and the artifacts are expired so we can't build the image.
The new version also contains an important fix for the joint matrix
team.

Closes: #16088
Closes: #16251

Signed-off-by: Sarnie, Nick <[email protected]>
  • Loading branch information
sarnex authored Dec 17, 2024
1 parent 4435532 commit da16cd5
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/sycl-containers-igc-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@ on:
- sycl
paths:
- 'devops/actions/build_container/**'
- 'devops/scripts/**'
- 'devops/dependencies-igc-dev.json'
- '.github/workflows/sycl-containers-igc-dev.yaml'
pull_request:
paths:
- 'devops/actions/build_container/**'
- 'devops/scripts/**'
- 'devops/dependencies-igc-dev.json'
- '.github/workflows/sycl-containers-igc-dev.yaml'

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/sycl-linux-precommit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ jobs:
install_dev_igc_driver: >-
${{ !contains(matrix.target_devices, 'ext_oneapi_cuda') &&
!contains(matrix.target_devices, 'ext_oneapi_hip') &&
matrix.use_igc_dev && contains(needs.detect_changes.outputs.filters, 'devigccfg') ||
matrix.use_igc_dev &&
(contains(needs.detect_changes.outputs.filters, 'devigccfg') || contains(needs.detect_changes.outputs.filters, 'drivers')) ||
'false' }}
# Run only if the PR does not have the 'ci-no-devigc' label.
skip_run: ${{matrix.use_igc_dev && contains(github.event.pull_request.labels.*.name, 'ci-no-devigc') || 'false'}}
Expand Down
8 changes: 4 additions & 4 deletions devops/dependencies-igc-dev.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"linux": {
"igc_dev": {
"github_tag": "igc-dev-3db59df",
"version": "3db59df",
"updated_at": "2024-12-03T20:43:00Z",
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/2248119261/zip",
"github_tag": "igc-dev-e0d826a",
"version": "e0d826a",
"updated_at": "2024-12-17T21:18:30Z",
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/2327583926/zip",
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
}
}
Expand Down
3 changes: 3 additions & 0 deletions devops/scripts/install_drivers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ InstallIGFX () {
echo "Install libopencl-clang"
# Workaround only, will download deb and install with dpkg once fixed.
cp -d libopencl-clang.so.14* /usr/local/lib/
rm /usr/local/lib/libigc.so /usr/local/lib/libigc.so.1* && \
ln -s /usr/local/lib/libigc.so.2 /usr/local/lib/libigc.so && \
ln -s /usr/local/lib/libigc.so.2 /usr/local/lib/libigc.so.1
echo "Clean up"
rm *.deb libopencl-clang.so.14*
echo "$IGC_DEV_TAG" > /usr/local/lib/igc/IGCTAG.txt
Expand Down
2 changes: 2 additions & 0 deletions sycl/test-e2e/ESIMD/PerformanceTests/invoke_simd_smoke.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// XFAIL: igc-dev
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16388
// REQUIRES: gpu-intel-dg2 && level_zero
// UNSUPPORTED: windows

Expand Down
2 changes: 0 additions & 2 deletions sycl/test-e2e/ESIMD/PerformanceTests/matrix_transpose.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
// XFAIL: igc-dev
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16088
// REQUIRES: gpu-intel-dg2 && level_zero
// UNSUPPORTED: windows

Expand Down
2 changes: 2 additions & 0 deletions sycl/test-e2e/ESIMD/accessor_local.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
// REQUIRES-INTEL-DRIVER: lin: 27202, win: 101.4677
// XFAIL: igc-dev
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16388
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
// This test verifies usage of local_accessor methods operator[]
Expand Down
2 changes: 2 additions & 0 deletions sycl/test-e2e/ESIMD/local_accessor_block_load_store.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
//
//===----------------------------------------------------------------------===//
// REQUIRES-INTEL-DRIVER: lin: 27202, win: 101.4677
// XFAIL: igc-dev
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16388
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
// This test verifies usage of block_load/block_store for local_accessor.
Expand Down
3 changes: 2 additions & 1 deletion sycl/test-e2e/ESIMD/local_accessor_copy_to_from.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
//
//===----------------------------------------------------------------------===//
// REQUIRES-INTEL-DRIVER: lin: 27202, win: 101.4677
//
// XFAIL: igc-dev
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16388
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
//===----------------------------------------------------------------------===//
// REQUIRES: arch-intel_gpu_pvc || gpu-intel-dg2
// REQUIRES-INTEL-DRIVER: lin: 26690, win: 101.4576
// XFAIL: igc-dev
// XFAIL-TRACKER: https://github.com/intel/llvm/issues/16388
// RUN: %{build} -o %t.out
// RUN: %{run} %t.out
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// Waiting for the commit in IGC to be pulled into the driver to resolve the
// test.
// XFAIL: gpu
// XFAIL: !igc-dev || gpu-intel-dg2
// XFAIL-TRACKER: CMPLRLLVM-63710

#include "common.hpp"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

// Waiting for the commit in IGC to be pulled into the driver to resolve the
// test.
// XFAIL: gpu
// XFAIL: !igc-dev || gpu-intel-dg2
// XFAIL-TRACKER: CMPLRLLVM-63710

#include "common.hpp"
Expand Down

0 comments on commit da16cd5

Please sign in to comment.