Skip to content

Add source-window collective materialization#192

Open
wolegechu wants to merge 8 commits into
mainfrom
codex/source-window-collective-realization
Open

Add source-window collective materialization#192
wolegechu wants to merge 8 commits into
mainfrom
codex/source-window-collective-realization

Conversation

@wolegechu

Copy link
Copy Markdown
Contributor

Summary

  • Add source-window collective planning, batched scatter kernel support, loader integration, and daemon materialization routing.
  • Add AUTO source-window collective behavior, with defaults enabled for collective planning/cache/scatter/compiled routed program paths.
  • Extend Python artifact runtime/store APIs and docs for source-window collective realization flows.
  • Add typos configuration for CUDA's cudaMemcpy3DParms identifier so spelling checks accept the official CUDA type name.

Impact

This makes source-window collective materialization a first-class automatic strategy for eligible disk materialization flows while preserving explicit config knobs for selection and fallback behavior.

Validation

  • Commit hooks passed on both commits: clang-format, buildifier/buildifier-lint, ruff check/format, typos, gitleaks, license hooks, and conventional commit checks.
  • Local Bazel testing was started but not completed before proceeding directly with the PR, per the latest request.

Notes

  • MODULE.bazel and third_party/libtorch/BUILD were intentionally left out of the commits and remain local uncommitted changes.

Address local-mapped materialization planning regressions and keep executable byte-range maps available for binding realization fallback paths.

Add source-window collective design and validation coverage, propagate the new daemon/runtime options, and include focused C++ and Python tests for the planner and binding execution paths.
Comment thread tensorcast/__init__.py
"normalize_binding_realization_plan",
"plan",
"from_disk",
"from_resolved_public_disk_source",
Comment thread tools/experiments/source_window_collective_feasibility.py Fixed
Comment thread tools/experiments/source_window_collective_feasibility.py Fixed
@wolegechu wolegechu marked this pull request as ready for review June 17, 2026 08:41
@wolegechu wolegechu changed the title [codex] Add source-window collective materialization Add source-window collective materialization Jun 17, 2026
@wolegechu wolegechu requested a review from zhou-yuhan June 17, 2026 08:43

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: fa00f614fd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +3187 to +3188
if (!physical_source_table_or.ok()) {
return to_grpc_status(physical_source_table_or.status());

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Clear the inflight template key before returning

When parsing physical_source_index_table_future fails, this early return leaves the key inserted in execution_template_inflight by the builder path and never signals cache.cv. Any concurrent or later request with the same execution-template cache key will miss the cache, see the stale inflight marker, and wait indefinitely in the loop above instead of retrying or surfacing the parse error; the later error paths already erase/signal, so this one needs the same cleanup.

Useful? React with 👍 / 👎.

Signed-off-by: wolegechu <ychu.luo@gmail.com>
Signed-off-by: wolegechu <ychu.luo@gmail.com>
Comment thread tools/experiments/source_window_collective_feasibility.py Fixed
raise RuntimeError(
"TensorCast retained binding response has no mem_handle"
)
except ValueError:
import pytest
import torch

import tensorcast.artifact_runtime.binding.retained as retained_binding_module
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant