提交 6f03fc2f 编写于 作者: H Haipeng Wang

openmp is disabled by default

上级 fbf12239
...@@ -26,7 +26,7 @@ file(GLOB_RECURSE PADDLE_MOBILE_H src/*.h) ...@@ -26,7 +26,7 @@ file(GLOB_RECURSE PADDLE_MOBILE_H src/*.h)
include_directories(src/) include_directories(src/)
option(USE_OPENMP "openmp support" ON) option(USE_OPENMP "openmp support" OFF)
if(USE_OPENMP) if(USE_OPENMP)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fopenmp")
add_definitions(-DPADDLE_MOBILE_USE_OPENMP) add_definitions(-DPADDLE_MOBILE_USE_OPENMP)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册