相关的日志输出如下:
root@ubuntu:~/yolov5_github# ./1_gen_fp32bmodel.sh
~/build ~/yolov5_github
Namespace(cmp=True, desc=None, descs=None, dyn=False, enable_profile=True, input_structure=None, list_ops=False, log_dir='', log_prefix=True, mode='compile', model='/root/build/yolov5s_coco_v6.1_3output.trace.pt', net_name='yolov5s', opt=2, outdir='fp32model/1', output_names=None, seed=42, shapes=[[1, 3, 640, 640]], target='BM1684', v=3)
python3 -m bmnetp --model=/root/build/yolov5s_coco_v6.1_3output.trace.pt --net_name=yolov5s --target=BM1684 --outdir=fp32model/1 --shapes="[1,3,640,640]" --opt=2 --cmp=true --dyn=false --enable_profile=true --mode=compile --seed=42
/root/.local/lib/python3.7/site-packages/bmnetp/bin/bmnetp.bin --model=/root/build/yolov5s_coco_v6.1_3output.trace.pt --net_name=yolov5s --target=BM1684 --outdir=fp32model/1 --shapes="[1,3,640,640]" --opt=2 --cmp=true --dyn=false --enable_profile=true --mode=0 --seed=42
/root/.local/lib/python3.7/site-packages/bmnetp/bin/bmnetp.bin: error while loading shared libraries: libmpi.so.12: cannot open shared object file: No such file or directory
compile failed, exit code=127
127
fp32model/1/compila
tion.bmodel not
cp: cannot stat 'fp32model/1/compilation.bmodel': No such file or directory
~/yolov5_github
root@ubuntu:~/yolov5_github# sudo find ./ -name libmpi.so.12
bash: sudo: command not found
root@ubuntu:~/yolov5_github# find ./ -name libmpi.so.12