算子调试前,需先启用调试-g -O0编译选项重新编译,使算子二进制带上调试信息,具体方法可参考基于样例工程编译算子。
多算子场景时,仅支持导入指定单算子的调试信息,不支持导入多算子的调试信息,且仅支持对指定单算子的.o文件进行调试。
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