diff --git a/ads/common/ops/kernels/op_kernel/furthest_point_sampling.cpp b/ads/common/ops/kernels/op_kernel/furthest_point_sampling.cpp index 9abc447bf8007149484a14b67854aa0077b00604..f9fd94bba9e09cb3e83380975d8f3bb359fef813 100644 --- a/ads/common/ops/kernels/op_kernel/furthest_point_sampling.cpp +++ b/ads/common/ops/kernels/op_kernel/furthest_point_sampling.cpp @@ -367,7 +367,7 @@ __aicore__ inline void furthestPointSamplingKernel::ComputePo for (offset = 0, total_num = this->TA->formerNum; total_num > 0; comp_num = dupTime * this->dataNumIn256Bytes, offset = offset + comp_num, total_num = total_num - comp_num) { dupTime = (total_num * sizeof(dataType)) / ALLIGNED_BYTES; - dupTime = (dupTime > MAX_REPEAT_NUM) ? MAX_REPEAT_NUM : dupTime; + dupTime = (dupTime > OP_MAX_REPEAT_NUM) ? OP_MAX_REPEAT_NUM : dupTime; set_flag(PIPE_S, PIPE_V, EVENT_ID3); wait_flag(PIPE_S, PIPE_V, EVENT_ID3); @@ -400,7 +400,7 @@ __aicore__ inline void furthestPointSamplingKernel::ComputePo for (offset = 0, total_num = this->TA->formerNum; total_num > 0; comp_num = dupTime * this->dataNumIn256Bytes, offset = offset + comp_num, total_num = total_num - comp_num) { dupTime = (total_num * sizeof(dataType)) / ALLIGNED_BYTES; - dupTime = (dupTime > MAX_REPEAT_NUM) ? MAX_REPEAT_NUM : dupTime; + dupTime = (dupTime > OP_MAX_REPEAT_NUM) ? OP_MAX_REPEAT_NUM : dupTime; set_flag(PIPE_S, PIPE_V, EVENT_ID3); wait_flag(PIPE_S, PIPE_V, EVENT_ID3); @@ -424,7 +424,7 @@ __aicore__ inline void furthestPointSamplingKernel::ComputeDi for (offset = 0, total_num = this->TA->formerNum; total_num > 0; comp_num = dupTime * this->dataNumIn256Bytes, offset = offset + comp_num, total_num = total_num - comp_num) { dupTime = (total_num * sizeof(dataType)) / ALLIGNED_BYTES; - dupTime = (dupTime > MAX_REPEAT_NUM) ? MAX_REPEAT_NUM : dupTime; + dupTime = (dupTime > OP_MAX_REPEAT_NUM) ? OP_MAX_REPEAT_NUM : dupTime; set_flag(PIPE_S, PIPE_V, EVENT_ID0); wait_flag(PIPE_S, PIPE_V, EVENT_ID0); @@ -452,7 +452,7 @@ __aicore__ inline void furthestPointSamplingKernel::ComputeSa for (offset = 0, total_num = this->TA->formerNum; total_num > 0; comp_num = dupTime * this->dataNumIn256Bytes, offset = offset + comp_num, total_num = total_num - comp_num) { dupTime = (total_num * sizeof(dataType)) / ALLIGNED_BYTES; - dupTime = (dupTime > MAX_REPEAT_NUM) ? MAX_REPEAT_NUM : dupTime; + dupTime = (dupTime > OP_MAX_REPEAT_NUM) ? OP_MAX_REPEAT_NUM : dupTime; set_flag(PIPE_S, PIPE_V, EVENT_ID1); wait_flag(PIPE_S, PIPE_V, EVENT_ID1);