设置指定设备的指定芯片的容器共享模式
命令功能
npu-smi set -t device-share -i id -c chip_id -d value 用于设置指定设备的指定芯片的容器共享模式。
命令格式
npu-smi set -t device-share -i id -c chip_id -d value
参数说明
类型 |
描述 |
---|---|
id |
设备id。通过npu-smi info -l命令查出的NPU ID即为设备id。 |
chip_id |
芯片id。通过npu-smi info -m命令查出的Chip ID即为芯片id。 该命令不支持指定MCU |
value |
容器使能状态:分为禁用、使能。默认禁用。
|
使用指南
Linux物理机 |
Linux物理机容器 |
Linux虚拟机 |
|
---|---|---|---|
root用户 |
运行用户组(非root用户) |
root用户 |
root用户 |
Y |
N |
N |
NA |
Linux物理机 |
Linux物理机容器 |
Linux虚拟机 |
|
---|---|---|---|
root用户 |
运行用户组(非root用户) |
root用户 |
root用户 |
N |
N |
N |
N |
使用实例
设置设备0中编号为0的芯片的容器共享模式为使能。
npu-smi set -t device-share -i 0 -c 0 -d 1
There are security risks when opening device sharing, Please ensure that only a single user uses the chip. Are you sure you want to continue setting?(Y/N) y Status : OK Message : The device-share of the chip is set successfully.
输出说明
字段 |
说明 |
---|---|
Status |
命令执行结果。 有如下两种状态:OK,Fail。 |
Message |
命令执行后的提示信息。 |
父主题: 配置功能(set)