Skip to content

Commit 6bfa68f

Browse files
committed
Updating build.py
1 parent dec5511 commit 6bfa68f

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

build.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1318,12 +1318,13 @@ def dockerfile_prepare_container_linux(argmap, backends, enable_gpu, target_mach
13181318
backend_dependencies = "libgomp1"
13191319

13201320
# libgfortran5 is needed by pytorch backend on ARM
1321-
if "pytorch" in backends:
1322-
if target_machine == "aarch64":
1323-
backend_dependencies += " libgfortran5"
1321+
if ("pytorch" in backends) and (target_machine == "aarch64"):
1322+
backend_dependencies += " libgfortran5"
13241323

1325-
if target_platform() not in ["igpu", "windows", "rhel"]:
1326-
backend_dependencies += " libnvshmem3-cuda-13"
1324+
# libnvshmem3-cuda-13 is needed by pytorch backend but will be required by vLLM and TensorRT-LLM
1325+
# on platforms other than IGPU we still using CUDA 12 it means we need to add this conditionally
1326+
if target_platform() not in ["igpu", "windows", "rhel"]:
1327+
backend_dependencies += " libnvshmem3-cuda-13"
13271328

13281329
# openssh-server is needed for fastertransformer
13291330
if "fastertransformer" in backends:

0 commit comments

Comments
 (0)