已合并
[Bugfix][build] Skip TIK ops when msopgen TBE template is missing #641
yjy_ac创建于 9月17日
[Bugfix][build] Skip TIK ops when msopgen TBE template is missing #641
已合并
共 1 个文件变更+8-0
| @@ -117,6 +117,14 @@ function build_tik_ops(){ | |||
| 117 | return 0 | 117 | return 0 |
| 118 | fi | 118 | fi |
| 119 | 119 | ||
| 120 | + # msopgen (default -lan py) copies this TBE skeleton; ascendc/ and tools/ascend_project are not substitutes. | ||
| 121 | + tik_proj_tmpl="${local_toolkit}/tools/op_project_templates/op_project_tmpl" | ||
| 122 | + if [ ! -d "${tik_proj_tmpl}" ]; then | ||
| 123 | + echo "WARNING: TIK/TBE project template not found: ${tik_proj_tmpl}" | ||
| 124 | + echo " Skipping build_tik_ops. msopgen gen requires this directory." | ||
| 125 | + return 0 | ||
| 126 | + fi | ||
| 127 | + | ||
| 120 | ori_path=${PWD} | 128 | ori_path=${PWD} |
| 121 | create_empty_custom_project | 129 | create_empty_custom_project |
| 122 | release_framework_onnx | 130 | release_framework_onnx |