From f91b04633340a27304933b6268d5a81f52da5b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E4=B8=80=E6=BA=90?= Date: Sat, 6 Dec 2025 14:43:00 +0800 Subject: [PATCH] update include path for Libraries --- .../10_matmul_frameworklaunch/AclNNInvocation/run.sh | 2 +- .../AclNNInvocation/src/CMakeLists.txt | 2 +- .../12_matmulleakyrelu_frameworklaunch/AclNNInvocation/run.sh | 2 +- .../AclNNInvocation/src/CMakeLists.txt | 2 +- .../AclNNInvocationNaive/CMakeLists.txt | 2 +- .../14_reduce_frameworklaunch/AclNNInvocationNaive/run.sh | 2 +- .../15_sub_frameworklaunch/AclOfflineModel/run.sh | 2 +- .../15_sub_frameworklaunch/AclOfflineModel/src/CMakeLists.txt | 2 +- .../AclNNInvocationNaive/CMakeLists.txt | 2 +- .../AclNNInvocationNaive/run.sh | 2 +- .../0_introduction/1_add_frameworklaunch/AclNNInvocation/run.sh | 2 +- .../1_add_frameworklaunch/AclNNInvocation/src/CMakeLists.txt | 2 +- .../1_add_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt | 2 +- .../1_add_frameworklaunch/AclNNInvocationNaive/run.sh | 2 +- .../0_introduction/1_add_frameworklaunch/AclOfflineModel/run.sh | 2 +- .../1_add_frameworklaunch/AclOfflineModel/src/CMakeLists.txt | 2 +- .../0_introduction/1_add_frameworklaunch/AclOnlineModel/run.sh | 2 +- .../1_add_frameworklaunch/AclOnlineModel/src/CMakeLists.txt | 2 +- .../4_addn_frameworklaunch/AclNNInvocation/run.sh | 2 +- .../4_addn_frameworklaunch/AclNNInvocation/src/CMakeLists.txt | 2 +- .../6_addtemplate_frameworklaunch/AclNNInvocation/run.sh | 2 +- .../AclNNInvocation/src/CMakeLists.txt | 2 +- .../AclNNInvocationNaive/CMakeLists.txt | 2 +- .../7_broadcast_frameworklaunch/AclNNInvocationNaive/run.sh | 2 +- .../static_library/AclNNInvocation/src/CMakeLists.txt | 2 +- .../static_library/OpRunner/src/CMakeLists.txt | 2 +- .../9_leakyrelu_frameworklaunch/AclNNInvocation/run.sh | 2 +- .../AclNNInvocation/src/CMakeLists.txt | 2 +- .../1_utilities/0_printf/FrameworkLaunch/AclNNInvocation/run.sh | 2 +- .../0_printf/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt | 2 +- .../1_utilities/3_assert/FrameworkLaunch/AclNNInvocation/run.sh | 2 +- .../3_assert/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt | 2 +- .../FrameworkLaunch/DumpTensorCube/AclNNInvocation/run.sh | 2 +- .../DumpTensorCube/AclNNInvocation/src/CMakeLists.txt | 2 +- .../FrameworkLaunch/DumpTensorVector/AclNNInvocation/run.sh | 2 +- .../DumpTensorVector/AclNNInvocation/src/CMakeLists.txt | 2 +- .../4_best_practices/12_l2_cache_bypass/AclNNInvocation/run.sh | 2 +- .../12_l2_cache_bypass/AclNNInvocation/src/CMakeLists.txt | 2 +- .../15_mata_address_conflict/AclNNInvocation/run.sh | 2 +- .../15_mata_address_conflict/AclNNInvocation/src/CMakeLists.txt | 2 +- 40 files changed, 40 insertions(+), 40 deletions(-) diff --git a/operator/ascendc/0_introduction/10_matmul_frameworklaunch/AclNNInvocation/run.sh b/operator/ascendc/0_introduction/10_matmul_frameworklaunch/AclNNInvocation/run.sh index 6d7a2c9d5..422c536a8 100755 --- a/operator/ascendc/0_introduction/10_matmul_frameworklaunch/AclNNInvocation/run.sh +++ b/operator/ascendc/0_introduction/10_matmul_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/0_introduction/10_matmul_frameworklaunch/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/0_introduction/10_matmul_frameworklaunch/AclNNInvocation/src/CMakeLists.txt index 66bd7db30..1e326a0ec 100644 --- a/operator/ascendc/0_introduction/10_matmul_frameworklaunch/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/0_introduction/10_matmul_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/0_introduction/12_matmulleakyrelu_frameworklaunch/AclNNInvocation/run.sh b/operator/ascendc/0_introduction/12_matmulleakyrelu_frameworklaunch/AclNNInvocation/run.sh index c86c7a625..15208c18e 100755 --- a/operator/ascendc/0_introduction/12_matmulleakyrelu_frameworklaunch/AclNNInvocation/run.sh +++ b/operator/ascendc/0_introduction/12_matmulleakyrelu_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/0_introduction/12_matmulleakyrelu_frameworklaunch/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/0_introduction/12_matmulleakyrelu_frameworklaunch/AclNNInvocation/src/CMakeLists.txt index b7cc71864..2094ef202 100644 --- a/operator/ascendc/0_introduction/12_matmulleakyrelu_frameworklaunch/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/0_introduction/12_matmulleakyrelu_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/0_introduction/14_reduce_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt b/operator/ascendc/0_introduction/14_reduce_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt index 3af70e54e..ee70cf84e 100644 --- a/operator/ascendc/0_introduction/14_reduce_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt +++ b/operator/ascendc/0_introduction/14_reduce_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/0_introduction/14_reduce_frameworklaunch/AclNNInvocationNaive/run.sh b/operator/ascendc/0_introduction/14_reduce_frameworklaunch/AclNNInvocationNaive/run.sh index 5e511dfbd..826a02bcd 100755 --- a/operator/ascendc/0_introduction/14_reduce_frameworklaunch/AclNNInvocationNaive/run.sh +++ b/operator/ascendc/0_introduction/14_reduce_frameworklaunch/AclNNInvocationNaive/run.sh @@ -8,7 +8,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/0_introduction/15_sub_frameworklaunch/AclOfflineModel/run.sh b/operator/ascendc/0_introduction/15_sub_frameworklaunch/AclOfflineModel/run.sh index 7ba62608a..bec1f80c6 100755 --- a/operator/ascendc/0_introduction/15_sub_frameworklaunch/AclOfflineModel/run.sh +++ b/operator/ascendc/0_introduction/15_sub_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/0_introduction/15_sub_frameworklaunch/AclOfflineModel/src/CMakeLists.txt b/operator/ascendc/0_introduction/15_sub_frameworklaunch/AclOfflineModel/src/CMakeLists.txt index 72b8e96dc..e3f56881a 100644 --- a/operator/ascendc/0_introduction/15_sub_frameworklaunch/AclOfflineModel/src/CMakeLists.txt +++ b/operator/ascendc/0_introduction/15_sub_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/0_introduction/18_unaligned_wholereduces_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt b/operator/ascendc/0_introduction/18_unaligned_wholereduces_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt index 1334dcf86..c7607eea6 100644 --- a/operator/ascendc/0_introduction/18_unaligned_wholereduces_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt +++ b/operator/ascendc/0_introduction/18_unaligned_wholereduces_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/0_introduction/18_unaligned_wholereduces_frameworklaunch/AclNNInvocationNaive/run.sh b/operator/ascendc/0_introduction/18_unaligned_wholereduces_frameworklaunch/AclNNInvocationNaive/run.sh index f40dd18aa..8a73a8ba2 100755 --- a/operator/ascendc/0_introduction/18_unaligned_wholereduces_frameworklaunch/AclNNInvocationNaive/run.sh +++ b/operator/ascendc/0_introduction/18_unaligned_wholereduces_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/0_introduction/1_add_frameworklaunch/AclNNInvocation/run.sh b/operator/ascendc/0_introduction/1_add_frameworklaunch/AclNNInvocation/run.sh index 00bdad141..f8e6bcb8e 100755 --- a/operator/ascendc/0_introduction/1_add_frameworklaunch/AclNNInvocation/run.sh +++ b/operator/ascendc/0_introduction/1_add_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/0_introduction/1_add_frameworklaunch/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/0_introduction/1_add_frameworklaunch/AclNNInvocation/src/CMakeLists.txt index 8e9e45375..b21aa2e97 100644 --- a/operator/ascendc/0_introduction/1_add_frameworklaunch/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/0_introduction/1_add_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/0_introduction/1_add_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt b/operator/ascendc/0_introduction/1_add_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt index 57a2c6637..13dfc0395 100644 --- a/operator/ascendc/0_introduction/1_add_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt +++ b/operator/ascendc/0_introduction/1_add_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/0_introduction/1_add_frameworklaunch/AclNNInvocationNaive/run.sh b/operator/ascendc/0_introduction/1_add_frameworklaunch/AclNNInvocationNaive/run.sh index 7abad744e..c93de7dad 100755 --- a/operator/ascendc/0_introduction/1_add_frameworklaunch/AclNNInvocationNaive/run.sh +++ b/operator/ascendc/0_introduction/1_add_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/0_introduction/1_add_frameworklaunch/AclOfflineModel/run.sh b/operator/ascendc/0_introduction/1_add_frameworklaunch/AclOfflineModel/run.sh index 7ad4ee9f8..d906bba85 100755 --- a/operator/ascendc/0_introduction/1_add_frameworklaunch/AclOfflineModel/run.sh +++ b/operator/ascendc/0_introduction/1_add_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/0_introduction/1_add_frameworklaunch/AclOfflineModel/src/CMakeLists.txt b/operator/ascendc/0_introduction/1_add_frameworklaunch/AclOfflineModel/src/CMakeLists.txt index 1aba11908..877017947 100644 --- a/operator/ascendc/0_introduction/1_add_frameworklaunch/AclOfflineModel/src/CMakeLists.txt +++ b/operator/ascendc/0_introduction/1_add_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/0_introduction/1_add_frameworklaunch/AclOnlineModel/run.sh b/operator/ascendc/0_introduction/1_add_frameworklaunch/AclOnlineModel/run.sh index 01ae806ab..271d20332 100755 --- a/operator/ascendc/0_introduction/1_add_frameworklaunch/AclOnlineModel/run.sh +++ b/operator/ascendc/0_introduction/1_add_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/0_introduction/1_add_frameworklaunch/AclOnlineModel/src/CMakeLists.txt b/operator/ascendc/0_introduction/1_add_frameworklaunch/AclOnlineModel/src/CMakeLists.txt index 94c7544b9..f3fa1cd1b 100644 --- a/operator/ascendc/0_introduction/1_add_frameworklaunch/AclOnlineModel/src/CMakeLists.txt +++ b/operator/ascendc/0_introduction/1_add_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/0_introduction/4_addn_frameworklaunch/AclNNInvocation/run.sh b/operator/ascendc/0_introduction/4_addn_frameworklaunch/AclNNInvocation/run.sh index 2d1bff7a4..c3519021a 100755 --- a/operator/ascendc/0_introduction/4_addn_frameworklaunch/AclNNInvocation/run.sh +++ b/operator/ascendc/0_introduction/4_addn_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/0_introduction/4_addn_frameworklaunch/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/0_introduction/4_addn_frameworklaunch/AclNNInvocation/src/CMakeLists.txt index 8e9e45375..b21aa2e97 100644 --- a/operator/ascendc/0_introduction/4_addn_frameworklaunch/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/0_introduction/4_addn_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/0_introduction/6_addtemplate_frameworklaunch/AclNNInvocation/run.sh b/operator/ascendc/0_introduction/6_addtemplate_frameworklaunch/AclNNInvocation/run.sh index 4b29064ca..033b9937f 100755 --- a/operator/ascendc/0_introduction/6_addtemplate_frameworklaunch/AclNNInvocation/run.sh +++ b/operator/ascendc/0_introduction/6_addtemplate_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/0_introduction/6_addtemplate_frameworklaunch/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/0_introduction/6_addtemplate_frameworklaunch/AclNNInvocation/src/CMakeLists.txt index 8e9e45375..b21aa2e97 100644 --- a/operator/ascendc/0_introduction/6_addtemplate_frameworklaunch/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/0_introduction/6_addtemplate_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/0_introduction/7_broadcast_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt b/operator/ascendc/0_introduction/7_broadcast_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt index d9010fce5..ffeb3cb37 100644 --- a/operator/ascendc/0_introduction/7_broadcast_frameworklaunch/AclNNInvocationNaive/CMakeLists.txt +++ b/operator/ascendc/0_introduction/7_broadcast_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/0_introduction/7_broadcast_frameworklaunch/AclNNInvocationNaive/run.sh b/operator/ascendc/0_introduction/7_broadcast_frameworklaunch/AclNNInvocationNaive/run.sh index cf0d2372a..a46e16fd6 100755 --- a/operator/ascendc/0_introduction/7_broadcast_frameworklaunch/AclNNInvocationNaive/run.sh +++ b/operator/ascendc/0_introduction/7_broadcast_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/0_introduction/8_library_frameworklaunch/static_library/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/0_introduction/8_library_frameworklaunch/static_library/AclNNInvocation/src/CMakeLists.txt index af689f35c..30621e91b 100644 --- a/operator/ascendc/0_introduction/8_library_frameworklaunch/static_library/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/0_introduction/8_library_frameworklaunch/static_library/AclNNInvocation/src/CMakeLists.txt @@ -24,7 +24,7 @@ message("COMPILE_MODE: " ${COMPILE_MODE}) # 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/0_introduction/8_library_frameworklaunch/static_library/OpRunner/src/CMakeLists.txt b/operator/ascendc/0_introduction/8_library_frameworklaunch/static_library/OpRunner/src/CMakeLists.txt index 149d363ff..261aad8d0 100644 --- a/operator/ascendc/0_introduction/8_library_frameworklaunch/static_library/OpRunner/src/CMakeLists.txt +++ b/operator/ascendc/0_introduction/8_library_frameworklaunch/static_library/OpRunner/src/CMakeLists.txt @@ -21,7 +21,7 @@ set(INC_PATH $ENV{NPU_HOST_INC}) # 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/0_introduction/9_leakyrelu_frameworklaunch/AclNNInvocation/run.sh b/operator/ascendc/0_introduction/9_leakyrelu_frameworklaunch/AclNNInvocation/run.sh index ec7c6280c..175dade19 100755 --- a/operator/ascendc/0_introduction/9_leakyrelu_frameworklaunch/AclNNInvocation/run.sh +++ b/operator/ascendc/0_introduction/9_leakyrelu_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/0_introduction/9_leakyrelu_frameworklaunch/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/0_introduction/9_leakyrelu_frameworklaunch/AclNNInvocation/src/CMakeLists.txt index f94e69f51..8b09bb46d 100644 --- a/operator/ascendc/0_introduction/9_leakyrelu_frameworklaunch/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/0_introduction/9_leakyrelu_frameworklaunch/AclNNInvocation/src/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/1_utilities/0_printf/FrameworkLaunch/AclNNInvocation/run.sh b/operator/ascendc/1_utilities/0_printf/FrameworkLaunch/AclNNInvocation/run.sh index 09b692487..0e515d4ea 100755 --- a/operator/ascendc/1_utilities/0_printf/FrameworkLaunch/AclNNInvocation/run.sh +++ b/operator/ascendc/1_utilities/0_printf/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/1_utilities/0_printf/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/1_utilities/0_printf/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt index 2618b2f96..d4d67dd10 100644 --- a/operator/ascendc/1_utilities/0_printf/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/1_utilities/0_printf/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/1_utilities/3_assert/FrameworkLaunch/AclNNInvocation/run.sh b/operator/ascendc/1_utilities/3_assert/FrameworkLaunch/AclNNInvocation/run.sh index 11c9a1695..4d27cd022 100755 --- a/operator/ascendc/1_utilities/3_assert/FrameworkLaunch/AclNNInvocation/run.sh +++ b/operator/ascendc/1_utilities/3_assert/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/1_utilities/3_assert/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/1_utilities/3_assert/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt index 2618b2f96..d4d67dd10 100644 --- a/operator/ascendc/1_utilities/3_assert/FrameworkLaunch/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/1_utilities/3_assert/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/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorCube/AclNNInvocation/run.sh b/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorCube/AclNNInvocation/run.sh index eaf8ebde1..b48561b55 100755 --- a/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorCube/AclNNInvocation/run.sh +++ b/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorCube/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/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorCube/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorCube/AclNNInvocation/src/CMakeLists.txt index 7be860478..e21fac024 100644 --- a/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorCube/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorCube/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/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorVector/AclNNInvocation/run.sh b/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorVector/AclNNInvocation/run.sh index bdecf496f..bbdda051b 100755 --- a/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorVector/AclNNInvocation/run.sh +++ b/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorVector/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/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorVector/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorVector/AclNNInvocation/src/CMakeLists.txt index 32bed518d..a80b9cf7a 100644 --- a/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorVector/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/1_utilities/7_dumptensor/FrameworkLaunch/DumpTensorVector/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/4_best_practices/12_l2_cache_bypass/AclNNInvocation/run.sh b/operator/ascendc/4_best_practices/12_l2_cache_bypass/AclNNInvocation/run.sh index 5f407789f..bb5d0c553 100755 --- a/operator/ascendc/4_best_practices/12_l2_cache_bypass/AclNNInvocation/run.sh +++ b/operator/ascendc/4_best_practices/12_l2_cache_bypass/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/4_best_practices/12_l2_cache_bypass/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/4_best_practices/12_l2_cache_bypass/AclNNInvocation/src/CMakeLists.txt index 32bed518d..a80b9cf7a 100644 --- a/operator/ascendc/4_best_practices/12_l2_cache_bypass/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/4_best_practices/12_l2_cache_bypass/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/4_best_practices/15_mata_address_conflict/AclNNInvocation/run.sh b/operator/ascendc/4_best_practices/15_mata_address_conflict/AclNNInvocation/run.sh index d5eac7c1d..7f7a2fe06 100755 --- a/operator/ascendc/4_best_practices/15_mata_address_conflict/AclNNInvocation/run.sh +++ b/operator/ascendc/4_best_practices/15_mata_address_conflict/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/4_best_practices/15_mata_address_conflict/AclNNInvocation/src/CMakeLists.txt b/operator/ascendc/4_best_practices/15_mata_address_conflict/AclNNInvocation/src/CMakeLists.txt index 8d0ae1bd3..1d8aad9cf 100644 --- a/operator/ascendc/4_best_practices/15_mata_address_conflict/AclNNInvocation/src/CMakeLists.txt +++ b/operator/ascendc/4_best_practices/15_mata_address_conflict/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