forked from PaddlePaddle/FastDeploy
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Other] Support Ascend deployment on X86 platform. (PaddlePaddle#1067)
* Add Huawei Ascend NPU deploy through PaddleLite CANN * Add NNAdapter interface for paddlelite * Modify Huawei Ascend Cmake * Update way for compiling Huawei Ascend NPU deployment * remove UseLiteBackend in UseCANN * Support compile python whlee * Change names of nnadapter API * Add nnadapter pybind and remove useless API * Support Python deployment on Huawei Ascend NPU * Add models suppor for ascend * Add PPOCR rec reszie for ascend * fix conflict for ascend * Rename CANN to Ascend * Rename CANN to Ascend * Improve ascend * fix ascend bug * improve ascend docs * improve ascend docs * improve ascend docs * Improve Ascend * Improve Ascend * Move ascend python demo * Imporve ascend * Improve ascend * Improve ascend * Improve ascend * Improve ascend * Imporve ascend * Imporve ascend * Improve ascend * acc eval script * acc eval * remove acc_eval from branch huawei * Add detection and segmentation examples for Ascend deployment * Add detection and segmentation examples for Ascend deployment * Add PPOCR example for ascend deploy * Imporve paddle lite compiliation * Add FlyCV doc * Add FlyCV doc * Add FlyCV doc * Imporve Ascend docs * Imporve Ascend docs * Improve PPOCR example * Support Ascend deployment on X86 platform * Improve Ascend docs * Improve ascend * Improve ascend * Change Paddle Lite Ascend URL
- Loading branch information
Showing
4 changed files
with
95 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,32 @@ | ||
if(NOT CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64") | ||
message(FATAL_ERROR "Huawei Ascend NPU is supported on Linux aarch64 platform for now.") | ||
endif() | ||
|
||
if(NOT ${ENABLE_LITE_BACKEND}) | ||
set(ENABLE_LITE_BACKEND ON) | ||
endif() | ||
|
||
if (NOT BUILD_FASTDEPLOY_PYTHON) | ||
message(STATUS "Build FastDeploy Ascend C++ library.") | ||
if(NOT PADDLELITE_URL) | ||
set(PADDLELITE_URL "https://bj.bcebos.com/fastdeploy/test/lite-linux_arm64_huawei_ascend_npu_1121.tgz") | ||
endif() | ||
else () | ||
message(STATUS "Build FastDeploy Ascend Python library.") | ||
if(NOT PADDLELITE_URL) | ||
set(PADDLELITE_URL "https://bj.bcebos.com/fastdeploy/test/lite-linux_arm64_huawei_ascend_npu_python_1207.tgz") | ||
endif() | ||
endif() | ||
if(NOT CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64") | ||
if (NOT BUILD_FASTDEPLOY_PYTHON) | ||
message(STATUS "Build FastDeploy Ascend C++ library on X86 platform.") | ||
if(NOT PADDLELITE_URL) | ||
set(PADDLELITE_URL "https://bj.bcebos.com/fastdeploy/third_libs/lite-linux_x86_huawei_ascend_npu_0105.tgz") | ||
endif() | ||
else () | ||
message(STATUS "Build FastDeploy Ascend Python library on X86 platform.") | ||
if(NOT PADDLELITE_URL) | ||
set(PADDLELITE_URL "https://bj.bcebos.com/fastdeploy/third_libs/lite-linux_x86_huawei_ascend_npu_python_0105.tgz") | ||
endif() | ||
endif() | ||
endif() | ||
|
||
|
||
if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "aarch64") | ||
if (NOT BUILD_FASTDEPLOY_PYTHON) | ||
message(STATUS "Build FastDeploy Ascend C++ library on aarch64 platform.") | ||
if(NOT PADDLELITE_URL) | ||
set(PADDLELITE_URL "https://bj.bcebos.com/fastdeploy/third_libs/lite-linux_arm64_huawei_ascend_npu_1121.tgz") | ||
endif() | ||
else () | ||
message(STATUS "Build FastDeploy Ascend Python library on aarch64 platform.") | ||
if(NOT PADDLELITE_URL) | ||
set(PADDLELITE_URL "https://bj.bcebos.com/fastdeploy/third_libs/lite-linux_arm64_huawei_ascend_npu_python_1207.tgz") | ||
endif() | ||
endif() | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters