Installing or Rolling Back the CANN Patch Package

Restrictions

  • The patch can be used to upgrade only the corresponding baseline version or patch version.
  • For patches based on the same baseline version, ensure that the patch version to be installed is later than the previous patch version.
  • Only one patch version can be rolled back.

Impact of Installation and Rollback

  • Other maintenance operations are not allowed during installation and rollback.
  • Services will be interrupted during patch package installation and rollback.
  • After the patch package is installed or rolled back, services are not affected.

Operations

The installation process is similar to Installing Ascend Software. The differences are as follows:

  • The CANN patch package cannot be downloaded online using MindCluster Ascend Deployer. You need to obtain the required CANN patch package and save it to the ascend-deployer/ascend_deployer/resources/patch directory. If this directory does not exist, create it. Before the installation, delete the CANN software package and the run_from_cann_zip directory from the ascend-deployer/ascend_deployer/resources directory.
  • Run the following commands to install or roll back the CANN cold patches:
    • Run the following command to install the CANN cold patch (NNAE is used as an example):
      bash install.sh --patch=nnae
    • Run the following command to roll back the CANN cold patch (NNAE is used as an example):
      bash install.sh --patch-rollback=nnae