simulator相关

本文介绍了如何设置和查看用于运行simulator的环境变量,包括PATH和LD_LIBRARY_PATH。通过修改.bashrc或.bash_profile文件,以及使用source命令使更改立即生效。另外,还提到了通过编辑/etc/ld.so.conf并运行ldconfig来管理动态库的查找路径。
摘要由CSDN通过智能技术生成
cd /project/ai/scratch01/GBuilder
pip install xxx --user
在自己的目录下新建文件夹,将cfg和input.bin放入文件夹下
gvim cfg文件
setenv LD_LIBRARY_PATH /project/ai/scratch01/AIPU_SIMULATOR/lib/:$LD_LIBRARY_PATH
~/.local/bin/aipubuild mobilenet_v2_ssdZ1_0904run.cfg
/project/ai/scratch01/AIPU_SIMULATOR/aipu_simulator_z1
~/.local/bin/aipurun xxx.txt -i input.bin -w xxx.bin --target {target} --simulator {simulator_path}
xxd 查看二进制文件 (大文件用programmming里的beyond compare)

将simulator跑本地的代码

simulator路径:
/project/ai/scratch01/ruolu01/AIPU_simulator_design/build/Debug_5.5.0/bin
在AIPUs_simulator_design里
branch new_arch
在这个branch下
git pull
source env_setup.csh
sim rebuild --solder=1 --config={Z1,Z2}
gvim ~/.cshrc
在 ~/.cshrc里添加setenv LD_LIBRARY_PATH路径,冒号分隔
(path路径下用于存快捷路径以简写使用)
加入路径 /project/ai/scratch01/ruolu01/AIPU_simulator_design/build/Debug_5.5.0/lib

PATH: 可执行程序的查找路径

查看当前环境变量:

echo $PATH

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值