Skip to content

Commit 3852578

Browse files
authored
Merge pull request #88 from arnaldo2792/update-nvidias
Update libnvidia-container, nvidia-container-toolkit, and nvidia-device-plugin
2 parents 36180ab + 47c372d commit 3852578

File tree

6 files changed

+21
-13
lines changed

6 files changed

+21
-13
lines changed

packages/libnvidia-container/Cargo.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ path = "../packages.rs"
1212
releases-url = "https://github.com/NVIDIA/libnvidia-container/releases"
1313

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

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

2222
[build-dependencies]
2323
glibc = { path = "../glibc" }

packages/libnvidia-container/libnvidia-container.spec

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
%global nvidia_modprobe_version 495.44
1+
%global nvidia_modprobe_version 550.54.14
22

33
Name: %{_cross_os}libnvidia-container
4-
Version: 1.13.5
4+
Version: 1.16.1
55
Release: 1%{?dist}
66
Summary: NVIDIA container runtime library
77
# The COPYING and COPYING.LESSER files in the sources don't apply to libnvidia-container
@@ -59,6 +59,7 @@ export WITH_TIRPC=yes \\\
5959
export WITH_NVCGO=yes \\\
6060
export prefix=%{_cross_prefix} \\\
6161
export DESTDIR=%{buildroot} \\\
62+
export LIB_VERSION=%{version} \\\
6263
%{nil}
6364

6465
%build

packages/nvidia-container-toolkit/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ path = "../packages.rs"
1212
releases-url = "https://github.com/NVIDIA/nvidia-container-toolkit/releases"
1313

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

1818
[build-dependencies]
1919
glibc = { path = "../glibc" }

packages/nvidia-container-toolkit/nvidia-container-toolkit.spec

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%global gorepo nvidia-container-toolkit
33
%global goimport %{goproject}/%{gorepo}
44

5-
%global gover 1.13.5
5+
%global gover 1.16.1
66
%global rpmver %{gover}
77

88
Name: %{_cross_os}nvidia-container-toolkit
@@ -50,6 +50,12 @@ Conflicts: %{name}-ecs
5050

5151
%build
5252
%cross_go_configure %{goimport}
53+
54+
# We don't set `-Wl,-z,now`, because the binary uses lazy loading
55+
# to load the NVIDIA libraries in the host
56+
export CGO_LDFLAGS="-Wl,-z,relro -Wl,--export-dynamic"
57+
export GOLDFLAGS="-compressdwarf=false -linkmode=external -extldflags '${CGO_LDFLAGS}'"
58+
5359
go build -ldflags="${GOLDFLAGS}" -o nvidia-container-runtime-hook ./cmd/nvidia-container-runtime-hook
5460
go build -ldflags="${GOLDFLAGS}" -o nvidia-ctk ./cmd/nvidia-ctk
5561

packages/nvidia-k8s-device-plugin/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ path = "../packages.rs"
1212
releases-url = "https://github.com/NVIDIA/k8s-device-plugin/releases"
1313

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

1919
[build-dependencies]
2020
glibc = { path = "../glibc" }

packages/nvidia-k8s-device-plugin/nvidia-k8s-device-plugin.spec

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
%global gorepo k8s-device-plugin
33
%global goimport %{goproject}/%{gorepo}
44

5-
%global gover 0.14.4
5+
%global gover 0.16.2
66
%global rpmver %{gover}
77

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

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

0 commit comments

Comments
 (0)