Skip to content

Commit

Permalink
GPU support in the notebook image (openvinotoolkit#793)
Browse files Browse the repository at this point in the history
* added gpu drivers

* add clinfo

* yum instead of apt

* fix repo

* fix clinfo

---------

Co-authored-by: Ekaterina Aidova <[email protected]>
  • Loading branch information
dtrawins and eaidova authored Feb 15, 2023
1 parent cd5b361 commit bd148b2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,19 @@ RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash - && \
yum install -y nodejs-14.18.1 mesa-libGL dos2unix libsndfile && \
yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical --sec-severity=Moderate

# GPU drivers
RUN dnf install -y 'dnf-command(config-manager)' && \
dnf config-manager --add-repo https://repositories.intel.com/graphics/rhel/8.5/intel-graphics.repo

RUN rpm -ivh https://vault.centos.org/centos/8/AppStream/x86_64/os/Packages/mesa-filesystem-21.1.5-1.el8.x86_64.rpm && \
dnf install --refresh -y \
intel-opencl-22.28.23726.1-i419.el8.x86_64 intel-media intel-mediasdk libmfxgen1 libvpl2 \
level-zero intel-level-zero-gpu \
intel-metrics-library intel-igc-core intel-igc-cm \
libva libva-utils intel-gmmlib && \
rpm -ivh http://mirror.centos.org/centos/8-stream/AppStream/x86_64/os/Packages/ocl-icd-2.2.12-1.el8.x86_64.rpm && \
rpm -ivh https://download-ib01.fedoraproject.org/pub/epel/8/Everything/x86_64/Packages/c/clinfo-3.0.21.02.21-4.el8.x86_64.rpm

# Copying in override assemble/run scripts
COPY .docker/.s2i/bin /tmp/scripts
# Copying in source code
Expand Down

0 comments on commit bd148b2

Please sign in to comment.