TNN icon indicating copy to clipboard operation
TNN copied to clipboard

MIPS上TNN性能比NCNN差很多

Open nicheng0019 opened this issue 3 years ago • 1 comments

1. 环境(environment)

  • Build OS and Version: Ubuntu
  • RunTime OS Version: Linux/
  • RunTime DEVICE: CPU

2. Github版本

  • branch:0.3.0
  • commit(optional):

3. 编译方式(compile method) CMake完整编译参数(full cmake arguments)

4. 编译日志(build log)

将日志粘贴在这里
Paste log here or pastebin

5. 详细描述bug 情况 (Describe the bug) Kylin操作系统,Loongson的CPU,mips架构,使用TNN模型,执行两个特征的ADD操作,需要2660ms,同样的操作使用NCNN只需要7ms,NCNN没有使用mips上的优化,只使用基本的cpu实现,NCNN的OPENMP线程数设置为4,TNN在mips的cpu上不支持openmp的多线程,所以线程数为1。请问是什么原因?

nicheng0019 avatar Feb 14 '22 08:02 nicheng0019

我也是一样的,测试了一下dbnet在mips平台上ncnn和tnn,ncnn大概8秒,tnn要一分多钟

TD-wzw avatar Feb 16 '22 00:02 TD-wzw