-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[XPU] Update cmake options for xpu. #33450
Conversation
Thanks for your contribution! |
LINK_DIRECTORIES("${XPU_SDK_ROOT}/XTDK/shlib/") | ||
LINK_DIRECTORIES("${XPU_SDK_ROOT}/XTDK/runtime/shlib/") | ||
IF(WITH_AARCH64) | ||
SET(XPU_SDK_ENV "kylin_aarch64") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个是ARM平台的,但是你的说明中没有WITH_AARCH64.
[arm + Paddle XPU + lite XPU
cmake .. -DWITH_PYTHON=ON
-DPYTHON_EXECUTABLE=which python
-DCMAKE_BUILD_TYPE=Release
-DON_INFER=ON
-DWITH_MKL=OFF
-DWITH_XPU=ON
-DWITH_GPU=OFF
-DWITH_LITE=ON
-DLITE_WITH_XPU=ON
-DLITE_GIT_TAG=develop #release/v2.9
-DCMAKE_CXX_FLAGS="-Wno-error -w"
](url)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改,忘加了。
cmake/external/xpu.cmake
Outdated
@@ -7,7 +7,7 @@ SET(XPU_PROJECT "extern_xpu") | |||
SET(XPU_API_LIB_NAME "libxpuapi.so") | |||
SET(XPU_RT_LIB_NAME "libxpurt.so") | |||
|
|||
IF(WITH_AARCH64) | |||
IF(WITH_AARCH64 OR WITH_ARM) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WITH_ARM是只有飞腾吗?其他ARM平台不一定支持
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已修改
@@ -147,6 +157,10 @@ message(STATUS "Paddle-lite BINARY_DIR: ${LITE_BINARY_DIR}") | |||
message(STATUS "Paddle-lite SOURCE_DIR: ${LITE_SOURCE_DIR}") | |||
include_directories(${LITE_SOURCE_DIR}) | |||
include_directories(${LITE_BINARY_DIR}) | |||
if(LITE_WITH_XPU) | |||
include_directories(${LITE_BINARY_DIR}/third_party/install/xpu/xdnn/include/) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个@知毅再确认下,在third_party/install/xpu目录下有xdnn、xre目录对吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
PR types
Others
PR changes
Others
Describe
x86 + Paddle XPU
arm + Paddle xpu
x86 + Paddle XPU + lite XPU
arm + Paddle XPU + lite XPU
x86 + Paddle GPU + lite (XPU+GPU) (业务发包,不开启Python)