mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-03 19:03:30 +07:00
[PR #5305] [Engine] Release a batch slot’s bias allocation when clearing it #5379
Labels
No labels
needs-format
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Niko1221/Strata#5379
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Niko1221/Strata/pull/5305
Author: @shoucandanghehe
Created: 11/5/2026
Status: 🔄 Open
Base:
main← Head:upstream/slot-bias-ownership📝 Commits (1)
f6eb71eVerifier: release a slot's bias allocation when clearing it📊 Changes
1 file changed (+6 additions, -1 deletions)
View changed files
📝
src/core/verify.cpp(+6 -1)📄 Description
Problem
When a batch slot switches from a request with
logit_biasto one without it, the empty-bias path drops the owning pointer without releasing the device allocation. Repeated slot reuse leaks another allocation on each biased-to-unbiased transition.Fix
Free the previous bias buffer under the existing device guard, then clear the owning and sampler pointers.
Related: #3266.
Validation
Tested
f6eb71e0.Build command, from each configured backend build directory:
CUDA regression checks, from the CUDA build directory:
All four checks passed on an RTX 4060.
The allocation-and-sampling probe was also rerun against the full CUDA engine libraries. It calls the real setter, sampler and destructor, and checks the released allocation addresses with
cuMemGetAddressRange:3 → 0 → 1in both versions.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.