Skip to content

Commit

Permalink
fix(aa66ada): readding libraries to the builder
Browse files Browse the repository at this point in the history
The builder stage for the Kepler image needs to have
the dcgm/habana libraries installed for the build
tags to work.

Signed-off-by: Maryam Tahhan <[email protected]>
  • Loading branch information
maryamtahhan committed Sep 16, 2024
1 parent b73c6b1 commit ff1ec21
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
FROM quay.io/sustainable_computing_io/kepler_builder:ubi-9-libbpf-1.3.0 AS builder
ARG INSTALL_DCGM=false
ARG INSTALL_HABANA=false
WORKDIR /workspace

COPY . .

RUN if [[ "$INSTALL_DCGM" == "true" ]]; then \
dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel9/x86_64/cuda-rhel9.repo; \
yum install -y datacenter-gpu-manager; \
fi;

RUN if [[ "$INSTALL_HABANA" == "true" ]]; then \
rpm -Uvh https://vault.habana.ai/artifactory/rhel/9/9.2/habanalabs-firmware-tools-1.15.1-15.el9.x86_64.rpm --nodeps; \
echo /usr/lib/habanalabs > /etc/ld.so.conf.d/habanalabs.conf; \
ldconfig; \
fi;

RUN make tidy-vendor format

RUN make build
Expand Down

0 comments on commit ff1ec21

Please sign in to comment.