From 3277306462ea24a8823963a95c8d9ba74e090a03 Mon Sep 17 00:00:00 2001 From: anzoola Date: Thu, 17 Apr 2025 15:09:56 +0800 Subject: [PATCH] replace QuePosition --- .../add_custom.cpp | 26 ++++----- .../add_custom.cpp | 58 +++++++++---------- .../VectorAddSingleCore/add_custom.cpp | 6 +- .../add_custom.cpp | 10 ++-- 4 files changed, 50 insertions(+), 50 deletions(-) diff --git a/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddMultiCoreWithTiling/add_custom.cpp b/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddMultiCoreWithTiling/add_custom.cpp index 8e9dc83f0..8b267ea1d 100644 --- a/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddMultiCoreWithTiling/add_custom.cpp +++ b/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddMultiCoreWithTiling/add_custom.cpp @@ -125,11 +125,11 @@ private: private: AscendC::TPipe pipe; - AscendC::TQue inQueueX; - AscendC::TQue inQueueY; - AscendC::TQue outQueueZ; - AscendC::TBuf tmpBuf0; - AscendC::TBuf tmpBuf1; + AscendC::TQue inQueueX; + AscendC::TQue inQueueY; + AscendC::TQue outQueueZ; + AscendC::TBuf tmpBuf0; + AscendC::TBuf tmpBuf1; AscendC::GlobalTensor xGm; AscendC::GlobalTensor yGm; @@ -244,11 +244,11 @@ private: private: AscendC::TPipe pipe; - AscendC::TQue inQueueX; - AscendC::TQue inQueueY; - AscendC::TQue outQueueZ; - AscendC::TBuf tmpBuf0; - AscendC::TBuf tmpBuf1; + AscendC::TQue inQueueX; + AscendC::TQue inQueueY; + AscendC::TQue outQueueZ; + AscendC::TBuf tmpBuf0; + AscendC::TBuf tmpBuf1; AscendC::GlobalTensor xGm; AscendC::GlobalTensor yGm; @@ -353,9 +353,9 @@ private: private: AscendC::TPipe pipe; - AscendC::TQue inQueueX; - AscendC::TQue inQueueY; - AscendC::TQue outQueueZ; + AscendC::TQue inQueueX; + AscendC::TQue inQueueY; + AscendC::TQue outQueueZ; AscendC::GlobalTensor xGm; AscendC::GlobalTensor yGm; diff --git a/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddMultiCoreWithTilingBroadcast/add_custom.cpp b/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddMultiCoreWithTilingBroadcast/add_custom.cpp index 029e3e098..733e162c3 100644 --- a/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddMultiCoreWithTilingBroadcast/add_custom.cpp +++ b/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddMultiCoreWithTilingBroadcast/add_custom.cpp @@ -134,12 +134,12 @@ private: private: AscendC::TPipe pipe; - AscendC::TQue inQueueX; - AscendC::TQue inQueueY; - AscendC::TQue outQueueZ; + AscendC::TQue inQueueX; + AscendC::TQue inQueueY; + AscendC::TQue outQueueZ; - AscendC::TBuf tmpBuf0; - AscendC::TBuf tmpBuf1; + AscendC::TBuf tmpBuf0; + AscendC::TBuf tmpBuf1; AscendC::GlobalTensor xGm; AscendC::GlobalTensor yGm; @@ -260,12 +260,12 @@ private: private: AscendC::TPipe pipe; - AscendC::TQue inQueueX; - AscendC::TQue inQueueY; - AscendC::TQue outQueueZ; + AscendC::TQue inQueueX; + AscendC::TQue inQueueY; + AscendC::TQue outQueueZ; - AscendC::TBuf tmpBuf0; - AscendC::TBuf tmpBuf1; + AscendC::TBuf tmpBuf0; + AscendC::TBuf tmpBuf1; AscendC::GlobalTensor xGm; AscendC::GlobalTensor yGm; @@ -375,9 +375,9 @@ private: private: AscendC::TPipe pipe; - AscendC::TQue inQueueX; - AscendC::TQue inQueueY; - AscendC::TQue outQueueZ; + AscendC::TQue inQueueX; + AscendC::TQue inQueueY; + AscendC::TQue outQueueZ; AscendC::GlobalTensor xGm; AscendC::GlobalTensor yGm; @@ -514,13 +514,13 @@ private: private: AscendC::TPipe pipe; - AscendC::TQue inQueueX; - AscendC::TQue inQueueY; - AscendC::TQue outQueueZ; + AscendC::TQue inQueueX; + AscendC::TQue inQueueY; + AscendC::TQue outQueueZ; - AscendC::TBuf tmpBuf0; - AscendC::TBuf tmpBuf1; - AscendC::TBuf tmpBuf2; + AscendC::TBuf tmpBuf0; + AscendC::TBuf tmpBuf1; + AscendC::TBuf tmpBuf2; AscendC::GlobalTensor xGm; AscendC::GlobalTensor yGm; @@ -656,13 +656,13 @@ private: private: AscendC::TPipe pipe; - AscendC::TQue inQueueX; - AscendC::TQue inQueueY; - AscendC::TQue outQueueZ; + AscendC::TQue inQueueX; + AscendC::TQue inQueueY; + AscendC::TQue outQueueZ; - AscendC::TBuf tmpBuf0; - AscendC::TBuf tmpBuf1; - AscendC::TBuf tmpBuf2; + AscendC::TBuf tmpBuf0; + AscendC::TBuf tmpBuf1; + AscendC::TBuf tmpBuf2; AscendC::GlobalTensor xGm; AscendC::GlobalTensor yGm; @@ -788,11 +788,11 @@ private: private: AscendC::TPipe pipe; - AscendC::TQue inQueueX; - AscendC::TQue inQueueY; - AscendC::TQue outQueueZ; + AscendC::TQue inQueueX; + AscendC::TQue inQueueY; + AscendC::TQue outQueueZ; - AscendC::TBuf tmpBuf2; + AscendC::TBuf tmpBuf2; AscendC::GlobalTensor xGm; AscendC::GlobalTensor yGm; diff --git a/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddSingleCore/add_custom.cpp b/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddSingleCore/add_custom.cpp index 968a4dc16..cb71c8290 100644 --- a/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddSingleCore/add_custom.cpp +++ b/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddSingleCore/add_custom.cpp @@ -64,9 +64,9 @@ private: private: AscendC::TPipe pipe; - AscendC::TQue inQueueX; - AscendC::TQue inQueueY; - AscendC::TQue outQueueZ; + AscendC::TQue inQueueX; + AscendC::TQue inQueueY; + AscendC::TQue outQueueZ; AscendC::GlobalTensor xGm; AscendC::GlobalTensor yGm; diff --git a/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddSingleCoreWithTmpbuf/add_custom.cpp b/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddSingleCoreWithTmpbuf/add_custom.cpp index 948da72bc..2791114fa 100644 --- a/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddSingleCoreWithTmpbuf/add_custom.cpp +++ b/operator/ascendc/0_introduction/21_vectoradd_kernellaunch/VectorAddSingleCoreWithTmpbuf/add_custom.cpp @@ -75,12 +75,12 @@ private: private: AscendC::TPipe pipe; - AscendC::TQue inQueueX; - AscendC::TQue inQueueY; - AscendC::TQue outQueueZ; + AscendC::TQue inQueueX; + AscendC::TQue inQueueY; + AscendC::TQue outQueueZ; - AscendC::TBuf tmpBuf0; - AscendC::TBuf tmpBuf1; + AscendC::TBuf tmpBuf0; + AscendC::TBuf tmpBuf1; AscendC::GlobalTensor xGm; AscendC::GlobalTensor yGm; -- Gitee