Skip to content

Commit a541aa2

Browse files
committed
build.py - remove redundant step
1 parent 9a88e29 commit a541aa2

1 file changed

Lines changed: 2 additions & 23 deletions

File tree

build.py

Lines changed: 2 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1519,31 +1519,10 @@ def dockerfile_prepare_container_linux(argmap, backends, enable_gpu, target_mach
15191519
ENV PYTHONPATH=/opt/tritonserver/backends/dali/wheel/dali:$PYTHONPATH
15201520
"""
15211521

1522-
if target_platform() not in ["igpu", "windows", "rhel"]:
1523-
repo_arch = "sbsa" if target_machine == "aarch64" else "x86_64"
1524-
df += f"""
1525-
RUN curl -o /tmp/cuda-keyring.deb \\
1526-
https://developer.download.nvidia.com/compute/cuda/repos/ubuntu2404/{repo_arch}/cuda-keyring_1.1-1_all.deb \\
1527-
&& apt install /tmp/cuda-keyring.deb \\
1528-
&& rm /tmp/cuda-keyring.deb \\
1529-
&& apt update -qq \\
1530-
&& apt install --yes --no-install-recommends libnvshmem3-cuda-13 \\
1531-
&& rm -rf /var/lib/apt/lists/* \\
1532-
&& dpkg -L libnvshmem3-cuda-13 | grep libnvshmem_host.so | sed -e 's/libnvshmem_host.*//g' | sort -u > /etc/ld.so.conf.d/libnvshmem3-cuda-13.conf \\
1533-
&& ldconfig
1534-
""".format(
1535-
repo_arch=repo_arch
1536-
)
1537-
15381522
if target_platform() == "rhel":
1539-
repo_arch = "sbsa" if target_machine == "aarch64" else "x86_64"
15401523
df += """
1541-
RUN dnf config-manager --add-repo https://developer.download.nvidia.com/compute/cuda/repos/rhel8/{repo_arch}/cuda-rhel8.repo \\
1542-
&& dnf clean expire-cache \\
1543-
&& dnf install --assumeyes libnvshmem3-cuda-13
1544-
""".format(
1545-
repo_arch=repo_arch
1546-
)
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+
"""
15471526

15481527
df += """
15491528
WORKDIR /opt/tritonserver

0 commit comments

Comments
 (0)