We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在android端,使用自带的example调用openmp没有问题。但是在自己封装的一个jni中使用openmp,程序会crash,即使jni只有一个最简单的for循环。
调用omp_get_thread_num()没有问题,其它调用会crash。猜想是不是因为在spawn threads的时候出问题。唯一觉得有关的就是set_cpu_powersave函数,但是并没有找到其被调用的地方。
@nihui 请问有没有什么地方可能导致这个问题
The text was updated successfully, but these errors were encountered:
android ndk 版本是 r15c 或者更新版本?
Sorry, something went wrong.
r15c
我用r11c编译没有问题了,看来时ndk的问题
No branches or pull requests
在android端,使用自带的example调用openmp没有问题。但是在自己封装的一个jni中使用openmp,程序会crash,即使jni只有一个最简单的for循环。
调用omp_get_thread_num()没有问题,其它调用会crash。猜想是不是因为在spawn threads的时候出问题。唯一觉得有关的就是set_cpu_powersave函数,但是并没有找到其被调用的地方。
@nihui 请问有没有什么地方可能导致这个问题
The text was updated successfully, but these errors were encountered: