已合并
修复cross 在9.0.0.beta2上的编译错误 #3327
sakuraqqz创建于 6月15日
修复cross 在9.0.0.beta2上的编译错误 #3327
已合并
共 1 个文件变更+3-3
| @@ -62,9 +62,9 @@ public: | |||
| 62 | 62 | ||
| 63 | __aicore__ inline void Process() | 63 | __aicore__ inline void Process() |
| 64 | { | 64 | { |
| 65 | - int32_t block_idx = GetBlockIdx(); | 65 | + int32_t blockIdx = GetBlockIdx(); |
| 66 | - int32_t startIdx = (block_idx < formerCore_) ? (vectorsPerCore_+1)*block_idx : formerCore_ + vectorsPerCore_*block_idx; | 66 | + int32_t startIdx = (blockIdx < formerCore_) ? (vectorsPerCore_+1)*blockIdx : formerCore_ + vectorsPerCore_*blockIdx; |
| 67 | - int32_t count = (block_idx < formerCore_) ? (vectorsPerCore_+1) : vectorsPerCore_; | 67 | + int32_t count = (blockIdx < formerCore_) ? (vectorsPerCore_+1) : vectorsPerCore_; |
| 68 | 68 | ||
| 69 | if (count <= 0) return; | 69 | if (count <= 0) return; |
| 70 | 70 | ||