Page 2
Notice The purchased products, services and features are stipulated by the contract made between Huawei and the customer. All or part of the products, services and features described in this document may not be within the purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information, and recommendations in this document are provided "AS IS"...
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 1 Introduction Introduction This document describes the method of separately installing the device development kit (DDK) and troubleshooting of common problems. It is applicable to development in command line interface (CLI) mode.
Obtaining Software Packages Before installing the tool, prepare the following software package: DDK installation package: Visit https://support.huawei.com/enterprise, input the product name in the search box, and press Enter or click the search icon. In the displayed window, click the Software Download tab to obtain the desired installation package.
After the software package is downloaded, verify its PGP digital signature according to the OpenPGP Signature Verification Guide. If the software package fails the verification, do not use the software package, and contact Huawei technical support engineers. Before a software package is used in installation or upgrade, its digital signature also needs to be verified according to the OpenPGP Signature Verification Guide to ensure that the software package is not tampered with.
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 4 Environment Preparation Environment Preparation Environment Requirements The DDK installation must meet the following environment requirements on the hardware and operating system (OS). Table 4-1 CentOS version information...
Page 8
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 4 Environment Preparation (Optional) Preparing the DDK Installation User You can install the DDK as any user (root or non-root). ● If the root user is used for installation, skip this section.
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 4 Environment Preparation Run the following commands to open the /etc/sudoers file: chmod u+w /etc/sudoers vi /etc/sudoers Under root ALL=(ALL:ALL) ALL in the file, add the following content: username ALL=(ALL:ALL) NOPASSWD:SETENV: /usr/bin/yum,/bin/make install,/bin/ln - s /usr/local/python3/bin/python3.5 /usr/bin/python3,/bin/ln -s /usr/local/python3/bin/...
Page 10
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 4 Environment Preparation Figure 4-1 Setting network parameters BOOTPROTO indicates the IP address type of the device. For a static IP address, set this parameter to static or none. For a dynamic IP address, set this parameter to dhcp so that the IP address can be obtained automatically.
Page 12
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 4 Environment Preparation wget https://www.python.org/ftp/python/3.5.1/Python-3.5.1.tgz Run the following command to go to the download directory and decompress the installation package: tar -zxvf Python-3.5.1.tgz Go to the decompressed folder and run the following configuration, compilation, and installation commands: cd Python-3.5.1...
Page 13
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 4 Environment Preparation If the message "Import Error:cannot import name main" is displayed when you run the pip3.5 -V command, rectify the fault by referring to 6.1 What Do I Do If the Message "Import Error:cannot import name main"...
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 5 Installing the DDK Installing the DDK This section describes the installation method of the DDK and common operations. 5.1 Installation 5.2 Common Operations This section describes how to install and use the DDK.
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 5 Installing the DDK ● If the message "Warning: DDK functions except TE have been successfully installed." is displayed during the installation, rectify the fault by referring to 6.3 What Do I Do If...
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 5 Installing the DDK ● VERSION: Indicates the version number of the DDK. The query result varies according to the actual situations. ● TARGET: Indicates the running environment of the DDK, which is ASIC or Atlas DK.
Page 17
Key fingerprint: B100 0AC3 8C41 525A 19BD C087 99AD 81DF 27A7 4824 – UID: OpenPGP signature key for Huawei software (created on 30th Dec, 2013) <support@huawei.com> After the information is verified, you can set the trust level for the public key ●...
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 6 FAQs FAQs 6.1 What Do I Do If the Message "Import Error:cannot import name main" Is Displayed When the pip3/pip3.5 -V Command Is Run after pip3/pip3.5 Upgrade? 6.2 What Do I Do If epel-release Installation Fails?
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 6 FAQs Figure 6-1 Modifying pip3 code The solution for Python 3.5 is the same as that for Python 3. 6.2 What Do I Do If epel-release Installation Fails?
Page 21
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) 6 FAQs Solution Run the following command as the DDK installation user to set the environment variable for the setuptools run by the DDK installation user to take effect, and then reinstall the DDK: export PATH=/usr/local/python3/bin:$HOME/bin:$HOME/.local/bin:$PATH...
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) B Open Source Third-Party Libraries Open Source Third-Party Libraries cereal cereal is a header-only BSD-licensed C++11 serialization library. It is designed to be fast, light-weight, and easy to extend. cereal takes arbitrary data types and reversibly turns them into different representations, such as compact binary encodings, XML, or JSON.
Page 24
Atlas 300 AI Accelerator Card DDK Installation Guide (CentOS, ARM) (Model 3000) B Open Source Third-Party Libraries developing programs to communicate with each other over a wire or for storing data. The version currently used is 3.5.1. For details, visit the official website at https://developers.google.com/protocol- buffers/.
Need help?
Do you have a question about the Atlas 300 and is the answer not in the manual?
Questions and answers