.cce File Generation

You can learn about the data movement process and buffer splitting implemented at the bottom layer to optimize the operator implementation by analyzing the .cce file of the operator.

In normal cases, the operator binary file (.o) and operator description file (.json) are generated upon operator execution. To also generate a .cce file, edit the Ascend-CANN-Toolkit installation directory/ascend-toolkit/latest/compiler/python/site-packages/te/platform/cce_build.py file before operator running.

vi cce_build.py

Set save_temp_cce_file to True.

save_temp_cce_file=True

After the operator is executed, a .cce file is generated in the same directory of the operator binary file (.o) and operator description file (.json).