From 6821fc6ef84fb8ab015aa61477c72e273e012fde Mon Sep 17 00:00:00 2001 From: mingling Date: Wed, 30 Jul 2025 10:48:31 +0800 Subject: [PATCH] fix matmul readme format --- .../20_mmad_kernellaunch/MmadBiasInvocation/README.md | 2 +- .../20_mmad_kernellaunch/MmadInvocation/README.md | 2 +- .../22_baremix_kernellaunch/BareMixInvocation/README.md | 6 ++++-- .../22_baremix_kernellaunch/BareMixInvocation/run.sh | 3 +-- operator/ascendc/0_introduction/README.md | 2 +- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/operator/ascendc/0_introduction/20_mmad_kernellaunch/MmadBiasInvocation/README.md b/operator/ascendc/0_introduction/20_mmad_kernellaunch/MmadBiasInvocation/README.md index 2af371234..d20b34a82 100644 --- a/operator/ascendc/0_introduction/20_mmad_kernellaunch/MmadBiasInvocation/README.md +++ b/operator/ascendc/0_introduction/20_mmad_kernellaunch/MmadBiasInvocation/README.md @@ -57,7 +57,7 @@ - 打开样例目录 以命令行方式下载样例代码,master分支为例。 ```bash - cd ${git_clone_path}/samples/operator/ascendc\0_introduction\20_mmad_kernellaunch/MmadInvocationNeo + cd ${git_clone_path}/samples/operator/ascendc/0_introduction/20_mmad_kernellaunch/MmadInvocationNeo ``` - 配置环境变量 diff --git a/operator/ascendc/0_introduction/20_mmad_kernellaunch/MmadInvocation/README.md b/operator/ascendc/0_introduction/20_mmad_kernellaunch/MmadInvocation/README.md index 7bb83671c..eda5f87ad 100644 --- a/operator/ascendc/0_introduction/20_mmad_kernellaunch/MmadInvocation/README.md +++ b/operator/ascendc/0_introduction/20_mmad_kernellaunch/MmadInvocation/README.md @@ -57,7 +57,7 @@ - 打开样例目录 以命令行方式下载样例代码,master分支为例。 ```bash - cd ${git_clone_path}/samples/operator/ascendc\0_introduction\20_mmad_kernellaunch/MmadInvocationNeo + cd ${git_clone_path}/samples/operator/ascendc/0_introduction/20_mmad_kernellaunch/MmadInvocationNeo ``` - 配置环境变量 diff --git a/operator/ascendc/0_introduction/22_baremix_kernellaunch/BareMixInvocation/README.md b/operator/ascendc/0_introduction/22_baremix_kernellaunch/BareMixInvocation/README.md index d61d60171..ffb9e0f4b 100644 --- a/operator/ascendc/0_introduction/22_baremix_kernellaunch/BareMixInvocation/README.md +++ b/operator/ascendc/0_introduction/22_baremix_kernellaunch/BareMixInvocation/README.md @@ -53,11 +53,13 @@ KERNEL_TASK_TYPE_DEFAULT(KERNEL_TYPE_MIX_AIC_1_2); ... if ASCEND_IS_AIC { - AscendC::CrossCoreSetFlag(flagId); + // AIC核进行Matmul计算 + // AIC核完成计算后,通过AscendC::CrossCoreSetFlag(flagId)发送同步flag } ... if ASCEND_IS_AIV { - AscendC::CrossCoreWaitFlag(flagId); + // AIV核通过AscendC::CrossCoreWaitFlag(flagId)接收同步flag + // AIV核进行LeakyRelu计算 } ``` diff --git a/operator/ascendc/0_introduction/22_baremix_kernellaunch/BareMixInvocation/run.sh b/operator/ascendc/0_introduction/22_baremix_kernellaunch/BareMixInvocation/run.sh index dbca0e151..435307aaa 100644 --- a/operator/ascendc/0_introduction/22_baremix_kernellaunch/BareMixInvocation/run.sh +++ b/operator/ascendc/0_introduction/22_baremix_kernellaunch/BareMixInvocation/run.sh @@ -11,7 +11,6 @@ SHORT=r:,v:,i:,b:,p:, LONG=run-mode:,soc-version:,install-path:,build-type:,install-prefix:, OPTS=$(getopt -a --options $SHORT --longoptions $LONG -- "$@") eval set -- "$OPTS" -SOC_VERSION="Ascend310P3" while :; do case "$1" in @@ -52,7 +51,7 @@ if [[ " $RUN_MODE_LIST " != *" $RUN_MODE "* ]]; then exit -1 fi -VERSION_LIST="Ascend310P1 Ascend310P3 Ascend910B1 Ascend910B2 Ascend910B3 Ascend910B4" +VERSION_LIST="Ascend910B1 Ascend910B2 Ascend910B3 Ascend910B4" if [[ " $VERSION_LIST " != *" $SOC_VERSION "* ]]; then echo "ERROR: SOC_VERSION should be in [$VERSION_LIST]" exit -1 diff --git a/operator/ascendc/0_introduction/README.md b/operator/ascendc/0_introduction/README.md index 7a4206d12..2f95f076d 100644 --- a/operator/ascendc/0_introduction/README.md +++ b/operator/ascendc/0_introduction/README.md @@ -70,5 +70,5 @@ | 2024/11/11 | 样例目录调整 | | 2025/01/06 | 新增21_vectoradd_kernellaunch样例 | | 2025/07/22 | 新增8_library_frameworklaunch样例 | -| 2025/7/23 | 新增22_baremix_kernellaunch | +| 2025/7/28 | 新增22_baremix_kernellaunch | -- Gitee