From a3ce6e9f4e2ddf9b528509472ce8f989b10b44ca Mon Sep 17 00:00:00 2001 From: jiahongyu Date: Thu, 16 Mar 2023 08:05:42 +0000 Subject: [PATCH] [Unify headerfile] Inference headerfile includes paddle/extension.h --- cmake/phi_header.cmake | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cmake/phi_header.cmake b/cmake/phi_header.cmake index fa5b6724ce89a2..c3da8c70536f49 100644 --- a/cmake/phi_header.cmake +++ b/cmake/phi_header.cmake @@ -51,3 +51,6 @@ phi_header_path_compat( file(RENAME ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include/experimental/extension.h ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include/experimental/ext_all.h) +# Included header file of training and inference can be unified as single file: paddle/extension.h +file(COPY ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/include/experimental/ext_all.h + DESTINATION ${PADDLE_INFERENCE_INSTALL_DIR}/paddle/extension.h)