Skip to content

Removing caching on windows. #7717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 29, 2024
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