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 6d7a2c9d54a4caff7bc49d73d3c997b438753a8f..422c536a8e958eae2d77dfd80dc7c8eb9da4abfc 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 66bd7db3070e65ee27ef73106bc4849fa96f1c68..1e326a0ec27fdc4bda54535aefc038922d26d577 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 c86c7a6250071c413bafee1ddae78aa61aff922e..15208c18e5708e3e8559b51f3210edbb8890aafb 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 b7cc718645c8a45b732d3543e17b7b56db56b41b..2094ef2020a7179db42237c997a2270b117e95e3 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 3af70e54e28ef381f78a624e1bd1e100c3cf096c..ee70cf84e107dbb28b53239e92ca98a7133750b7 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 5e511dfbdc5677a5f8c787861196fe358115510c..826a02bcd9762584f84b115a5cc23841d74b9ba1 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 7ba62608aeeba892e29160ed4d5ddf051c30aee8..bec1f80c6de4b52eeea23fce6f86617be2a60d1d 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 72b8e96dcf2bcb196eb707969d0626181a741d76..e3f56881af989df45056552860906a45c4a7e477 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 1334dcf86ea8728e1f4d4e9f122eb4b7306a7bd9..c7607eea6ccb72d6894075c46bfcbbe3e4268345 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 f40dd18aafddb9c7928f63e7a3b9cd666089b110..8a73a8ba25e822353153b50bdeb1db4e31950b54 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 00bdad141673e4eafe28f774488426ca5e2496a1..f8e6bcb8e2a19c294fbe9422042d2e7a42043edc 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 8e9e45375c282c89b4b00bccd02b936aec2e48ec..b21aa2e97a2d38d1a7ea3bb1e46b14e04d42a8e4 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 57a2c66376526b6a80f9d407e3f4e13d78022104..13dfc039584e4c9aadb79aed5417feb3f94efc6e 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 7abad744e9245564546a2b97d8b1bba68b659dd5..c93de7dad982d673cd143a6120732a3ece0450bc 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 7ad4ee9f8adca0bed838fc42597d22e9012e8ab3..d906bba85cfe6742f64787c305e7e441ed928213 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 1aba11908fc177433c30f91b59845590d526f91c..877017947b4cb7d407c72c62a3aa9df1054823f5 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 01ae806abc9d3a0ddfe25747706a09d74b95a8a3..271d203325938d793016022a6b863acf26ff60a9 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 94c7544b984360818b85f0437cbbff02f6674319..f3fa1cd1bd195768291036f96e74f693af52c1a3 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 2d1bff7a411be54b7ae2446de74b26b6a8afb11f..c3519021ae54afe7b46c0f9bb18de6ed78219618 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 8e9e45375c282c89b4b00bccd02b936aec2e48ec..b21aa2e97a2d38d1a7ea3bb1e46b14e04d42a8e4 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 4b29064ca516e5745b3ecf888a26be1cf906facc..033b9937fbeb6fedb4bbe537504137d2f9d692c7 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 8e9e45375c282c89b4b00bccd02b936aec2e48ec..b21aa2e97a2d38d1a7ea3bb1e46b14e04d42a8e4 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 d9010fce572a8d2b94e66fd8108663c6d23553e4..ffeb3cb3713626da4c62d6f59df5e48fbde2fd0d 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 cf0d2372ac53c46c5cfa8beea0c6b307cc623389..a46e16fd6530bef3bcdad65cc7830da8675da6a9 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 af689f35c35b383183731f3a56ccf32c502752c0..30621e91bd6cc31144460d865020fb5684d490b4 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 149d363ffb8fef92f0fdb947e77664f056b1bdb7..261aad8d02ae34df2dc842400b77ce14eb2508e9 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 ec7c6280c8eebb3ae6eee74216531902315ce99c..175dade19bff8b0e3cb4990bdb804e0296c141fd 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 f94e69f51dffb3cb43d151fbf3aa5b2f5b216a23..8b09bb46dde8cf532a9dc3aa52ca4318a56fe26d 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 09b6924874deb3930acfe471a7c9da633873b0c0..0e515d4eafe5b9ba723fe85952a587cc19c1522b 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 2618b2f9611f9561051661d8f442a2788bc3f87f..d4d67dd103255e8a3466c7a8c64e0bf4bf265993 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 11c9a169581a9ff7ef2cf0ad9d4c62691ba1c8c2..4d27cd022f4485198e2db365ee6a8f4f99a4ba2f 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 2618b2f9611f9561051661d8f442a2788bc3f87f..d4d67dd103255e8a3466c7a8c64e0bf4bf265993 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 eaf8ebde18d427b6d97342addf016de44cfd7573..b48561b55a3a8b4dfb13c3d34913c5f02ba6326e 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 7be86047887cfdac7276c4a6dfd9e25dd21d290f..e21fac02481483a89d0cae023b8cd5fe67fcda23 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 bdecf496fde12bfd3d972ace42e58252eb8d18e1..bbdda051b63103b8ee4ea7d7fef0bbc381fdbc45 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 32bed518d88a80a72e7892f2901b7adfdb61eea1..a80b9cf7a0114dbc57f086f27492ad7f08138d48 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 5f407789fbbe00a7a8be66209aabec17029228b5..bb5d0c553452d51405e3d66c5d0e66718f742ca2 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 32bed518d88a80a72e7892f2901b7adfdb61eea1..a80b9cf7a0114dbc57f086f27492ad7f08138d48 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 d5eac7c1d186ff7012340bbdd2d82c012f972c7b..7f7a2fe06687a4e378ce3ca3f5237fef4ea42380 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 8d0ae1bd386dfe128588617ad7502dbc8854ee41..1d8aad9cff2c60def22a56974779edb93dce2249 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}")