Querying the Software Package Version

Perform the following operations to query the version information about the driver, firmware, and CANN packages:

  • Query the driver and firmware versions. Replace id with the actual device ID. You can run npu-smi info -l to view the NPU ID.
    npu-smi info -t board -i id
    • Software Version indicates the NPU driver version.
    • Firmware Version indicates the NPU firmware version.
    • Compatibility shows if the NPU driver works with the NPU firmware. "OK" means they are compatible, "NOK" means they are not. Other results may show up, depending on the on-site setup.
  • After installing the Toolkit and ops, use the query_pkg_version.sh script to query the version information of each component in one-click mode. The example command is the default installation path of a non-root user. Replace it with the actual installation path.
    1
    bash ${HOME}/Ascend/cann-<version>/query_pkg_version.sh
    
  • After installing the NNAL, run the example command to check the version information.
    • ATB:
      1
      cat ${HOME}/Ascend/nnal/atb/latest/version.info
      
    • SiP:
      1
      cat ${HOME}/Ascend/nnal/asdsip/latest/version.info