未验证 提交 a5e9ccda 编写于 作者: D danleifeng 提交者: GitHub

fix brpc update compile error; test=develop (#45438)

上级 3055d71a
...@@ -23,9 +23,10 @@ if(WITH_NCCL OR WITH_RCCL) ...@@ -23,9 +23,10 @@ if(WITH_NCCL OR WITH_RCCL)
if(WITH_DISTRIBUTE AND WITH_PSCORE) if(WITH_DISTRIBUTE AND WITH_PSCORE)
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
set(DISTRIBUTE_COMPILE_FLAGS "${DISTRIBUTE_COMPILE_FLAGS} -faligned-new") set(DISTRIBUTE_COMPILE_FLAGS "${DISTRIBUTE_COMPILE_FLAGS} -faligned-new")
set_source_files_properties(
ProcessGroupHeter.cc PROPERTIES COMPILE_FLAGS
${DISTRIBUTE_COMPILE_FLAGS})
endif() endif()
set_source_files_properties(
ProcessGroupHeter.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})
cc_library( cc_library(
processgroup_heter processgroup_heter
SRCS ProcessGroupHeter.cc NCCLTools.cc Common.cc SRCS ProcessGroupHeter.cc NCCLTools.cc Common.cc
...@@ -47,9 +48,11 @@ if(WITH_ASCEND_CL) ...@@ -47,9 +48,11 @@ if(WITH_ASCEND_CL)
if(WITH_DISTRIBUTE AND WITH_PSCORE) if(WITH_DISTRIBUTE AND WITH_PSCORE)
if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0) if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER 7.0)
set(DISTRIBUTE_COMPILE_FLAGS "${DISTRIBUTE_COMPILE_FLAGS} -faligned-new") set(DISTRIBUTE_COMPILE_FLAGS "${DISTRIBUTE_COMPILE_FLAGS} -faligned-new")
set_source_files_properties(
ProcessGroupHeter.cc PROPERTIES COMPILE_FLAGS
${DISTRIBUTE_COMPILE_FLAGS})
endif() endif()
set_source_files_properties(
ProcessGroupHeter.cc PROPERTIES COMPILE_FLAGS ${DISTRIBUTE_COMPILE_FLAGS})
cc_library( cc_library(
processgroup_heter processgroup_heter
SRCS ProcessGroupHeter.cc HCCLTools.cc Common.cc SRCS ProcessGroupHeter.cc HCCLTools.cc Common.cc
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册