diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6a8ed3362..327f715c9 100755 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -9,7 +9,7 @@ repos: - id: detect-private-key - id: end-of-file-fixer - id: trailing-whitespace - files: (.*\.(py|bzl|md|rst|c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps|cmake|yaml|yml|hook)|BUILD|.*\.BUILD|WORKSPACE|CMakeLists\.txt)$ + files: (.*\.(py|bzl|md|rst|c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps|cmake|yaml|yml|hook|scpp)|BUILD|.*\.BUILD|WORKSPACE|CMakeLists\.txt)$ - repo: https://github.com/Lucas-C/pre-commit-hooks.git rev: v1.1.14 hooks: @@ -65,7 +65,7 @@ repos: description: Format files with ClangFormat. entry: bash ./tools/codestyle/clang_format.hook -i language: system - files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps|mm|m)$ + files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|xpu|kps|mm|m|scpp)$ - repo: local hooks: - id: cpplint-cpp-source @@ -73,7 +73,7 @@ repos: description: Check C++ code style using cpplint.py. entry: bash ./tools/codestyle/cpplint_pre_commit.hook language: system - files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx)$ + files: \.(c|cc|cxx|cpp|cu|h|hpp|hxx|scpp)$ args: - --extensions=c,cc,cxx,cpp,cu,cuh,h,hpp,hxx,kps - --filter=-readability/fn_size,-build/include_what_you_use,-build/c++11,-whitespace/parens diff --git a/backends/sdaa/CMakeLists.txt b/backends/sdaa/CMakeLists.txt old mode 100755 new mode 100644 index 467698402..29522a3be --- a/backends/sdaa/CMakeLists.txt +++ b/backends/sdaa/CMakeLists.txt @@ -1,6 +1,6 @@ cmake_minimum_required(VERSION 3.10) -project(paddle-custom-sdaa CXX C) +project(paddle-sdaa CXX C) add_definitions(-std=c++14) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake") @@ -11,7 +11,7 @@ option(WITH_SW "compile with sw arch support" OFF) option(WITH_GIT_COMMIT "compile with git commit print" ON) option(WITH_PADDLE_INFO "compile with paddle commit/version print" ON) -set(PLUGIN_NAME "paddle-custom-sdaa") +set(PLUGIN_NAME "paddle-sdaa") if(DEFINED ENV{PLUGIN_VERSION}) set(PLUGIN_VERSION $ENV{PLUGIN_VERSION}) else() @@ -180,7 +180,7 @@ add_custom_command( COMMAND python3 ${CMAKE_CURRENT_BINARY_DIR}/setup.py bdist_wheel DEPENDS ${PLUGIN_NAME} DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/python/sdaa-ext/.timestamp - COMMENT "Packing paddle-custom-sdaa whl packages------>>>") + COMMENT "Packing paddle-sdaa whl packages------>>>") add_custom_target( python_package ALL diff --git a/backends/sdaa/README.md b/backends/sdaa/README.md index c8d2b555a..78e307d13 100644 --- a/backends/sdaa/README.md +++ b/backends/sdaa/README.md @@ -53,7 +53,7 @@ cd backends/sdaa bash compile.sh # 6. install the generated whl package, which is under build/dist directory -pip install -U build/dist/*.whl +pip install build/dist/*.whl --force-reinstall ``` ### Verification diff --git a/backends/sdaa/README_cn.md b/backends/sdaa/README_cn.md index 7cb2d22e5..58feb13c9 100644 --- a/backends/sdaa/README_cn.md +++ b/backends/sdaa/README_cn.md @@ -53,7 +53,7 @@ cd backends/sdaa bash compile.sh # 6. 编译产出在 build/dist 路径下,使用 pip 安装 -pip install -U build/dist/*.whl +pip install build/dist/*.whl --force-reinstall ``` ### 基础功能检查 diff --git a/backends/sdaa/sdaa_ext/setup.py.in b/backends/sdaa/sdaa_ext/setup.py.in old mode 100755 new mode 100644 index 6f02edf44..7c329fd6e --- a/backends/sdaa/sdaa_ext/setup.py.in +++ b/backends/sdaa/sdaa_ext/setup.py.in @@ -38,7 +38,7 @@ library_dirs = [ '${CUSTOM_SDAA_C_OPS_LIB}' ] libraries = [ - ':libpaddle-custom-sdaa.so', + ':libpaddle-sdaa.so', ':libsdcops.so', ':libtecodnn.so', ':libtecoblas.so',