Installing the KAE by Compiling Source Code
- Install KAE drivers.
- Obtain the KAE driver source package (version 1.3.11 is used as an example).
- Download the KAE driver source package using a local browser.
- Upload the source package to the /home/ directory on the server.
If the server is connected to the Internet, you can run the following commands to download the source package:
1 2 3
cd /home/ wget https://gitee.com/kunpengcompute/KAEdriver/repository/archive/v1.3.11.zip --no-check-certificate mv v1.3.11.zip KAEdriver-v1.3.11.zip
- Decompress the source package.
1unzip KAEdriver-v1.3.11.zip - Install the kernel-mode driver.
1 2 3
cd /home/KAEdriver-1.3.11/kae_driver make make install
- Install the user-mode driver.
1 2 3 4 5
cd /home/KAEdriver-1.3.11/warpdrive sh autogen.sh ./configure make make install
- Obtain the KAE driver source package (version 1.3.11 is used as an example).
- Install KAE.
- Obtain the KAE source package (version 1.3.11 is used as an example).
- Download the KAE source package using a local browser.
- Upload the source package to the /root directory on the server.
If the server is connected to the Internet, you can run the following commands to download the source package:1 2 3
cd /home/ wget https://gitee.com/kunpengcompute/KAE/archive/refs/tags/v1.3.11.tar.gz --no-check-certificate mv v1.3.11.tar.gz KAE-v1.3.11.tar.gz
- Decompress the source package.
1tar -zxvf KAE-v1.3.11.tar.gz
- Install the kernel-mode driver.
1 2 3 4 5
cd /home/KAE-1.3.11 chmod 777 configure ./configure make make install
- Obtain the KAE source package (version 1.3.11 is used as an example).
- View library files.
- View the user-mode library file.
1ll /usr/local/lib/ | grep libwd

- View the kernel-mode library file.
1ll /usr/local/lib/engines-1.1/
- View the user-mode library file.
- Configure the environment variables.
- Open profile.
1vi /etc/profile - Add the following content to the file:
1 2
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export OPENSSL_ENGINES=/usr/local/lib/engines-1.1
- Make the environment variables take effect.
1source /etc/profile
- View the environment variables.
1 2
env | grep OPENSSL_ENGINES env | grep LD_LIBRARY_PATH

To restore the environment variables, perform the following steps:
- Open profile.
1vi /etc/profile - Delete the following content:
1 2
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib export OPENSSL_ENGINES="/usr/local/lib/engines-1.1"
- Make the environment variables take effect.
1source /etc/profile
- Run the unset commands.
1 2
unset OPENSSL_ENGINES unset LD_LIBRARY_PATH
- View the environment variables.
1 2
env | grep OPENSSL_ENGINES env | grep LD_LIBRARY_PATH
- Open profile.
- Open profile.
- Load the drivers.
1modprobe uacce1modprobe hisi_hpre - Check the drivers.
1 2
lsmod | grep uacce lsmod | grep hisi_hpre

- Check KAE devices (virtual devices).
1ls /sys/class/uacce/
Parent topic: Installing the KAE Software