From 8be932ecc6a7e35a3e86d125f9853e0af15c2c37 Mon Sep 17 00:00:00 2001 From: ruanyy Date: Thu, 20 Nov 2025 11:35:19 +0800 Subject: [PATCH] fix examples bug --- examples/activation/adjustsoftmaxres/run.sh | 7 ------- .../fastergelu/kernel_launch_method_by_direct/run.sh | 7 ------- .../simplesoftmax/kernel_launch_method_by_direct/run.sh | 7 ------- .../softmax/kernel_launch_method_by_direct/run.sh | 7 ------- .../softmaxflash/kernel_launch_method_by_direct/run.sh | 7 ------- .../softmaxgrad/kernel_launch_method_by_direct/run.sh | 7 ------- .../softmaxgradfront/kernel_launch_method_by_direct/run.sh | 7 ------- examples/filter/dropout/run.sh | 7 ------- .../arithprogression/kernel_launch_method_by_direct/run.sh | 7 ------- examples/math/cos/run.sh | 7 ------- .../kernel_launch_method_by_direct/run.sh | 6 ------ .../batch_matmul/kernel_launch_method_by_direct/run.sh | 6 ------ .../matrix/matmul/kernel_launch_method_by_direct/run.sh | 6 ------ examples/matrix/matmul_l0cache/CMakeLists.txt | 1 + examples/matrix/matmul_l0cache/run.sh | 6 ------ .../layernorm/kernel_launch_method_by_direct/run.sh | 7 ------- .../layernorm_grad/kernel_launch_method_by_direct/run.sh | 7 ------- .../layernorm_v2/kernel_launch_method_by_direct/run.sh | 7 ------- .../normalize/kernel_launch_method_by_direct/run.sh | 7 ------- .../welford_finalize/kernel_launch_method_by_direct/run.sh | 7 ------- .../welford_update/kernel_launch_method_by_direct/run.sh | 7 ------- .../pad/broadcast/kernel_launch_method_by_direct/run.sh | 7 ------- .../dequant/kernel_launch_method_by_direct/run.sh | 7 ------- .../quant/kernel_launch_method_by_direct/run.sh | 7 ------- examples/reduce/sum/run.sh | 7 ------- .../kernel_launch_method_by_direct/run.sh | 7 ------- examples/sort/sort/kernel_launch_method_by_direct/run.sh | 7 ------- examples/sort/topk/kernel_launch_method_by_direct/run.sh | 7 ------- examples/transpose/confusion_transpose/run.sh | 7 ------- .../kernel_launch_method_by_direct/run.sh | 7 ------- 30 files changed, 1 insertion(+), 199 deletions(-) diff --git a/examples/activation/adjustsoftmaxres/run.sh b/examples/activation/adjustsoftmaxres/run.sh index 0588d586..67d44534 100644 --- a/examples/activation/adjustsoftmaxres/run.sh +++ b/examples/activation/adjustsoftmaxres/run.sh @@ -35,13 +35,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH cmake -DRUN_MODE=${RUN_MODE} -DSOC_VERSION=${SOC_VERSION} -DASCEND_CANN_PACKAGE_PATH=${ASCEND_HOME_DIR} .. diff --git a/examples/activation/fastergelu/kernel_launch_method_by_direct/run.sh b/examples/activation/fastergelu/kernel_launch_method_by_direct/run.sh index 066e8e79..e4d69d6e 100644 --- a/examples/activation/fastergelu/kernel_launch_method_by_direct/run.sh +++ b/examples/activation/fastergelu/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/activation/simplesoftmax/kernel_launch_method_by_direct/run.sh b/examples/activation/simplesoftmax/kernel_launch_method_by_direct/run.sh index bcfda315..4fd4cce7 100644 --- a/examples/activation/simplesoftmax/kernel_launch_method_by_direct/run.sh +++ b/examples/activation/simplesoftmax/kernel_launch_method_by_direct/run.sh @@ -34,13 +34,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/activation/softmax/kernel_launch_method_by_direct/run.sh b/examples/activation/softmax/kernel_launch_method_by_direct/run.sh index 81716c7d..a6a79cdc 100644 --- a/examples/activation/softmax/kernel_launch_method_by_direct/run.sh +++ b/examples/activation/softmax/kernel_launch_method_by_direct/run.sh @@ -34,13 +34,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/activation/softmaxflash/kernel_launch_method_by_direct/run.sh b/examples/activation/softmaxflash/kernel_launch_method_by_direct/run.sh index 6e1c1178..76a96630 100644 --- a/examples/activation/softmaxflash/kernel_launch_method_by_direct/run.sh +++ b/examples/activation/softmaxflash/kernel_launch_method_by_direct/run.sh @@ -34,13 +34,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/activation/softmaxgrad/kernel_launch_method_by_direct/run.sh b/examples/activation/softmaxgrad/kernel_launch_method_by_direct/run.sh index be0b04ec..d47df1d0 100644 --- a/examples/activation/softmaxgrad/kernel_launch_method_by_direct/run.sh +++ b/examples/activation/softmaxgrad/kernel_launch_method_by_direct/run.sh @@ -34,13 +34,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/activation/softmaxgradfront/kernel_launch_method_by_direct/run.sh b/examples/activation/softmaxgradfront/kernel_launch_method_by_direct/run.sh index ed93d655..7632d61f 100644 --- a/examples/activation/softmaxgradfront/kernel_launch_method_by_direct/run.sh +++ b/examples/activation/softmaxgradfront/kernel_launch_method_by_direct/run.sh @@ -34,13 +34,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/filter/dropout/run.sh b/examples/filter/dropout/run.sh index 76ad17bb..6ab07b0b 100644 --- a/examples/filter/dropout/run.sh +++ b/examples/filter/dropout/run.sh @@ -35,13 +35,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH cmake -DRUN_MODE=${RUN_MODE} -DSOC_VERSION=${SOC_VERSION} -DASCEND_CANN_PACKAGE_PATH=${ASCEND_HOME_DIR} .. diff --git a/examples/index/arithprogression/kernel_launch_method_by_direct/run.sh b/examples/index/arithprogression/kernel_launch_method_by_direct/run.sh index d153abd9..c49744fd 100644 --- a/examples/index/arithprogression/kernel_launch_method_by_direct/run.sh +++ b/examples/index/arithprogression/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/math/cos/run.sh b/examples/math/cos/run.sh index 2f8c76a4..98e76471 100644 --- a/examples/math/cos/run.sh +++ b/examples/math/cos/run.sh @@ -35,13 +35,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH cmake -DRUN_MODE=${RUN_MODE} -DSOC_VERSION=${SOC_VERSION} -DASCEND_CANN_PACKAGE_PATH=${ASCEND_HOME_DIR} .. diff --git a/examples/matrix/basic_block_matmul/kernel_launch_method_by_direct/run.sh b/examples/matrix/basic_block_matmul/kernel_launch_method_by_direct/run.sh index 818d52b4..b54f7df7 100644 --- a/examples/matrix/basic_block_matmul/kernel_launch_method_by_direct/run.sh +++ b/examples/matrix/basic_block_matmul/kernel_launch_method_by_direct/run.sh @@ -36,12 +36,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - export PATH=${ASCEND_HOME_DIR}/tools/msprof/:$PATH export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/matrix/batch_matmul/kernel_launch_method_by_direct/run.sh b/examples/matrix/batch_matmul/kernel_launch_method_by_direct/run.sh index 7c7b0d07..e804c24e 100644 --- a/examples/matrix/batch_matmul/kernel_launch_method_by_direct/run.sh +++ b/examples/matrix/batch_matmul/kernel_launch_method_by_direct/run.sh @@ -44,12 +44,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - export PATH=${ASCEND_HOME_DIR}/tools/msprof/:$PATH export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/matrix/matmul/kernel_launch_method_by_direct/run.sh b/examples/matrix/matmul/kernel_launch_method_by_direct/run.sh index 102d37f0..0a4412dd 100644 --- a/examples/matrix/matmul/kernel_launch_method_by_direct/run.sh +++ b/examples/matrix/matmul/kernel_launch_method_by_direct/run.sh @@ -44,12 +44,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - if [ ! "${CASE_TYPE_DIRECT}" ]; then CASE_TYPE_DIRECT=align fi diff --git a/examples/matrix/matmul_l0cache/CMakeLists.txt b/examples/matrix/matmul_l0cache/CMakeLists.txt index be97b7cb..5c789291 100644 --- a/examples/matrix/matmul_l0cache/CMakeLists.txt +++ b/examples/matrix/matmul_l0cache/CMakeLists.txt @@ -70,6 +70,7 @@ target_link_libraries(ascendc_matmul_l0cache_bbit PRIVATE platform ascendalog dl + graph ) install(TARGETS ascendc_matmul_l0cache_bbit diff --git a/examples/matrix/matmul_l0cache/run.sh b/examples/matrix/matmul_l0cache/run.sh index d792b5c7..24ba51b0 100644 --- a/examples/matrix/matmul_l0cache/run.sh +++ b/examples/matrix/matmul_l0cache/run.sh @@ -44,12 +44,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - export PATH=${ASCEND_HOME_DIR}/tools/msprof/:$PATH export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/normalization/layernorm/kernel_launch_method_by_direct/run.sh b/examples/normalization/layernorm/kernel_launch_method_by_direct/run.sh index de839999..40030235 100644 --- a/examples/normalization/layernorm/kernel_launch_method_by_direct/run.sh +++ b/examples/normalization/layernorm/kernel_launch_method_by_direct/run.sh @@ -34,13 +34,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/normalization/layernorm_grad/kernel_launch_method_by_direct/run.sh b/examples/normalization/layernorm_grad/kernel_launch_method_by_direct/run.sh index 2a1f9b38..fb6e1950 100644 --- a/examples/normalization/layernorm_grad/kernel_launch_method_by_direct/run.sh +++ b/examples/normalization/layernorm_grad/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/normalization/layernorm_v2/kernel_launch_method_by_direct/run.sh b/examples/normalization/layernorm_v2/kernel_launch_method_by_direct/run.sh index de839999..40030235 100644 --- a/examples/normalization/layernorm_v2/kernel_launch_method_by_direct/run.sh +++ b/examples/normalization/layernorm_v2/kernel_launch_method_by_direct/run.sh @@ -34,13 +34,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/normalization/normalize/kernel_launch_method_by_direct/run.sh b/examples/normalization/normalize/kernel_launch_method_by_direct/run.sh index 517ab0a2..5cf326c9 100644 --- a/examples/normalization/normalize/kernel_launch_method_by_direct/run.sh +++ b/examples/normalization/normalize/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/normalization/welford_finalize/kernel_launch_method_by_direct/run.sh b/examples/normalization/welford_finalize/kernel_launch_method_by_direct/run.sh index 362051c3..7d7f22d1 100644 --- a/examples/normalization/welford_finalize/kernel_launch_method_by_direct/run.sh +++ b/examples/normalization/welford_finalize/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH cmake -DRUN_MODE=${RUN_MODE} -DSOC_VERSION=${SOC_VERSION} -DASCEND_CANN_PACKAGE_PATH=${ASCEND_HOME_DIR} .. diff --git a/examples/normalization/welford_update/kernel_launch_method_by_direct/run.sh b/examples/normalization/welford_update/kernel_launch_method_by_direct/run.sh index a4a5c9b9..761964f3 100644 --- a/examples/normalization/welford_update/kernel_launch_method_by_direct/run.sh +++ b/examples/normalization/welford_update/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/pad/broadcast/kernel_launch_method_by_direct/run.sh b/examples/pad/broadcast/kernel_launch_method_by_direct/run.sh index 19f8abbb..2780e080 100644 --- a/examples/pad/broadcast/kernel_launch_method_by_direct/run.sh +++ b/examples/pad/broadcast/kernel_launch_method_by_direct/run.sh @@ -37,13 +37,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/quantization/dequant/kernel_launch_method_by_direct/run.sh b/examples/quantization/dequant/kernel_launch_method_by_direct/run.sh index 0724c483..49c7a578 100644 --- a/examples/quantization/dequant/kernel_launch_method_by_direct/run.sh +++ b/examples/quantization/dequant/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/quantization/quant/kernel_launch_method_by_direct/run.sh b/examples/quantization/quant/kernel_launch_method_by_direct/run.sh index c97596b7..4c6f7408 100644 --- a/examples/quantization/quant/kernel_launch_method_by_direct/run.sh +++ b/examples/quantization/quant/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/reduce/sum/run.sh b/examples/reduce/sum/run.sh index 796c0fd7..9cbe9abd 100644 --- a/examples/reduce/sum/run.sh +++ b/examples/reduce/sum/run.sh @@ -35,13 +35,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH cmake -DRUN_MODE=${RUN_MODE} -DSOC_VERSION=${SOC_VERSION} -DASCEND_CANN_PACKAGE_PATH=${ASCEND_HOME_DIR} .. diff --git a/examples/select/selectwithbytesmask/kernel_launch_method_by_direct/run.sh b/examples/select/selectwithbytesmask/kernel_launch_method_by_direct/run.sh index ac8d363f..a375bdd1 100644 --- a/examples/select/selectwithbytesmask/kernel_launch_method_by_direct/run.sh +++ b/examples/select/selectwithbytesmask/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/sort/sort/kernel_launch_method_by_direct/run.sh b/examples/sort/sort/kernel_launch_method_by_direct/run.sh index a151082c..66019e23 100644 --- a/examples/sort/sort/kernel_launch_method_by_direct/run.sh +++ b/examples/sort/sort/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH cmake -DRUN_MODE=${RUN_MODE} -DSOC_VERSION=${SOC_VERSION} -DASCEND_CANN_PACKAGE_PATH=${ASCEND_HOME_DIR} .. diff --git a/examples/sort/topk/kernel_launch_method_by_direct/run.sh b/examples/sort/topk/kernel_launch_method_by_direct/run.sh index 529d3641..2d531cc0 100644 --- a/examples/sort/topk/kernel_launch_method_by_direct/run.sh +++ b/examples/sort/topk/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail diff --git a/examples/transpose/confusion_transpose/run.sh b/examples/transpose/confusion_transpose/run.sh index cddce28f..3116ab36 100644 --- a/examples/transpose/confusion_transpose/run.sh +++ b/examples/transpose/confusion_transpose/run.sh @@ -35,13 +35,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH cmake -DRUN_MODE=${RUN_MODE} -DSOC_VERSION=${SOC_VERSION} -DASCEND_CANN_PACKAGE_PATH=${ASCEND_HOME_DIR} .. diff --git a/examples/utils/init_global_memory/kernel_launch_method_by_direct/run.sh b/examples/utils/init_global_memory/kernel_launch_method_by_direct/run.sh index 85d647d1..fa109954 100644 --- a/examples/utils/init_global_memory/kernel_launch_method_by_direct/run.sh +++ b/examples/utils/init_global_memory/kernel_launch_method_by_direct/run.sh @@ -26,13 +26,6 @@ rm -rf build mkdir build cd build -# in case of running op in simulator, use stub so instead -if [ "${RUN_MODE}" = "sim" ]; then - export LD_LIBRARY_PATH=$(echo $LD_LIBRARY_PATH | sed 's/\/.*\/runtime\/lib64://g') - export LD_LIBRARY_PATH=$ASCEND_HOME_DIR/runtime/lib64/stub:$LD_LIBRARY_PATH -fi - -source $ASCEND_HOME_DIR/bin/setenv.bash export LD_LIBRARY_PATH=${ASCEND_HOME_DIR}/tools/simulator/${SOC_VERSION}/lib:$LD_LIBRARY_PATH set -euo pipefail -- Gitee