mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #4054] [Bug]: Ascend wildcard location probe fails on host memory instead of falling back #1031
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#1031
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?
Originally created by @gygdh-001 on GitHub (Sep 11, 2026).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/4054
Environment
kvcache-ai/Mooncakemain(mooncake-transfer-engine-npuwheel / source build)ascend(host-memory buffers)Description
AscendDirectTransport::ResolveAscendMemType()inmooncake-transfer-engine/src/transport/ascend_transport/ascend_direct_transport/ascend_direct_transport.cppuses
CHECK_ACL(aclrtPointerGetAttributes(addr, &attributes))for the wildcard location"*". When the buffer is host memory that is not managed by ACL (hugepage, shm, or plainmalloc),aclrtPointerGetAttributesfails, soResolveAscendMemTypereturns an error andregistration fails (in some code paths this surfaces as
location:* is not supported).CUDA already falls back to host memory when the wildcard probe cannot identify the address;
Ascend should behave the same way. The same pattern was previously applied to the
heterogeneous RDMA transport in PR #1657.
Steps to reproduce
allocate_managed_bufferon a host buffer) sothat a host buffer is registered with the wildcard location
"*".aclrtPointerGetAttributeserror /location:* is not supported).Expected behavior
The Ascend wildcard location should fall back to host memory when the probe cannot identify
the address (matching CUDA and the heterogeneous-RDMA transport).
Proposed fix
Treat
aclrtPointerGetAttributesfailure as host memory (adxl::MEM_HOST) instead of a harderror. See the linked PR.
@github-actions[bot] commented on GitHub (Sep 11, 2026):
Thanks for opening this issue, @gygdh-001!
43057576A maintainer will triage this when possible. To help us respond faster, please include:
Useful links: Documentation · Contributing guide