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

openmp crash #297

Closed
tfzhou opened this issue Mar 16, 2018 · 3 comments
Closed

openmp crash #297

tfzhou opened this issue Mar 16, 2018 · 3 comments

Comments

@tfzhou
Copy link

tfzhou commented Mar 16, 2018

在android端,使用自带的example调用openmp没有问题。但是在自己封装的一个jni中使用openmp,程序会crash,即使jni只有一个最简单的for循环。

调用omp_get_thread_num()没有问题,其它调用会crash。猜想是不是因为在spawn threads的时候出问题。唯一觉得有关的就是set_cpu_powersave函数,但是并没有找到其被调用的地方。

@nihui 请问有没有什么地方可能导致这个问题

@nihui
Copy link
Member

nihui commented Mar 16, 2018

android ndk 版本是 r15c 或者更新版本?

@tfzhou
Copy link
Author

tfzhou commented Mar 16, 2018

r15c

@tfzhou
Copy link
Author

tfzhou commented Mar 16, 2018

我用r11c编译没有问题了,看来时ndk的问题

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