Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

怎么在hisi 3519上编译ncnn? #54

Closed
ctgushiwei opened this issue Jul 27, 2017 · 9 comments
Closed

怎么在hisi 3519上编译ncnn? #54

ctgushiwei opened this issue Jul 27, 2017 · 9 comments

Comments

@ctgushiwei
Copy link

你好,请问怎么在hisi 3519上编译ncnn,是armv7架构,而且怎么样才能保证用到arm下面的neon和汇编?

@nihui
Copy link
Member

nihui commented Jul 27, 2017

#28

@ctgushiwei
Copy link
Author

@nihui 我就用了Cmakelist生成makefile,并在src、Cmakelist.txt的37行增加了 OR (Linux AND ("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "armv7")),也没在生成的 layer_declaration.h 里头是
看到有 xxx_arm,应该石没有编译neon,请问是不是还有那个地方开关没有开启,生成makefile后就直接make了

@whtc123
Copy link

whtc123 commented Jul 28, 2017

新建一个arm.toolchan.cmake.
SET(CMAKE_SYSTEM_NANE Android)
SET(CMAKE_SYSTEM_PROCESSOR "armv7-a")
SET(ANDROID_ARCH_NAME "arm")
SET(ANDROID true)
SET(CMAKE_C_COMPILER "arm-hisiv600-linux-gcc")
SET(CMAKE_CXX_COMPILER "arm-hisiv600-linux-g++")

然后mkdir build_arm ;cd build_arm;cmake ..;make

@whtc123
Copy link

whtc123 commented Jul 28, 2017

海思3519我没有试过,3536试了,450ms。
深度学习和安防还是有点距离。

@ctgushiwei
Copy link
Author

@whtc123 你这个450ms是跑的什么网络,另外你测试的是单线程还是多线程?

@whtc123
Copy link

whtc123 commented Jul 29, 2017

@ctgushiwei squeezenet 单线程

@BUG1989
Copy link
Contributor

BUG1989 commented Sep 28, 2017

这时候,你需要Hi3559A,内置NPU,GoogleNet 10ms,VGG-SSD 89ms ^0^

@nihui nihui closed this as completed Sep 30, 2017
@ehancen
Copy link

ehancen commented Jan 2, 2018

@BUG1989 GoogleNet 10ms,VGG-SSD 89ms是在什么条件下测试得到的啊?图片分辨率多少啊?

@BUG1989
Copy link
Contributor

BUG1989 commented Jan 2, 2018

@ehancen Hi3559A SDK中的例程

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants