From 7a8c2cd014fbd064377a6fd447afec6e90541388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=B8=80=E6=BA=90?= Date: Fri, 12 Dec 2025 15:48:12 +0800 Subject: [PATCH] update tutorial script --- .../AddCustomSample/FrameworkLaunch/AclNNInvocation/run.sh | 2 +- .../FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt | 2 +- .../FrameworkLaunch/AclNNInvocationNaive/CMakeLists.txt | 2 +- .../AddCustomSample/FrameworkLaunch/AclNNInvocationNaive/run.sh | 2 +- .../AddCustomSample/FrameworkLaunch/AclOfflineModel/run.sh | 2 +- .../FrameworkLaunch/AclOfflineModel/src/CMakeLists.txt | 2 +- .../AddCustomSample/FrameworkLaunch/AclOnlineModel/run.sh | 2 +- .../FrameworkLaunch/AclOnlineModel/src/CMakeLists.txt | 2 +- .../MatmulCustomSample/FrameworkLaunch/AclNNInvocation/run.sh | 2 +- .../FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt | 2 +- .../FrameworkLaunch/AclNNInvocation/run.sh | 2 +- .../FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocation/run.sh b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocation/run.sh index 57e8771db..69a8cf86a 100644 --- a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocation/run.sh +++ b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocation/run.sh @@ -17,7 +17,7 @@ else fi source $_ASCEND_INSTALL_PATH/bin/setenv.bash export DDK_PATH=$_ASCEND_INSTALL_PATH -export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/devlib +export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/lib64 function main { # 1. 清除遗留生成文件和日志文件 diff --git a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt index 8e9e45375..b21aa2e97 100644 --- a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt @@ -28,7 +28,7 @@ set(LIB_PATH $ENV{NPU_HOST_LIB}) # Dynamic libraries in the stub directory can only be used for compilation if (NOT DEFINED ENV{NPU_HOST_LIB}) string(TOLOWER "${CMAKE_SYSTEM_NAME}" SYSTEM_NAME_LOWER) - set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/devlib") + set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/lib64") message(STATUS "set default LIB_PATH: ${LIB_PATH}") else () message(STATUS "env LIB_PATH: ${LIB_PATH}") diff --git a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocationNaive/CMakeLists.txt b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocationNaive/CMakeLists.txt index f55939039..f6e3d512e 100644 --- a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocationNaive/CMakeLists.txt +++ b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocationNaive/CMakeLists.txt @@ -27,7 +27,7 @@ set(LIB_PATH $ENV{NPU_HOST_LIB}) # Dynamic libraries in the stub directory can only be used for compilation if (NOT DEFINED ENV{NPU_HOST_LIB}) string(TOLOWER "${CMAKE_SYSTEM_NAME}" SYSTEM_NAME_LOWER) - set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/devlib") + set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/lib64") message(STATUS "set default LIB_PATH: ${LIB_PATH}") else () message(STATUS "env LIB_PATH: ${LIB_PATH}") diff --git a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocationNaive/run.sh b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocationNaive/run.sh index 7abad744e..c93de7dad 100644 --- a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocationNaive/run.sh +++ b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclNNInvocationNaive/run.sh @@ -12,7 +12,7 @@ else fi source $_ASCEND_INSTALL_PATH/bin/setenv.bash export DDK_PATH=$_ASCEND_INSTALL_PATH -export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/devlib +export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/lib64 set -e rm -rf build diff --git a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOfflineModel/run.sh b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOfflineModel/run.sh index c3a45fb89..f9599e7fe 100755 --- a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOfflineModel/run.sh +++ b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOfflineModel/run.sh @@ -45,7 +45,7 @@ else fi source $_ASCEND_INSTALL_PATH/bin/setenv.bash export DDK_PATH=$_ASCEND_INSTALL_PATH -export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/devlib +export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/lib64 # 检查当前昇腾芯片的类型 function check_soc_version() { diff --git a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOfflineModel/src/CMakeLists.txt b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOfflineModel/src/CMakeLists.txt index c1e5f0136..d5063fe17 100644 --- a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOfflineModel/src/CMakeLists.txt +++ b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOfflineModel/src/CMakeLists.txt @@ -26,7 +26,7 @@ set(LIB_PATH $ENV{NPU_HOST_LIB}) # Dynamic libraries in the stub directory can only be used for compilation if (NOT DEFINED ENV{NPU_HOST_LIB}) string(TOLOWER "${CMAKE_SYSTEM_NAME}" SYSTEM_NAME_LOWER) - set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/devlib") + set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/lib64") message(STATUS "set default LIB_PATH: ${LIB_PATH}") else () message(STATUS "env LIB_PATH: ${LIB_PATH}") diff --git a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOnlineModel/run.sh b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOnlineModel/run.sh index acd409c6f..11f21811c 100644 --- a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOnlineModel/run.sh +++ b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOnlineModel/run.sh @@ -17,7 +17,7 @@ else fi source $_ASCEND_INSTALL_PATH/bin/setenv.bash export DDK_PATH=$_ASCEND_INSTALL_PATH -export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/devlib +export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/lib64 function main { # 1. 清除遗留生成文件和日志文件 diff --git a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOnlineModel/src/CMakeLists.txt b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOnlineModel/src/CMakeLists.txt index 94c7544b9..f3fa1cd1b 100644 --- a/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOnlineModel/src/CMakeLists.txt +++ b/operator/ascendc/tutorials/AddCustomSample/FrameworkLaunch/AclOnlineModel/src/CMakeLists.txt @@ -26,7 +26,7 @@ set(LIB_PATH $ENV{NPU_HOST_LIB}) # Dynamic libraries in the stub directory can only be used for compilation if (NOT DEFINED ENV{NPU_HOST_LIB}) string(TOLOWER "${CMAKE_SYSTEM_NAME}" SYSTEM_NAME_LOWER) - set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/devlib") + set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/lib64") message(STATUS "set default LIB_PATH: ${LIB_PATH}") else () message(STATUS "env LIB_PATH: ${LIB_PATH}") diff --git a/operator/ascendc/tutorials/MatmulCustomSample/FrameworkLaunch/AclNNInvocation/run.sh b/operator/ascendc/tutorials/MatmulCustomSample/FrameworkLaunch/AclNNInvocation/run.sh index 1c6b5ef46..70b590007 100755 --- a/operator/ascendc/tutorials/MatmulCustomSample/FrameworkLaunch/AclNNInvocation/run.sh +++ b/operator/ascendc/tutorials/MatmulCustomSample/FrameworkLaunch/AclNNInvocation/run.sh @@ -17,7 +17,7 @@ else fi source $_ASCEND_INSTALL_PATH/bin/setenv.bash export DDK_PATH=$_ASCEND_INSTALL_PATH -export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/devlib +export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/lib64 function main { # 1. 清除遗留生成文件和日志文件 diff --git a/operator/ascendc/tutorials/MatmulCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/tutorials/MatmulCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt index 66bd7db30..1e326a0ec 100644 --- a/operator/ascendc/tutorials/MatmulCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/tutorials/MatmulCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt @@ -28,7 +28,7 @@ set(LIB_PATH $ENV{NPU_HOST_LIB}) # Dynamic libraries in the stub directory can only be used for compilation if (NOT DEFINED ENV{NPU_HOST_LIB}) string(TOLOWER "${CMAKE_SYSTEM_NAME}" SYSTEM_NAME_LOWER) - set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/devlib") + set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/lib64") message(STATUS "set default LIB_PATH: ${LIB_PATH}") else () message(STATUS "env LIB_PATH: ${LIB_PATH}") diff --git a/operator/ascendc/tutorials/MatmulLeakyReluCustomSample/FrameworkLaunch/AclNNInvocation/run.sh b/operator/ascendc/tutorials/MatmulLeakyReluCustomSample/FrameworkLaunch/AclNNInvocation/run.sh index ab64938f2..8e0cbfcfa 100755 --- a/operator/ascendc/tutorials/MatmulLeakyReluCustomSample/FrameworkLaunch/AclNNInvocation/run.sh +++ b/operator/ascendc/tutorials/MatmulLeakyReluCustomSample/FrameworkLaunch/AclNNInvocation/run.sh @@ -17,7 +17,7 @@ else fi source $_ASCEND_INSTALL_PATH/bin/setenv.bash export DDK_PATH=$_ASCEND_INSTALL_PATH -export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/devlib +export NPU_HOST_LIB=$_ASCEND_INSTALL_PATH/$(arch)-$(uname -s | tr '[:upper:]' '[:lower:]')/lib64 function main { # 1. 清除遗留生成文件和日志文件 diff --git a/operator/ascendc/tutorials/MatmulLeakyReluCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/tutorials/MatmulLeakyReluCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt index b7cc71864..2094ef202 100644 --- a/operator/ascendc/tutorials/MatmulLeakyReluCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/tutorials/MatmulLeakyReluCustomSample/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt @@ -28,7 +28,7 @@ set(LIB_PATH $ENV{NPU_HOST_LIB}) # Dynamic libraries in the stub directory can only be used for compilation if (NOT DEFINED ENV{NPU_HOST_LIB}) string(TOLOWER "${CMAKE_SYSTEM_NAME}" SYSTEM_NAME_LOWER) - set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/devlib") + set(LIB_PATH "/usr/local/Ascend/ascend-toolkit/latest/${CMAKE_SYSTEM_PROCESSOR}-${SYSTEM_NAME_LOWER}/lib64") message(STATUS "set default LIB_PATH: ${LIB_PATH}") else () message(STATUS "env LIB_PATH: ${LIB_PATH}") -- Gitee