Skip to content

Commit 3754bb7

Browse files
committed
refactored code to three interfaces
1 parent d49bf31 commit 3754bb7

File tree

8 files changed

+792
-419
lines changed

8 files changed

+792
-419
lines changed

deployments/container/Dockerfile.ubi9

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ RUN set -eux; \
2626
aarch64) ARCH='arm64' ;; \
2727
*) echo "unsupported architecture" ; exit 1 ;; \
2828
esac; \
29-
wget -nv -O - https://storage.googleapis.com/golang/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
29+
wget -nv -O - https://dl.google.com/go/go${GOLANG_VERSION}.linux-${ARCH}.tar.gz \
3030
| tar -C /usr/local -xz
3131

3232
ENV GOPATH /go
@@ -46,6 +46,8 @@ FROM nvcr.io/nvidia/cloud-native/k8s-mig-manager:v0.12.3-ubi9 as mig-manager
4646
FROM nvcr.io/nvidia/distroless/go:v3.1.13-dev
4747

4848
ENV NVIDIA_VISIBLE_DEVICES=void
49+
# Preload NVIDIA NVML library from the driver mounted at /driver-root
50+
ENV LD_PRELOAD=/driver-root/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1
4951

5052
COPY --from=build /artifacts/nvidia-vgpu-dm /usr/bin/nvidia-vgpu-dm
5153
COPY --from=build /artifacts/nvidia-k8s-vgpu-dm /usr/bin/nvidia-k8s-vgpu-dm

internal/vfio/vfio.go

Lines changed: 0 additions & 202 deletions
This file was deleted.

0 commit comments

Comments
 (0)