Setup runtime environment
After the installation, the following dependencies should be installed before running PyAscend operators:
Ascend CANN
Download installation package from the download center (recommended version is
9.0.0-beta.2) depending on the host platform:wget https://ascend-repo.obs.cn-east-2.myhuaweicloud.com/CANN/CANN%209.0.T511/Ascend-cann_9.0.0-beta.2_linux-$(arch).run
Install downloaded package with the following command:
bash Ascend-cann_9.0.0-beta.2_linux-$(arch).run --full
Enable CANN environment:
source /usr/local/Ascend/cann/set_env.sh export LD_LIBRARY_PATH=$ASCEND_HOME_PATH/tools/simulator/Ascend910B1/lib:$LD_LIBRARY_PATH
To learn more about CANN environment, visit the homepage. Ascend C API reference is available in the documentation.