Chenguang Li
c1c354e44c
CANN: Refactor ND to NZ workspace to be per-device (#15763)
* CANN:Refactor ND to NZ workspace to be per-device in Ascend backend
- Replaced the previous single global ND→NZ workspace with a per-device
cache using unordered_map keyed by device ID.
- Functions `release_nz_workspace`, `relloc_nz_workspace`, and
`get_nz_workspace` now manage workspace independently for each device,
preventing memory conflicts in multi-device / pipeline parallel scenarios.
- This change fixes potential precision issues caused by workspace
overwrites when multiple devices perform ND→NZ conversions concurrently.
Co-authored-by: hipudding <huafengchun@gmail.com>
* refactor
Signed-off-by: noemotiovon <757486878@qq.com>
* rename
Signed-off-by: noemotiovon <757486878@qq.com>
* fix review comments
Signed-off-by: noemotiovon <757486878@qq.com>
---------
Signed-off-by: noemotiovon <757486878@qq.com>
Co-authored-by: hipudding <huafengchun@gmail.com>
2025-09-04 20:20:14 +08:00
..
2025-07-26 17:56:18 +08:00
2025-05-26 10:20:18 +08:00
2025-09-04 10:38:49 +02:00
2025-07-29 22:36:43 +08:00
2025-08-06 14:12:42 +08:00
2025-09-04 15:12:30 +08:00
2025-05-26 10:20:18 +08:00
2025-09-04 20:20:14 +08:00