Repository navigation
fix: correct device guards and reject pool growth during capture - #51
Merged
gongchensu merged 3 commits intoOct 15, 2026
Conversation
Reject unavailable devices before dispatch and prevent CUDA pool growth during native capture. Complete event not-ready mappings and cover the failure paths with regression tests.
gongchensu
merged commit Oct 15, 2026
e719c28
into
InfiniTensor:refactor/modern-infini-stack-review
4 checks passed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
include/infini/rt/device_guard.h, and restore the previous device even when the guard initially selects the already-current device.src/reusable_memory_pool.cc, while allowing cached-block reuse. Document the preallocation requirement ininclude/infini/rt/reusable_memory_pool.h.kEventNotReadymappings for Iluvatar, Hygon, T-Head, MetaX, Mars, and Moore so the existing generator can emit theirIsEventNotReadydispatch cases.Base:
refactor/modern-infini-stack-review@b413816.Head:
fix/modern-infini-stack-review@86b2326.Motivation
The refactor branch introduces runtime utilities with several boundary cases:
kEventNotReadyfall through tofalsein the generated public helper, misclassifying a normal pending event.Type of Change
feat- new feature / new backend capability / new public APIfix- bug fixperf- performance improvement without behavior changerefactor- code restructuring without behavior changetest- adding or fixing tests onlydocs- documentation onlybuild/ci- build system or CI configurationchore- tooling, formatting, or other non-code changes!in the Conventional Commits prefix or aBREAKING CHANGE:footer)Platforms Affected
WITH_CPU)WITH_NVIDIA)WITH_ILUVATAR)WITH_HYGON)WITH_METAX)WITH_MOORE)WITH_CAMBRICON)WITH_ASCEND)Smoke Build and Test Result
Test Results on Supported Platforms
Full `ctest` output (optional)
Benchmark / Performance Impact
Notes for Reviewers