Skip to content

fix(vector): stabilize finite extreme vector reductions - #29143

Merged
XuPeng-SH merged 9 commits into
matrixorigin:mainfrom
Lundomn:codex/issue-29083
Sep 20, 2026
Merged

XuPeng-SH merged 9 commits into
matrixorigin:mainfrom
Lundomn:codex/issue-29083

Conversation

@Lundomn

@Lundomn Lundomn commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

What type of PR is this?

  • BUG

Which issue(s) this PR fixes:

fixes #29083

What this PR does / why we need it:

Stabilizes finite extreme-magnitude vector reductions and related index-training paths.

  • Uses scaled/compensated wide reductions for SQL DOUBLE vector metrics, normalization, cosine, norms, and summation.
  • Preserves typed metric behavior while widening SQL and native-float centroid/k-means calculations where required.
  • Stabilizes CPU and CUDA XCall L2 arithmetic and adds native regression coverage.
  • Adds focused tests for extreme values, cancellation, underflow, and centroid assignment.

Unverified environment checks

CUDA compilation/execution and a healthy-cluster BVT were unavailable in this environment. The service build, focused Go tests, native XCall regression, and CPU/CUDA compiler-flag dry-runs pass.

@qodo-code-review

Copy link
Copy Markdown

Qodo reviews are paused for this user.

Troubleshooting steps vary by plan Learn more →

On a Teams plan?
Reviews resume once this user has a paid seat and their Git account is linked in Qodo.
Link Git account →

Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center?
These require an Enterprise plan - Contact us
Contact us →

@mergify mergify Bot added the kind/bug Something isn't working label Sep 20, 2026
@matrix-meow matrix-meow added the size/XL Denotes a PR that changes [1000, 1999] lines label Sep 20, 2026

@XuPeng-SH XuPeng-SH left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

PASS — exact head f8e751897b42d58fe93a84d1ea510e83199ddf30。

复核了 float32/float64 stable reductions、finite extreme/underflow/overflow、NaN/Inf/cancellation 处理,以及 Go metric、C xcall、CUDA/native 路径的接线。结果类型与 L2 squared/true-distance 调用约定保持一致;未发现 P0/P1/P2 功能问题。Native contract/build、UT、SCA、BVT 和 coverage 均通过。

@mergify mergify Bot added the queued label Sep 20, 2026
@mergify

mergify Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Merge Queue Status

  • ✅ Entered queue — 2026-09-20 12:46 UTC · Rule: main · triggered by rule Automatic queue on approval for main
  • 🟠 Checks running · in-place
  • 🚫 Left the queue — 2026-09-20 12:56 UTC · at 2ea0867cb6e5714e4fd622445260c6172c9e3134

This pull request spent 9 minutes 48 seconds in the queue, with no time running CI.

Waiting for any of
  • check-neutral = CI Required
  • check-skipped = CI Required
  • check-success = CI Required
All conditions

Reason

Pull request #29143 has been dequeued

Pull request from fork cannot be queued. This pull request comes from a fork, and Mergify needs the author's permission to update its branch.

The author needs to enable "Allow edits from maintainers" on this pull request.

Hint

You should look at the reason for the failure and decide if the pull request needs to be fixed or if you want to requeue it.
If you do update this pull request, it will automatically be requeued once the queue conditions match again.
If you think this was a flaky issue instead, you can requeue the pull request, without updating it, by posting a @mergifyio queue comment.

Tick the box to put this pull request back in the merge queue (same as @mergifyio queue).

  • Requeue this pull request

This branch was previously deployed

1 inactive deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug Something isn't working size/XXL Denotes a PR that changes 2000+ lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: vector functions underflow or overflow on finite extreme magnitudes

3 participants