算子调试前,需先启用调试-g -O0编译选项重新编译,使算子二进制带上调试信息,具体方法可参考基于样例工程编译算子。
仅支持导入单个算子的调试信息,不支持导入多个算子的调试信息。
export LAUNCH_KERNEL_PATH={path_to_kernel}/my_kernel.o //{path_to_kernel}为kernel侧.o文件所在目录
(msdebug) image add {path_to_kernel}/my_kernel.o //{path_to_kernel}为kernel侧.o文件所在目录
(msdebug) image load -f {path_to_kernel}/my_kernel.o -s 0