Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion build.py
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,16 @@ def onnxruntime_cmake_args(images, library_paths):
else TRITON_VERSION_MAP[FLAGS.version][2],
)
]
# If variable is set, ONNX Runtime package will be downloaded from the specified URL
if os.getenv("TRITON_ONNXRUNTIME_PACKAGE_URL"):
cargs.append(
cmake_backend_arg(
"onnxruntime",
"TRITON_ONNXRUNTIME_PACKAGE_URL",
None,
os.getenv("TRITON_ONNXRUNTIME_PACKAGE_URL"),
)
)

# TRITON_ENABLE_GPU is already set for all backends in backend_cmake_args()
# TODO: TPRD-334 TensorRT extension is not currently supported by our manylinux build
Expand Down Expand Up @@ -1679,7 +1689,9 @@ def create_docker_build_script(script_name, container_install_dir, container_ci_
if FLAGS.container_memory:
baseargs += ["--memory", FLAGS.container_memory]

baseargs += ["--cache-from={}".format(k) for k in cachefrommap]
if target_platform() != "windows":
baseargs += ["--cache-from={}".format(k) for k in cachefrommap]

baseargs += ["."]

docker_script.cwd(THIS_SCRIPT_DIR)
Expand Down
Loading