opencv_contrib icon indicating copy to clipboard operation
opencv_contrib copied to clipboard

Enable AscendC kernel operator

Open hipudding opened this issue 1 year ago • 1 comments

AscendC is an extended syntax for the C/C++ language that can be used to write operators that run on Ascend NPU.

This commit introduce an operator(threshold) written in AscendC. Others can refer to this to implement other operators.

AscendC can implement efficient fusion operators according to needs, in this case, threshold execution speed increased by nearly 4 times.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • [X] I agree to contribute to the project under Apache 2 License.
  • [X] To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • [X] The PR is proposed to the proper branch
  • N/A There is a reference to the original bug report and related work
  • [X] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name.
  • [X] The feature is well documented and sample code can be built with the project CMake

hipudding avatar Dec 28 '23 08:12 hipudding

This PR needs cann 7.0.0.alpha003 or above.
https://github.com/opencv-infrastructure/opencv-gha-dockerfile/pull/28 https://github.com/opencv/ci-gha-workflow/pull/132

hipudding avatar Dec 28 '23 08:12 hipudding

@vpisarev Please help me add category: cann tag to run test cases, Thanks.

hipudding avatar Feb 29 '24 01:02 hipudding