Installation
TOC
PrerequisitesOnline InstallationOffline InstallationProcedureDownloading Cluster pluginUploading the Cluster pluginInstalling Alauda Build of NPU OperatorVerificationInstalling MonitorFAQWhat should I pay attention to when uninstalling Alauda Build of NPU Operator?Prerequisites
Online Installation
-
ACP version: v4.0 or later
-
Cluster administrator access to your ACP cluster
-
Ensure that the bash tool exists in the NPU node. Otherwise, the driver and firmware installation script may fail to be parsed.
-
Worker Node Operating System Requirements
-
Worker nodes (or node groups) running NPU workloads must use one of the following operating systems (Arm architecture):
openEuler 22.03 LTSUbuntu 22.04
-
Worker nodes running CPU workloads only can use any operating system, as the NPU operator performs no configuration on nodes without NPU workloads.
-
-
Supported NPU Hardware
-
Nodes must use supported NPUs:
Ascend 910BAscend 310P
-
For detailed OS and hardware compatibility, see MindCluster Documentation
-
-
The
Alauda Build of Node Feature Discoverycluster plugin must be installed.
Offline Installation
-
Offline installation requires all online installation prerequisites plus additional preparation steps.
-
Prepare the driver and firmware package and the MindIO SDK package. Download the following packages (if you do not need to install MindIO, then you do not need to download the MindIO package):
- For the driver and firmware package, find the
config.jsonfile in the GitCode repository of the npu-driver-installer, and download the package based on the version you want to choose, the NPU model and OS architecture of the corresponding node through the corresponding link provided. - For the MindIO SDK package, find the
config.jsonfile in the GitCode repository of the npu-node-provision, and download the SDK package based on the NPU model and OS architecture of the corresponding node through the corresponding link provided.
- For the driver and firmware package, find the
-
Save the ZIP file of the driver and firmware package to the
/tmp/driver_pkg/path of the node where the offline installation is to be performed. -
Save the ZIP file of the MindIO package to the
/opt/openFuyao/mindio/path of the node where the offline installation is to be performed. (If you do not need to install MindIO, skip this step.) -
Check whether the target node contains the following tools.
- For systems using Yum as the package manager, the following package needs to be installed: "jq wget unzip which net-tools pciutils gcc make kernel-devel-$(uname-r) kernel-headers-(uname-r) dkms".
- For systems using apt-get as the package manager, the following package needs to be installed: "jq wget unzip debianutils net-tools pciutils gcc make dkms linux-headers-$(uname -r)".
- For systems using DNF as the package manager, the following package needs to be installed: "jq wget unzip which net-tools pciutils gcc make kernel-devel-$(uname -r) kernel-headers-(uname-r) dkms".
Procedure
Downloading Cluster plugin
You can download the app named Alauda Build of NPU Operator and Alauda Build of Node Feature Discovery from the Marketplace on the Customer Portal website.
Note: The Volcano cluster plugin can be left uninstalled for now.
Uploading the Cluster plugin
The platform provides the violet command-line tool for uploading packages downloaded from the Custom Portal Marketplace.
For details, see Upload Packages.
Installing Alauda Build of NPU Operator
-
Apply the label
masterselector=dls-master-nodeto all master nodes and the labelworkerselector=dls-worker-nodeto all worker nodes. -
Go to the
Administrator->Marketplace->Cluster Pluginpage, switch to the target cluster, and then deploy theAlauda Build of NPU OperatorCluster plugin.Deployment form parameter description:
WARNINGIf the components listed in the table below are already installed, be sure to disable the corresponding buttons during deployment.
TIPAscend Operator, NodeD, ClusterD, Resilience Controller, MindIO TFT, and MindIO ACP are not deployed by default. Please deploy them only when there is a clear need for them.
Verification
-
First, you can see the status of "Installed" in the
Alauda Build of NPU OperatorCluster plugin page. -
Wait for the npu-driver pod to become running. Offline installation takes about 10 minutes, while online installation is much faster.
-
Reboot all the NPU nodes.
-
Run the following command on the npu node.
Make sure the display is working correctly.
-
Run the following command on the master node.
Make sure the status of the
npuclusterpolicyis Ready. -
Check whether there are allocatable NPU resources on the NPU node in the control node of the business cluster. Run the following command:
-
Run validation workload.
NOTEBusiness applications must manually specify the
runtimeClassNamefield asascend.Create spec file:
Apply spec:
Then run the following command in the container:
Make sure the display is working correctly.
Installing Monitor
If the NPU exporter component was deployed when installing the Alauda Build of NPU Operator, perform the following steps to create a monitoring panel.
-
Execute commands on the control node of the cluster.
-
You can import a Grafana dashboard JSON file by following Import Dashboard, which converts it into a monitoring dashboard for display. The JSON file is available in ascend-npu-dashboard.
NOTETags in the Grafana dashboard JSON file cannot contain Chinese characters and need to be manually deleted. For examples:
After modification:
FAQ
What should I pay attention to when uninstalling Alauda Build of NPU Operator?
Even after Alauda Build of NPU Operator is uninstalled, the driver may still exist on the host machine. On the NPU node, execute the following command to uninstall the driver: