furiosa-ai / device-api

APIs that offers NPU devices' information and allow to control the devices
Apache License 2.0
5 stars 8 forks source link

add hardware topology module #105

Closed bg-furiosa closed 5 months ago

bg-furiosa commented 6 months ago

PR Description

What type of PR is this?

Special notes for reviewer

./show_topology
Authorization required, but no authorization protocol specified
+--------+----------------------+----------------------+----------------------+----------------------+
| Device | npu0                 | npu1                 | npu2                 | npu3                 |
+--------+----------------------+----------------------+----------------------+----------------------+
| npu0   | LinkTypeSoc          | LinkTypeCPU          | LinkTypeInterconnect | LinkTypeInterconnect |
+--------+----------------------+----------------------+----------------------+----------------------+
| npu1   | LinkTypeCPU          | LinkTypeSoc          | LinkTypeInterconnect | LinkTypeInterconnect |
+--------+----------------------+----------------------+----------------------+----------------------+
| npu2   | LinkTypeInterconnect | LinkTypeInterconnect | LinkTypeSoc          | LinkTypeCPU          |
+--------+----------------------+----------------------+----------------------+----------------------+
| npu3   | LinkTypeInterconnect | LinkTypeInterconnect | LinkTypeCPU          | LinkTypeSoc          |
+--------+----------------------+----------------------+----------------------+----------------------+