Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions gpustack_runtime/deployer/cdi/ascend.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@
https://gitcode.com/Ascend/mind-cluster/blob/master/docs/en/scheduling/references/appendix.md.
"""

_HCCN_CONF_PATH = "/etc/hccn.conf"
"""
The device NIC addresses, as configured on the host. A transport that builds
RoCE endpoints reads them from this file or from hccn_tool, which lives in a
driver directory none of the mounts below covers; without either, the engine
fails to initialize with "Failed to get device ip from hccn.conf and
hccn_tool". A container that talks to another node over Device RoCE therefore
needs this file, and one that does not is unaffected by its presence.
"""

_A5_RANKTABLE_VERSION = "2.0"
"""
The ranktable version the A5 generation requires.
Expand Down Expand Up @@ -160,6 +170,7 @@ def generate(

mount_paths = [
_HCCL_RANKTABLE_PATH,
_HCCN_CONF_PATH,
"/usr/local/Ascend/driver/topo",
"/usr/local/Ascend/driver/lib64",
"/usr/local/Ascend/driver/include",
Expand Down
Loading