|
|
|
@ -81,12 +81,6 @@ option(WITH_SYSTEM_BLAS "Use system blas library" OFF)
|
|
|
|
|
option(PY_VERSION "Compile PaddlePaddle with python3 support" ${PY_VERSION})
|
|
|
|
|
option(WITH_FAST_MATH "Make use of fast math library, might affect the precision to some extent" ON)
|
|
|
|
|
|
|
|
|
|
if (WITH_PROFILER)
|
|
|
|
|
find_package(Gperftools REQUIRED)
|
|
|
|
|
include_directories(${GPERFTOOLS_INCLUDE_DIR})
|
|
|
|
|
add_definitions(-DWITH_GPERFTOOLS)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
# PY_VERSION
|
|
|
|
|
if(NOT PY_VERSION)
|
|
|
|
|
set(PY_VERSION 2.7)
|
|
|
|
|