1212# See the License for the specific language governing permissions and
1313# limitations under the License
1414
15- cmake_minimum_required (VERSION 3.15 )
15+ cmake_minimum_required (VERSION 3.10 )
1616cmake_policy (VERSION 3.10)
1717set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR} /cmake" )
1818set (PADDLE_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR} )
@@ -34,7 +34,7 @@ option(WITH_XPU "Compile PaddlePaddle with BAIDU KUNLUN XPU" OFF)
3434option (WITH_WIN_DUMP_DBG "Compile with windows core dump debug mode" OFF )
3535option (WITH_ASCEND "Compile PaddlePaddle with ASCEND" OFF )
3636option (WITH_ROCM "Compile PaddlePaddle with ROCM platform" OFF )
37- # NOTE(zhiqiu): WITH_ASCEND_CL can be compile on x86_64, so we can set WITH_ASCEND=OFF and WITH_ASCEND_CL=ON
37+ # NOTE(zhiqiu): WITH_ASCEND_CL can be compile on x86_64, so we can set WITH_ASCEND=OFF and WITH_ASCEND_CL=ON
3838# to develop some acl related functionality on x86
3939option (WITH_ASCEND_CL "Compile PaddlePaddle with ASCEND CL" ${WITH_ASCEND} )
4040option (WITH_ASCEND_CXX11 "Compile PaddlePaddle with ASCEND and CXX11 ABI" OFF )
@@ -65,7 +65,7 @@ if(WITH_MUSL)
6565 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-error=deprecated-declarations -Wno-deprecated-declarations -Wno-error=pessimizing-move -Wno-error=deprecated-copy" )
6666endif ()
6767
68- if (WITH_ASCEND AND NOT WITH_ASCEND_CXX11)
68+ if (WITH_ASCEND_CL AND NOT WITH_ASCEND_CXX11)
6969 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0" )
7070endif ()
7171
@@ -103,7 +103,7 @@ if(WIN32)
103103 endif ()
104104 endforeach (flag_var)
105105 endif ()
106-
106+
107107 # NOTE(Avin0323): Less parallel count result in faster compilation.
108108 math (EXPR PROCESS_MAX "${CPU_CORES} * 2 / 3" )
109109 # windows build turn off warnings, use parallel compiling.
@@ -182,7 +182,6 @@ option(WITH_PSLIB "Compile with pslib support" OFF)
182182option (WITH_BOX_PS "Compile with box_ps support" OFF )
183183option (WITH_XBYAK "Compile with xbyak support" ON )
184184option (WITH_CONTRIB "Compile the third-party contributation" OFF )
185- option (WITH_GRPC "Use grpc as the default rpc framework" ${WITH_DISTRIBUTE} )
186185option (WITH_PSCORE "Compile with parameter server support" ${WITH_DISTRIBUTE} )
187186option (WITH_HETERPS "Compile with heterps" OFF })
188187option (WITH_INFERENCE_API_TEST "Test fluid inference C++ high-level api interface" OFF )
@@ -259,9 +258,6 @@ endif()
259258
260259if (WITH_BRPC_RDMA)
261260 message (STATUS "Use brpc with rdma." )
262- if (WITH_GRPC)
263- message (FATAL_ERROR "Can't use grpc with brpc rdma." )
264- endif ()
265261 if (NOT WITH_DISTRIBUTE)
266262 message (FATAL_ERROR "Can't use brpc rdma in no distribute env." )
267263 endif ()
0 commit comments