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

如何设置单核多核? #58

Closed
BKZero opened this issue Jul 28, 2017 · 1 comment
Closed

如何设置单核多核? #58

BKZero opened this issue Jul 28, 2017 · 1 comment

Comments

@BKZero
Copy link

BKZero commented Jul 28, 2017

粗略看了一下源码和squeezenet_jni这个文件,在extractor类下面有个set_num_threads,这个设置线程数的貌似就是控制是否要用omp开多核?不知道理解有没有误。
up主大大帮忙看下,我这边测试速度还是不正常诶

@nihui
Copy link
Member

nihui commented Aug 2, 2019

you can control the threading number via net.opt.num_threads variable

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

2 participants