Skip to content

Commit

Permalink
Merge pull request #88 from arnaldo2792/update-nvidias
Browse files Browse the repository at this point in the history
Update libnvidia-container, nvidia-container-toolkit, and nvidia-device-plugin
  • Loading branch information
arnaldo2792 authored Aug 15, 2024
2 parents 36180ab + 47c372d commit 3852578
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
8 changes: 4 additions & 4 deletions packages/libnvidia-container/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ path = "../packages.rs"
releases-url = "https://github.com/NVIDIA/libnvidia-container/releases"

[[package.metadata.build-package.external-files]]
url = "https://github.com/NVIDIA/libnvidia-container/archive/v1.13.5/libnvidia-container-1.13.5.tar.gz"
sha512 = "00de15c2a0168b0c131eae21e10d186053be7f78021fe28785130ea541f1a592f44042697f01b3bf20717d9a93a85b34c7b510028adcc265cc0ac6f97be2bf0e"
url = "https://github.com/NVIDIA/libnvidia-container/archive/v1.16.1/libnvidia-container-1.16.1.tar.gz"
sha512 = "b304c284c5ab0c3544362307dc16ffcca8d34497e4356a520dc6da81a86a62b2a262b528cba559bb0d7a3addf018c3b50b6cb78669c82c1b4acae159e5922548"

[[package.metadata.build-package.external-files]]
url = "https://github.com/NVIDIA/nvidia-modprobe/archive/495.44/nvidia-modprobe-495.44.tar.gz"
sha512 = "67486ed1b17c8962786e13880910bb2b1938206a0fd76b360ddef7faf80ee0c941a2e3fbc73fa92a92009e2c54130dce17a466c8079537a981a2fed09c07e4c9"
url = "https://github.com/NVIDIA/nvidia-modprobe/archive/550.54.14/nvidia-modprobe-550.54.14.tar.gz"
sha512 = "279228aa315ff5fd1a23df23527aff58b2319f11f9fc7d939fa285ea933b4cc6d223451e20ecf7f50baba9f6c9c100e57cb77675d0d17fa77f19d3fea2ccc193"

[build-dependencies]
glibc = { path = "../glibc" }
Expand Down
5 changes: 3 additions & 2 deletions packages/libnvidia-container/libnvidia-container.spec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%global nvidia_modprobe_version 495.44
%global nvidia_modprobe_version 550.54.14

Name: %{_cross_os}libnvidia-container
Version: 1.13.5
Version: 1.16.1
Release: 1%{?dist}
Summary: NVIDIA container runtime library
# The COPYING and COPYING.LESSER files in the sources don't apply to libnvidia-container
Expand Down Expand Up @@ -59,6 +59,7 @@ export WITH_TIRPC=yes \\\
export WITH_NVCGO=yes \\\
export prefix=%{_cross_prefix} \\\
export DESTDIR=%{buildroot} \\\
export LIB_VERSION=%{version} \\\
%{nil}

%build
Expand Down
4 changes: 2 additions & 2 deletions packages/nvidia-container-toolkit/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ path = "../packages.rs"
releases-url = "https://github.com/NVIDIA/nvidia-container-toolkit/releases"

[[package.metadata.build-package.external-files]]
url = "https://github.com/NVIDIA/nvidia-container-toolkit/archive/v1.13.5/nvidia-container-toolkit-1.13.5.tar.gz"
sha512 = "7266e779abf27f2bc1b7c801e5eb4720b82be22bed3ec90171e4f5499b2bc7376f1369e4931d4db55edc8f5fd5e44d5e817eb258ec39bf55f16424fe725188d6"
url = "https://github.com/NVIDIA/nvidia-container-toolkit/archive/v1.16.1/nvidia-container-toolkit-1.16.1.tar.gz"
sha512 = "691d4fc47ea60b730ec491b333aa8118bcfd62cdab20a42b84155c6a13484d920e758435b5029bbae4fbefce82352aa5764f1554992682f689c95615809fb83c"

[build-dependencies]
glibc = { path = "../glibc" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%global gorepo nvidia-container-toolkit
%global goimport %{goproject}/%{gorepo}

%global gover 1.13.5
%global gover 1.16.1
%global rpmver %{gover}

Name: %{_cross_os}nvidia-container-toolkit
Expand Down Expand Up @@ -50,6 +50,12 @@ Conflicts: %{name}-ecs

%build
%cross_go_configure %{goimport}

# We don't set `-Wl,-z,now`, because the binary uses lazy loading
# to load the NVIDIA libraries in the host
export CGO_LDFLAGS="-Wl,-z,relro -Wl,--export-dynamic"
export GOLDFLAGS="-compressdwarf=false -linkmode=external -extldflags '${CGO_LDFLAGS}'"

go build -ldflags="${GOLDFLAGS}" -o nvidia-container-runtime-hook ./cmd/nvidia-container-runtime-hook
go build -ldflags="${GOLDFLAGS}" -o nvidia-ctk ./cmd/nvidia-ctk

Expand Down
6 changes: 3 additions & 3 deletions packages/nvidia-k8s-device-plugin/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ path = "../packages.rs"
releases-url = "https://github.com/NVIDIA/k8s-device-plugin/releases"

[[package.metadata.build-package.external-files]]
url = "https://github.com/NVIDIA/k8s-device-plugin/archive/v0.14.4/v0.14.4.tar.gz"
path = "k8s-device-plugin-0.14.4.tar.gz"
sha512 = "055439c2aac797b2d594846d9fb572f2f46ad5caeb9f44107a2fc05211904823c01a8fd8a2329c13a47ef440fd017086067f7ec55d482970cdbc1663b36d714c"
url = "https://github.com/NVIDIA/k8s-device-plugin/archive/v0.16.2/v0.16.2.tar.gz"
path = "k8s-device-plugin-0.16.2.tar.gz"
sha512 = "0be166ba3f2ae51882e62e71dc625f6e83c4c18321e9e6beb05b7f2f6b3628e5ca7f480576f422faba0e6ad232085dff200b474f2453aeef307f9a6a5d13e1b6"

[build-dependencies]
glibc = { path = "../glibc" }
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
%global gorepo k8s-device-plugin
%global goimport %{goproject}/%{gorepo}

%global gover 0.14.4
%global gover 0.16.2
%global rpmver %{gover}

Name: %{_cross_os}nvidia-k8s-device-plugin
Expand Down Expand Up @@ -46,6 +46,7 @@ Conflicts: (%{_cross_os}image-feature(no-fips) or %{name}-bin)
%cross_go_setup %{gorepo}-%{gover} %{goproject} %{goimport}

%build
export GO_MAJOR="1.22"
%cross_go_configure %{goimport}
# We don't set `-Wl,-z,now`, because the binary uses lazy loading
# to load the NVIDIA libraries in the host
Expand Down

0 comments on commit 3852578

Please sign in to comment.