https://gitcode.com/cann/cann-learning-hub/blob/master/tutorials/ascendc_operator_development/04_matmul_basic/04.03_matrix_multiplication_operator_development_with_high_level_api.ipynb (cell 44)
cell 44 内容仅有一行: %%writefile Sources/04.03/custom_op/op_host/matmul_custom.cpp (下面没有任何文件内容)
问题概述:04.03「课后实践」中 host 侧的 %%writefile cell(cell 44)只有一行文件名,没有任何文件内容,运行该 cell 只会写出一个空的 matmul_custom.cpp,后续编译必然失败。
具体分析:
cell 44 的内容只有 %%writefile Sources/04.03/custom_op/op_host/matmul_custom.cpp 一行,下面完全为空;练习说明要求「参照课程中 MatmulCustom 的 host 侧实现,修改如下代码」,但「如下代码」并不存在。
相邻的 tiling.h cell 与 kernel 侧 cell 都给出了可修改的代码骨架,唯独 host 侧为空,前后不一致;与其他章节「留空待补 + 注释提示」的做法也不一致。
学员按顺序运行该 cell 会覆盖/写出空的 host 源文件,编译时报错,且没有任何提示说明应该从哪里获取参考实现。
建议:为 cell 44 补上带 TODO 注释的 host 侧代码骨架(与 tiling/kernel cell 保持一致),或在 markdown 中明确指向 answer 目录下的参考实现文件。
/assign @Glenn_118
一、文档链接 (必填)
https://gitcode.com/cann/cann-learning-hub/blob/master/tutorials/ascendc_operator_development/04_matmul_basic/04.03_matrix_multiplication_operator_development_with_high_level_api.ipynb (cell 44)
二、问题文档片段 (必填)
cell 44 内容仅有一行:
%%writefile Sources/04.03/custom_op/op_host/matmul_custom.cpp
(下面没有任何文件内容)
三、存在的问题 (选填)
问题概述:04.03「课后实践」中 host 侧的 %%writefile cell(cell 44)只有一行文件名,没有任何文件内容,运行该 cell 只会写出一个空的 matmul_custom.cpp,后续编译必然失败。
具体分析:
cell 44 的内容只有 %%writefile Sources/04.03/custom_op/op_host/matmul_custom.cpp 一行,下面完全为空;练习说明要求「参照课程中 MatmulCustom 的 host 侧实现,修改如下代码」,但「如下代码」并不存在。
相邻的 tiling.h cell 与 kernel 侧 cell 都给出了可修改的代码骨架,唯独 host 侧为空,前后不一致;与其他章节「留空待补 + 注释提示」的做法也不一致。
学员按顺序运行该 cell 会覆盖/写出空的 host 源文件,编译时报错,且没有任何提示说明应该从哪里获取参考实现。
建议:为 cell 44 补上带 TODO 注释的 host 侧代码骨架(与 tiling/kernel cell 保持一致),或在 markdown 中明确指向 answer 目录下的参考实现文件。