Skip to content

fix(kernels): initialize submodules during build - #2

Closed
Ma1oneZhang wants to merge 1 commit into
mainfrom
fix/build-rs-submodule-init
Closed

Ma1oneZhang wants to merge 1 commit into
mainfrom
fix/build-rs-submodule-init

Conversation

@Ma1oneZhang

Copy link
Copy Markdown
Owner

Summary

  • initialize missing git submodules from openinfer-kernels/build.rs before CUDA feature generation or vendored header checks
  • skip the update when git submodule status --recursive shows no uninitialized entries, so normal rebuilds do not touch the network
  • keep explicit diagnostics if git inspection or initialization fails
  • document the first-build new-user failure mode in docs/subsystems/kernels/build-rs-submodule-init.md

Tracking issue

Verification

  • cargo fmt --check
  • OPENINFER_CUDA_SM=80 OPENINFER_NVCC_JOBS=1 cargo check -p openinfer-kernels --no-default-features

Upstream note

This PR is opened on the fork because the current GitHub token cannot create pull requests on openinfer-project/openinfer.

@Ma1oneZhang
Ma1oneZhang force-pushed the fix/build-rs-submodule-init branch from a4ff78d to ec6df23 Compare July 8, 2026 04:59
@Ma1oneZhang Ma1oneZhang closed this Jul 8, 2026
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.

Auto-initialize kernel submodules on first build

1 participant