From 8002a42a3726370f26234e39a90461e6ab2e6401 Mon Sep 17 00:00:00 2001 From: Anthony Shoumikhin Date: Sun, 26 Jul 2026 15:35:51 -0700 Subject: [PATCH] Pin ExecuTorch to the release/1.4 branch head main pins the ExecuTorch dependency to the release/1.3 branch head (6118688a), which predates the shared extension_cuda caller-stream work. Bump the pin to the release/1.4 branch head (cd380e7aefd18c171271cc228d3a155455095219), the first ExecuTorch release line that contains both pytorch/executorch#20158 (shared extension_cuda caller-stream library) and pytorch/executorch#20498 (caller CUDA stream for H2D/D2H copies). This follows the existing convention of pinning a release-branch head commit; the new_git_repository rule takes a commit, not a branch name. The four Bazel files that pin ExecuTorch are updated identically: MODULE.bazel, docker/MODULE.bazel.docker, docker/MODULE.bazel.ngc, and toolchains/ci_workspaces/MODULE.bazel.tmpl. Swap the branch-head commit for the immutable v1.4.0 tag once ExecuTorch publishes it. --- MODULE.bazel | 6 +++--- docker/MODULE.bazel.docker | 6 +++--- docker/MODULE.bazel.ngc | 6 +++--- toolchains/ci_workspaces/MODULE.bazel.tmpl | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/MODULE.bazel b/MODULE.bazel index 93aca46848..bfaa276b0b 100644 --- a/MODULE.bazel +++ b/MODULE.bazel @@ -42,12 +42,12 @@ new_git_repository = use_repo_rule("@bazel_tools//tools/build_defs/repo:git.bzl" local_torch = use_repo_rule("//toolchains:local_torch.bzl", "local_torch") -# Pinned to the ExecuTorch release/1.3 branch head. +# Pinned to the ExecuTorch release/1.4 branch head. new_git_repository( name = "executorch", build_file = "@//third_party/executorch:BUILD", - # latest commit in release/1.3 branch - commit = "6118688a095fd9697224f5cad72ce42db641c9cd", + # latest commit in release/1.4 branch + commit = "cd380e7aefd18c171271cc228d3a155455095219", patch_cmds = [ "find . -mindepth 2 \\( -name BUILD -o -name BUILD.bazel \\) -delete", "mkdir executorch && find . -mindepth 1 -maxdepth 1 ! -name executorch ! -name BUILD ! -name BUILD.bazel ! -name REPO.bazel -exec cp -a {} executorch/ \\;", diff --git a/docker/MODULE.bazel.docker b/docker/MODULE.bazel.docker index 316fbb6fd7..a60d7db576 100644 --- a/docker/MODULE.bazel.docker +++ b/docker/MODULE.bazel.docker @@ -62,12 +62,12 @@ new_local_repository( build_file = "third_party/libtorch/BUILD" ) -# Pinned to the ExecuTorch release/1.3 branch head. +# Pinned to the ExecuTorch release/1.4 branch head. new_git_repository( name = "executorch", build_file = "@//third_party/executorch:BUILD", - # latest commit in release/1.3 branch - commit = "6118688a095fd9697224f5cad72ce42db641c9cd", + # latest commit in release/1.4 branch + commit = "cd380e7aefd18c171271cc228d3a155455095219", patch_cmds = [ "find . -mindepth 2 \\( -name BUILD -o -name BUILD.bazel \\) -delete", "mkdir executorch && find . -mindepth 1 -maxdepth 1 ! -name executorch ! -name BUILD ! -name BUILD.bazel ! -name REPO.bazel -exec cp -a {} executorch/ \\;", diff --git a/docker/MODULE.bazel.ngc b/docker/MODULE.bazel.ngc index 2079b96b08..38c62b7649 100644 --- a/docker/MODULE.bazel.ngc +++ b/docker/MODULE.bazel.ngc @@ -71,12 +71,12 @@ new_local_repository( build_file = "third_party/libtorch/BUILD" ) -# Pinned to the ExecuTorch release/1.3 branch head. +# Pinned to the ExecuTorch release/1.4 branch head. new_git_repository( name = "executorch", build_file = "@//third_party/executorch:BUILD", - # latest commit in release/1.3 branch - commit = "6118688a095fd9697224f5cad72ce42db641c9cd", + # latest commit in release/1.4 branch + commit = "cd380e7aefd18c171271cc228d3a155455095219", recursive_init_submodules = True, patch_cmds = [ "find . -mindepth 2 \\( -name BUILD -o -name BUILD.bazel \\) -delete", diff --git a/toolchains/ci_workspaces/MODULE.bazel.tmpl b/toolchains/ci_workspaces/MODULE.bazel.tmpl index fface1d10d..ad7e7f6dc6 100644 --- a/toolchains/ci_workspaces/MODULE.bazel.tmpl +++ b/toolchains/ci_workspaces/MODULE.bazel.tmpl @@ -182,12 +182,12 @@ new_local_repository( build_file = "third_party/libtorch/BUILD" ) -# Pinned to the ExecuTorch release/1.3 branch head. +# Pinned to the ExecuTorch release/1.4 branch head. new_git_repository( name = "executorch", build_file = "@//third_party/executorch:BUILD", - # latest commit in release/1.3 branch - commit = "6118688a095fd9697224f5cad72ce42db641c9cd", + # latest commit in release/1.4 branch + commit = "cd380e7aefd18c171271cc228d3a155455095219", recursive_init_submodules = True, patch_cmds = [ "find . -mindepth 2 \\( -name BUILD -o -name BUILD.bazel \\) -delete",