Skip to content

Commit

Permalink
[CI] Fix missing deps in dev igc installation
Browse files Browse the repository at this point in the history
All opencl tests with current dev igc installtation are failing.
Investigation shows that we are missing libopencl-clang.
Unfortunately dev igc deb package did not include libopencl-clang,
and Ubuntu did not have the correct version either, apt has up to
libopencl-clang13, while we need libopenc-clang14.

So the workaround is to backup the version installed by released igc
version, then install it back after installing dev igc.

This also seperate the installation of dev igc to new step,
so that we can always do checksum and remove force dependency option to dpkg.
  • Loading branch information
jsji committed Apr 30, 2024
1 parent 94e6d19 commit 5019766
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
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-498324a",
"version": "498324a",
"updated_at": "2024-04-17T13:44:27Z",
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/1422168296/zip",
"github_tag": "igc-dev-d3f2b0e",
"version": "d3f2b0e",
"updated_at": "2024-04-30T21:45:41Z",
"url": "https://api.github.com/repos/intel/intel-graphics-compiler/actions/artifacts/1462213804/zip",
"root": "{DEPS_ROOT}/opencl/runtime/linux/oclgpu"
}
}
Expand Down
37 changes: 21 additions & 16 deletions devops/scripts/install_drivers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -108,33 +108,38 @@ InstallIGFX () {
echo "Compute Runtime version $CR_TAG"
echo "CM compiler version $CM_TAG"
echo "Level Zero version $L0_TAG"
IS_IGC_DEV=$(CheckIGCdevTag $IGCTAG)
IGNORE_CHECKSUM=false
DPKG_OPTIONS=""
if [ "$IS_IGC_DEV" == "Yes" ]; then
echo "IGC dev git hash $IGC_DEV_VER"
get_pre_release_igfx $IGC_DEV_URL $IGC_DEV_VER
IGNORE_CHECKSUM=true
DPKG_OPTIONS=" --force-depends-version"
else
echo "IGC version $IGC_TAG"
get_release intel/intel-graphics-compiler $IGC_TAG \
| grep ".*deb" \
| wget -qi -
fi
echo "IGC version $IGC_TAG"
get_release intel/intel-graphics-compiler $IGC_TAG \
| grep ".*deb" \
| wget -qi -
get_release intel/compute-runtime $CR_TAG \
| grep -E ".*((deb)|(sum))" \
| wget -qi -
# Perform the checksum conditionally and then get the release
( [ "$IGNORE_CHECKSUM" ] || sha256sum -c *.sum ) && \
sha256sum -c *.sum && \
get_release intel/cm-compiler $CM_TAG \
| grep ".*deb" \
| grep -v "u18" \
| wget -qi -
get_release oneapi-src/level-zero $L0_TAG \
| grep ".*deb" \
| wget -qi -
dpkg -i $DPKG_OPTIONS *.deb && rm *.deb *.sum
dpkg -i *.deb && rm *.deb *.sum
IS_IGC_DEV=$(CheckIGCdevTag $IGCTAG)
if [ "$IS_IGC_DEV" == "Yes" ]; then
# Dev IGC deb package did not include libopencl-clang
# So we need to backup and install it from release igc.
echo "Backup libopencl-clang"
cp -d /usr/local/lib/libopencl-clang.so.14* .
echo "Download IGC dev git hash $IGC_DEV_VER"
get_pre_release_igfx $IGC_DEV_URL $IGC_DEV_VER
echo "Install IGC dev git hash $IGC_DEV_VER"
dpkg -i *.deb && rm *.deb *.sum
echo "Install libopencl-clang"
cp -d libopencl-clang.so.14* /usr/local/lib/
echo "Clean up"
rm *.deb libopencl-clang.so.14*
fi
}

InstallCPURT () {
Expand Down

0 comments on commit 5019766

Please sign in to comment.