Setting the NPU Sharing Mode

Use the FusionDirector to deliver the configuration of the NPU sharing mode.

Message instance
{
    "header": {
        "msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
        "parent_msg_id": "",
        "resourceversion": "",
        "timestamp": 1550107087319,
        "sync": false
    },
    "route": {
        "source": "EdgeManager",
        "group": "hardware",
        "operation": "update",
        "resource": "websocket/npu_sharing"
    },
    "content": {
    }
}

Parameter description

The content message is described as follows:

"content": {
    "npu_sharing_enabled": true
}

Level-1 Resource

Description

npu_sharing_enabled

Meaning: enables or disables the NPU sharing mode.

Type: bool

Value: True or False

Result returned

{
    "header": {
        "id": "",
        "msg_id": "7300143b-415d-4c90-94a5-34d13e7a80ef",
        "parentId": "",
        "parent_msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
        "version": "",
        "resourceversion": "",
        "timestamp": 1652262409542,
        "isSync": false,
        "sync": false,
        "nodeId": "",
        "peerInfo": {}
    },
    "router": {
        "source": "",
        "destination": "",
        "option": "",
        "resource": ""
    },
    "route": {
        "source": "hardware",
        "group": "hub",
        "operation": "update",
        "resource": "websocket/config_result"
    },
    "content": "{
    "topic": "npu_sharing",
    "percentage": "100%",
    "result": "success",
    "reason": "ok"
}"
}

If the parameter verification of the NPU sharing downstream message fails, an error message whose resource is websocket/npu_sharing is returned. For details, see Reporting Error Container Configuration Information.