Installing Index SDK
Precautions
- The user for installing and running Index SDK must meet the following requirements:
- The user who installs and runs Index SDK must be the same as the user who installs CANN. Otherwise, the CANN access permission may be incorrect when a generated operator is run.
- You are advised to install and run Index SDK as a common user. Index SDK depends on the dynamic library of the user with low permission for the CANN package. When the root user is used to run programs, the linked dynamic library may be tampered with by the low-permission user.
- The installation user must own both the directory containing the installation package and the destination directory where the installation will occur.
- When installing Index SDK, ensure that the ~ directory exists and the installation user has the read and write permissions on this directory.
- FeatureRetrieval is released as a binary shared library, which can be installed through the RUN package in the path defined by a local user.
Procedure
- Log in to the installation environment as the installation user of the software package.
- Upload the software package to any directory (for example, /home/work/FeatureRetrieval) in the installation environment and go to the directory where the package is stored.
- Grant the execute permission on the software package.
chmod u+x Ascend-mindxsdk-mxindex_{version}_linux-{arch}.run
- Check the consistency and integrity of the software package.
./Ascend-mindxsdk-mxindex_{version}_linux-{arch}.run --check
If the following information is displayed, the software package has passed the verification:
1Verifying archive integrity... 100% SHA256 checksums are OK. All good.
- Create an installation path for the software package.
- If you do not specify an installation path, the software is installed in the path where the software package is located by default.
- If you need to specify an installation path, create it first. The installation path /home/work/FeatureRetrieval is used as an example.
1mkdir -p /home/work/FeatureRetrieval
- Obtain the required Index SDK installation command based on the information in the following table.
Table 1 Quick installation details Product Portfolio
Product Model
CPU Type
Installation Path Specified or Not
Installation Command
Atlas 200/300/500 inference product Atlas 300I inference card (model 3000)
AArch64
Yes
./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --install-path=/home/work/FeatureRetrieval --platform=310
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --platform=310
# The default installation path is the directory where the command is executed.
x86_64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --install-path=/home/work/FeatureRetrieval --platform=310
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --platform=310
# The default installation path is the directory where the command is executed.
Atlas 300I inference card (model 3010)
AArch64
Yes
./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --install-path=/home/work/FeatureRetrieval --platform=310
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --platform=310
# The default installation path is the directory where the command is executed.
x86_64
Yes
./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --install-path=/home/work/FeatureRetrieval --platform=310
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --platform=310
# The default installation path is the directory where the command is executed.
Atlas inference product
Atlas 300I Pro inference card
x86_64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --install-path=/home/work/FeatureRetrieval --platform=310P
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --platform=310P
# The default installation path is the directory where the command is executed.
AArch64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --install-path=/home/work/FeatureRetrieval --platform=310P
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --platform=310P
# The default installation path is the directory where the command is executed.
Atlas 300V video analysis card
x86_64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --install-path=/home/work/FeatureRetrieval --platform=310P
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --platform=310P
# The default installation path is the directory where the command is executed.
AArch64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --install-path=/home/work/FeatureRetrieval --platform=310P
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --platform=310P
# The default installation path is the directory where the command is executed.
Atlas 300V Pro video analysis card
x86_64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --install-path=/home/work/FeatureRetrieval --platform=310P
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --platform=310P
# The default installation path is the directory where the command is executed.
AArch64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --install-path=/home/work/FeatureRetrieval --platform=310P
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --platform=310P
# The default installation path is the directory where the command is executed.
Atlas 300I Duo inference card
x86_64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --install-path=/home/work/FeatureRetrieval --platform=310P
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --platform=310P
# The default installation path is the directory where the command is executed.
AArch64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --install-path=/home/work/FeatureRetrieval --platform=310P
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --platform=310P
# The default installation path is the directory where the command is executed.
Atlas 200I SoC A1 core board
x86_64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --install-path=/home/work/FeatureRetrieval --platform=310P
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --platform=310P
# The default installation path is the directory where the command is executed.
AArch64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --install-path=/home/work/FeatureRetrieval --platform=310P
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --platform=310P
# The default installation path is the directory where the command is executed.
Atlas A2 inference products Atlas 800I A2 inference server
x86_64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --install-path=/home/work/FeatureRetrieval --platform=npu_type
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path. npu_type indicates the chip name. You can run the npu-smi info command on the server where the Ascend AI Processor is installed to query the name. Delete the last digit of the queried value of Name, and the remaining part is the value of npu_type.
No
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-x86_64.run --install --platform=npu_type
# The default installation path is the directory where the command is executed. npu_type indicates the chip name. You can run the npu-smi info command on the server where the Ascend AI Processor is installed to query the name. Delete the last digit of the queried value of Name, and the remaining part is the value of npu_type.
AArch64
Yes
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --install-path=/home/work/FeatureRetrieval --platform=npu_type
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path. npu_type indicates the chip name. You can run the npu-smi info command on the server where the Ascend AI Processor is installed to query the name. Delete the last digit of the queried value of Name, and the remaining part is the value of npu_type.
No
1./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --platform=npu_type
# The default installation path is the directory where the command is executed. npu_type indicates the chip name. You can run the npu-smi info command on the server where the Ascend AI Processor is installed to query the name. Delete the last digit of the queried value of Name, and the remaining part is the value of npu_type.
Atlas 800I A3 SuperPoD Server
Atlas 800I A3 SuperPoD Server
AArch64
Yes
./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --install-path=/home/work/FeatureRetrieval --platform=A3
# The installation path /home/work/FeatureRetrieval is used as an example. Replace it with the actual path.
No
./Ascend-mindxsdk-mxindex_7.2.RC1_linux-aarch64.run --install --platform=A3
# The default installation path is the directory where the command is executed.
- Run the installation command to install the software package. Ensure that the entire installation process is performed by the same user, and only that user is allowed to access the installation and decompression paths.
The --install command also supports optional options. For details, see Table 2. If you enter an option that is not listed in the table, the installation may be normal or an error may be reported.
- If "Do you accept the EULA to install mxIndex?" is displayed during the installation, enter Y or y to accept the EULA and continue the installation. Entering other characters stops the installation and exits the program.After the installation is complete, the mxIndex-{version} directory is generated. If the following information is displayed, the software has been installed:
1Install package successfully
- Add environment variables of the Index SDK package path. The following uses /home/work/FeatureRetrieval as an example:
export LD_LIBRARY_PATH=/home/work/FeatureRetrieval/mxIndex/host/lib/:$LD_LIBRARY_PATH
References
The following options are not displayed in --help. Do not use them directly.
- --xwin: uses the xwin operating mode.
- --phase2: performs the second step.