ncnn icon indicating copy to clipboard operation
ncnn copied to clipboard

苹果6s 11.3系统崩溃

Open ZT28TZ opened this issue 3 years ago • 3 comments

GPU下 在苹果11 iOS15.1系统正常运行 在苹果6s 11.3系统下报错在load_model的时候 Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MTLComputePipelineDescriptorInternal setMaxTotalThreadsPerThreadgroup:]: unrecognized selector sent to instance CPU的时候正常,苹果11和苹果6s都正常

ZT28TZ avatar Jul 19 '22 10:07 ZT28TZ

moltenvk 上游已修复 https://github.com/KhronosGroup/MoltenVK/pull/1635

maxTotalThreadsPerThreadgroup 只在 ios 12 中才有

nihui avatar Jul 19 '22 11:07 nihui

image 修改后6s在ex.input这个方法报错,苹果11仍然没有问题,也是moltenvk的问题吗

ZT28TZ avatar Jul 20 '22 10:07 ZT28TZ

这个 address=0x8 看起来很像是内存/显存不够,可以试试最新的ncnn,优化了内存占用

nihui avatar Jul 20 '22 13:07 nihui