Repository navigation
Fix Ascend NUMA lookup with PCI sysfs fallback - #129
Open
zhachar14h-cell wants to merge 1 commit into
Open
zhachar14h-cell wants to merge 1 commit into
zhachar14h-cell wants to merge 1 commit into
Conversation
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.
On an Ascend910B3 container,
which_numa(i_gpu=0)raisesRuntimeError: NUMA metadata is unavailable for ascend device 0even though the device's PCInuma_nodeis readable.npu-smi info -t topois unsupported on this device and there are no ubcore NUMA entries, so the worker falls back from its NUMA lookup.Add a PCI sysfs fallback when the existing topology and ubcore paths have no NUMA information. Resolve the runtime ordinal through
npu-smi info -m, query that NPU ID and chip ID withinfo -t board, and read the corresponding PCInuma_node. Keep unknown/missing metadata as unavailable, and retain the current topology/ubcore priority.Validated on a real A2 / Ascend910B3 with Linux 5.10, CANN 9.0.0 and driver 25.5.0:
0000:0a:00.0.device_numa_node(0)andwhich_numa(0)return 0, matching sysfs.ciandci_npuare selected.git diff --checkpass locally.Validation covers the runtime-independent discovery package only. A3/Ascend910C, Ascend950, full inference, CPU-binding permissions and H2D performance were not tested; this change does not establish full A2/A3 backend support.