Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to use OpenMP library with Android NDK?

Is it possible to use OpenMP library with Android NDK?

Maybe somebody already tried to compile them together and can provide some hints?

With appearance of dual-core tablets/smartphones I think it would be really nice to use OpenMP capabilities in apps development.

Thank you in advance.

like image 440
Evgeny Vinnik Avatar asked Jun 16 '11 16:06

Evgeny Vinnik


1 Answers

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

to your Android.mk in order to enable OpenMP support.

like image 100
wxs Avatar answered Oct 02 '22 23:10

wxs