Skip to content

Commit 5788a87

Browse files
committed
Polish cmake configuration
1 parent c24e94c commit 5788a87

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

CMakeLists.txt

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,21 +28,21 @@ include(system)
2828
include(simd)
2929

3030
###################### Configurations ############################
31-
option(WITH_DSO "Compile PaddlePaddle with dynamic linked libraries" ON)
32-
option(WITH_GPU "Compile PaddlePaddle with gpu" ${CUDA_FOUND})
33-
option(WITH_DOUBLE "Compile PaddlePaddle with double precision, otherwise use single precision" OFF)
34-
option(WITH_AVX "Compile PaddlePaddle with avx intrinsics" ${AVX_FOUND})
35-
option(WITH_PYTHON "Compile PaddlePaddle with python interpreter" ON)
36-
option(WITH_STYLE_CHECK "Style Check for PaddlePaddle" ON)
37-
option(WITH_RDMA "Compile PaddlePaddle with rdma support" OFF)
38-
option(WITH_TIMER "Compile PaddlePaddle use timer" OFF)
39-
option(WITH_PROFILER "Compile PaddlePaddle use gpu profiler" OFF)
40-
option(WITH_TESTING "Compile and run unittest for PaddlePaddle" ON)
41-
option(WITH_DOC "Compile PaddlePaddle with documentation" OFF)
42-
option(WITH_SWIG_PY "Compile PaddlePaddle with py PaddlePaddle prediction api" ON)
43-
option(ON_TRAVIS "Running test on travis-ci or not." OFF)
44-
option(ON_COVERALLS "Generating code coverage data on coveralls or not." OFF)
45-
option(COVERALLS_UPLOAD "Uploading the generated coveralls json." ON)
31+
option(WITH_GPU "Compile PaddlePaddle with NVIDIA GPU" ${CUDA_FOUND})
32+
option(WITH_AVX "Compile PaddlePaddle with AVX intrinsics" ${AVX_FOUND})
33+
option(WITH_DSO "Compile PaddlePaddle with dynamic linked CUDA" ON)
34+
option(WITH_TESTING "Compile PaddlePaddle with unit testing" ON)
35+
option(WITH_SWIG_PY "Compile PaddlePaddle with inference api" ON)
36+
option(WITH_STYLE_CHECK "Compile PaddlePaddle with style check" ON)
37+
option(WITH_PYTHON "Compile PaddlePaddle with python interpreter" ON)
38+
option(WITH_DOUBLE "Compile PaddlePaddle with double precision" OFF)
39+
option(WITH_RDMA "Compile PaddlePaddle with RDMA support" OFF)
40+
option(WITH_TIMER "Compile PaddlePaddle with stats timer" OFF)
41+
option(WITH_PROFILER "Compile PaddlePaddle with GPU profiler" OFF)
42+
option(WITH_DOC "Compile PaddlePaddle with documentation" OFF)
43+
option(ON_COVERALLS "Compile PaddlePaddle with code coverage" OFF)
44+
option(COVERALLS_UPLOAD "Package code coverage data to coveralls" OFF)
45+
option(ON_TRAVIS "Exclude special unit test on Travis CI" OFF)
4646

4747
include(external/zlib) # download, build, install zlib
4848
include(external/gflags) # download, build, install gflags
@@ -63,7 +63,6 @@ include(flags) # set paddle compile flags
6363
include(cudnn) # set cudnn libraries
6464
include(version) # set PADDLE_VERSION
6565
include(coveralls) # set code coverage
66-
include(python_module) # set python module
6766

6867
include(configure) # add paddle env configuration
6968

0 commit comments

Comments
 (0)