Background
We add host compilation option by coping toolkit ascend.cmake. This is not flexible for updating CANN version. #132
Target
To make it easier to adapt to newer versions of CANN and reduce the adaptation effort.
Solution
Automatically generate the operator's CMakeList.txt, add code in setup.py to copy and modify it from the corresponding location.
Potential issues
This could result in the operator repository failing to compile independently.