Skip to content

Commit

Permalink
custom op use spmd rule
Browse files Browse the repository at this point in the history
  • Loading branch information
liuzhenhai93 committed Jan 5, 2024
1 parent ed6f32d commit 72585ed
Show file tree
Hide file tree
Showing 17 changed files with 752 additions and 99 deletions.
6 changes: 6 additions & 0 deletions cmake/inference_lib.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,12 @@ copy(
DSTS ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include/paddle/phi/core/distributed/
)

copy(
inference_lib_dist
SRCS ${PADDLE_SOURCE_DIR}/paddle/phi/core/distributed/auto_parallel/*.h
DSTS ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include/paddle/phi/core/distributed/auto_parallel/
)

copy(
inference_lib_dist
SRCS ${PADDLE_SOURCE_DIR}/paddle/fluid/platform/init_phi.h
Expand Down
1 change: 0 additions & 1 deletion paddle/extension.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,4 @@ limitations under the License. */
#endif
// For initialization of DeviceContextPool and MemoryMethod
#include "paddle/fluid/platform/init_phi.h"

static paddle::InitPhi g_init_phi;
Loading

0 comments on commit 72585ed

Please sign in to comment.