未验证 提交 562d2daf 编写于 作者: R risemeup1 提交者: GitHub

Fix gpu ps compile patch error (#53256)

* fix patch error

* fix patch error
上级 81c89dd6
...@@ -52,7 +52,7 @@ if(CMAKE_COMPILER_IS_GNUCC) ...@@ -52,7 +52,7 @@ if(CMAKE_COMPILER_IS_GNUCC)
file(TO_NATIVE_PATH ${PADDLE_SOURCE_DIR}/patches/eigen/Complex.h.patch file(TO_NATIVE_PATH ${PADDLE_SOURCE_DIR}/patches/eigen/Complex.h.patch
complex_header) complex_header)
set(EIGEN_PATCH_COMMAND set(EIGEN_PATCH_COMMAND
patch -d ${EIGEN_SOURCE_DIR}/Eigen/src/Core/arch/SSE/ < patch -Nd ${EIGEN_SOURCE_DIR}/Eigen/src/Core/arch/SSE/ <
${complex_header}) ${complex_header})
endif() endif()
endif() endif()
......
...@@ -55,8 +55,8 @@ if(CMAKE_COMPILER_IS_GNUCC) ...@@ -55,8 +55,8 @@ if(CMAKE_COMPILER_IS_GNUCC)
file(TO_NATIVE_PATH ${PADDLE_SOURCE_DIR}/patches/gloo/types.h.patch file(TO_NATIVE_PATH ${PADDLE_SOURCE_DIR}/patches/gloo/types.h.patch
types_header) types_header)
set(GLOO_PATCH_COMMAND set(GLOO_PATCH_COMMAND
patch -d ${GLOO_SOURCE_DIR}/gloo/transport/tcp < ${native_dst} && patch patch -Nd ${GLOO_SOURCE_DIR}/gloo/transport/tcp < ${native_dst} &&
-d ${GLOO_SOURCE_DIR}/gloo/ < ${types_header}) patch -Nd ${GLOO_SOURCE_DIR}/gloo/ < ${types_header})
endif() endif()
endif() endif()
include_directories(${GLOO_INCLUDE_DIR}) include_directories(${GLOO_INCLUDE_DIR})
......
...@@ -66,7 +66,7 @@ endif() ...@@ -66,7 +66,7 @@ endif()
if(NOT WIN32 AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 12.0) if(NOT WIN32 AND ${CMAKE_CXX_COMPILER_VERSION} VERSION_GREATER 12.0)
file(TO_NATIVE_PATH file(TO_NATIVE_PATH
${PADDLE_SOURCE_DIR}/patches/gtest/gtest-death-test.cc.patch native_src) ${PADDLE_SOURCE_DIR}/patches/gtest/gtest-death-test.cc.patch native_src)
set(GTEST_PATCH_COMMAND patch -d ${GTEST_SOURCE_DIR}/googletest/src < set(GTEST_PATCH_COMMAND patch -Nd ${GTEST_SOURCE_DIR}/googletest/src <
${native_src}) ${native_src})
endif() endif()
if(WIN32) if(WIN32)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册