2016년 5월 7일 토요일

The NDK supports all these architectures, with openmp as well since its 9th version. Use gcc (it's the compiler by default), and add -fopenmp to your NDK module's CFLAGS and LDFLAGS in yourAndroid.mk Makefile:
include $(CLEAR_VARS)
LOCAL_MODULE := yourmodule
LOCAL_SRC_FILES := yourmodule.c
LOCAL_CFLAGS += -fopenmp
LOCAL_LDFLAGS += -fopenmp
include $(BUILD_SHARED_LIBRARY)
shareimprove this answer

댓글 없음:

댓글 쓰기