no kernel image is available for execution on the device

问题遇到的现象和发生背景

cuda11.1,cudnn配套能运行,tensorrt7.2.2.3,显卡3060

用代码块功能插入代码,请勿粘贴截图

运行vs2019cuda项目报错:no kernel image is available for execution on the device

运行结果及报错内容

img

我的解答思路和尝试过的方法

我按网上说的加sm_86也不行

我想要达到的结果

解决掉这个错误