Parameter Description

Select corresponding parameters to install the software.

Command format: bash install.sh [options]

Table 1 describes the parameters. You can run the bash install.sh --help command to view the options of the following parameters.

Table 1 Parameters

Parameter

Description

--help, -h

Queries help information.

--check

Checks the environment, including the connectivity between the environment and the device where the software to be installed and the compatibility between the device and the tool, as well as the software package to be installed. Ensure that components such as Python 3.7.5 and Ansible are installed.

This parameter must be used together with --install=<package_name> or --install-scene=<scene_name>.

--clean

Deletes the resources directory from the home directory of the installation user.

--nocopy

Does not copy resources during batch installation.

This parameter must be used together with --install=<package_name> or --install-scene=<scene_name>.

--force_upgrade_npu

Forcibly upgrades the NPUs when not all cards are abnormal.

--verbose

Prints detailed information.

--ls

Prints information about the installed software and its version.

--stdout_callback=<callback_name>

Sets the output format of the command. You can run the ansible-doc -t callback -l command to view the available parameters.

--install=<package_name>

Software-specific installation. For details about software packages to be installed, see Optional Installation Software Packages.

--install-scene=<scene_name>

Scenario-specific installation. For details about the installation scenarios, see Optional Installation Scenarios.

--patch=<package_name>

Patches the specified software.

Values: nnae, nnrt, tfplugin, and toolkit

--patch-rollback=<package_name>

Rolls back the patch of the specified software.

Values: nnae, nnrt, tfplugin, and toolkit

--test=<target>

Checks whether a specified component can work properly.

Values: all, driver, exhibit, firmware, mindspore, nnae, nnrt, pytorch, tensorflow, tfplugin, toolbox, and toolkit.

--hccn

Configures the HCCN network.