Help Center/
Atlas 300 Application (Model 3000)/
TE Custom Operator Development Guide/
Setting Environment Variables
Updated on 2022-03-13 GMT+08:00
Setting Environment Variables
- Log in to the DDK server as the DDK installation user ascend.
- Set the environment variables.
- In the Atlas 200 DK environment, run the following commands in the CLI to set environment variables:
export DDK_HOME=$HOME/tools/che/ddk/ddk export LD_LIBRARY_PATH=$DDK_HOME/uihost/lib/ export PYTHONPATH=$DDK_HOME/site-packages/te-0.4.0.egg:$DDK_HOME/site-packages/topi-0.4.0.egg export PATH=$PATH:$DDK_HOME/toolchains/ccec-linux/bin export TVM_AICPU_LIBRARY_PATH=$DDK_HOME/uihost/lib/:$DDK_HOME/uihost/toolchains/ccec-linux/aicpu_lib export TVM_AICPU_INCLUDE_PATH=$DDK_HOME/include/inc/tensor_engine export TVM_AICPU_OS_SYSROOT=/usr/lib/aarch64-linux-gnu
- In the ASIC environment, run the following commands in the CLI to set environment variables:
export DDK_HOME=$HOME/tools/che/ddk/ddk export LD_LIBRARY_PATH=$DDK_HOME/uihost/lib/ export PYTHONPATH=$DDK_HOME/site-packages/te-0.4.0.egg:$DDK_HOME/site-packages/topi-0.4.0.egg export PATH=$PATH:$DDK_HOME/toolchains/ccec-linux/bin export TVM_AICPU_LIBRARY_PATH=$DDK_HOME/uihost/lib/:$DDK_HOME/uihost/toolchains/ccec-linux/aicpu_lib export TVM_AICPU_INCLUDE_PATH=$DDK_HOME/include/inc/tensor_engine export TVM_AICPU_OS_SYSROOT=$DDK_HOME/uihost/toolchains/aarch64-linux-gcc6.3/sysroot
Change the path of DDK_HOME to the actual installation path of the DDK.
You can write the commands for setting environment variables to the operator customization script for future use.
- In the Atlas 200 DK environment, run the following commands in the CLI to set environment variables:
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot