From b4e254366e9d3860a7f27eccafcbd7f6842c9256 Mon Sep 17 00:00:00 2001 From: Huihuang Zheng Date: Wed, 10 Nov 2021 16:19:11 +0800 Subject: [PATCH] Add libcinnapi.so to setup.py.in (#37068) Add libcinnapi.so to setup.py.in --- python/setup.py.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/python/setup.py.in b/python/setup.py.in index 669266d7b8..6a252a5723 100644 --- a/python/setup.py.in +++ b/python/setup.py.in @@ -464,6 +464,10 @@ if '${WITH_LITE}' == 'ON': shutil.copy('${LITE_NNADAPTER_NPU_LIB}', libs_path) package_data['paddle.libs']+=['libnnadapter_driver_huawei_ascend_npu' + ext_name] +if '${WITH_CINN}' == 'ON': + shutil.copy('${CINN_LIB_LOCATION}/${CINN_LIB_NAME}', libs_path) + package_data['paddle.libs']+=['libcinnapi.so'] + if '${WITH_PSLIB}' == 'ON': shutil.copy('${PSLIB_LIB}', libs_path) if os.path.exists('${PSLIB_VERSION_PY}'): -- GitLab