可以在Android NDK中使用OpenMP库吗? [英] Is it possible to use OpenMP library with Android NDK?
问题描述
是否可以在Android NDK中使用OpenMP库?
Is it possible to use OpenMP library with Android NDK?
也许有人已经尝试将它们编译在一起,并且可以提供一些提示?
Maybe somebody already tried to compile them together and can provide some hints?
随着双核平板电脑/智能手机的出现,我认为在应用程序开发中使用OpenMP功能真的很不错.
With appearance of dual-core tablets/smartphones I think it would be really nice to use OpenMP capabilities in apps development.
谢谢.
推荐答案
针对现在遇到此问题的人们:截至2013年10月,带有GCC的NDK中支持OpenMP(NDK版本9b).请参阅: https://developer.android.com/ndk/downloads/revision_history.html
For people coming across this question now: OpenMP is supported in the NDK with GCC as of October 2013 (NDK version 9b). See: https://developer.android.com/ndk/downloads/revision_history.html
他们解释要添加的位置:
where they explain to add:
LOCAL_CFLAGS += -fopenmp
LOCAL_LDFLAGS += -fopenmp
到您的Android.mk,以启用OpenMP支持.
to your Android.mk in order to enable OpenMP support.
这篇关于可以在Android NDK中使用OpenMP库吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!