Skip to content

Commit b3e0de4

Browse files
committed
build.py - add shared-memory instalation back to the ManyLinux
1 parent a541aa2 commit b3e0de4

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

build.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1520,9 +1520,16 @@ def dockerfile_prepare_container_linux(argmap, backends, enable_gpu, target_mach
15201520
"""
15211521

15221522
if target_platform() == "rhel":
1523+
repo_arch = "sbsa" if target_machine == "aarch64" else "x86_64"
15231524
df += """
1524-
RUN dirname $(find /usr -name "libcudart*.so" -o -name "libnvinf*.so" -o -name "libnvshm*" ) | sort -u > /etc/ld.so.conf.d/triton-cuda-libs.conf && ldconfig
1525-
"""
1525+
RUN dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/{repo_arch}/cuda-rhel8.repo \\
1526+
&& dnf clean expire-cache \\
1527+
&& dnf install --assumeyes libnvshmem3-cuda-13
1528+
1529+
RUN dirname $(find /usr -name "libcudart*.so" -o -name "libnvinf*.so" -o -name "libnvshm*" -type f) | sort -u > /etc/ld.so.conf.d/triton-cuda-libs.conf && ldconfig
1530+
""".format(
1531+
repo_arch=repo_arch
1532+
)
15261533

15271534
df += """
15281535
WORKDIR /opt/tritonserver

0 commit comments

Comments
 (0)