yolov5 加载engine

yolov5 加载engine时提示问题如下
The engine plan file is generated on an incompatible device,expecting compute 6.1 got compute 5.2,please rebuld.
或者
The engine plan file is generated on an incompatible device,expecting compute 6.1 got compute 7.5,please rebuld.

问题一:
为什么会出现这样的问题?
问题二:
不重新生成engine文件是否可以解决?
问题三:
如果和GPU相关,什么性能型号的GPU生成的engine文件,可以相互使用,不报错,为什么?

问题截图

img

img

yolov5必须相同算力的gpu才能够运行,算力不同,模型文件需要重新生成。
gpu算力查询 https://developer.nvidia.com/cuda-gpus#compute

你这是用libtorch做的吧,看你的cmd应该是file的版本太高了,检查一下libtorch对应cuda版本号吧