我尝试将以下行添加到camera_pipe_generator.cpp的底部, 以输出 Halide 如何编译成 .html 文件,但我不确定我做错了什么:
processed.compile_to_lowered_stmt("camera_pipe_debugging_trial.html", {}, HTML);
Run Code Online (Sandbox Code Playgroud)
我认为我的第二个论点是错误的,但是我应该在这里传递什么?
或者有什么不同的方式让我可视化时间表?这篇文章似乎暗示了 Halide 的可视化工具的存在。有没有关于如何使用它的资源?
谢谢你!
编辑:我尝试运行命令
../../tools/gengen.sh -c c++ -lcurses -l ../../lib/libHalide.a -o tmp/ -e html -s camera_pipe_generator.cpp target=host
Run Code Online (Sandbox Code Playgroud)
但是,这导致了以下错误:
Undefined symbols for architecture x86_64:
"_del_curterm", referenced from:
llvm::sys::Process::FileDescriptorHasColors(int) in libHalide.a(llvm_460_Process.cpp.o)
"_set_curterm", referenced from:
llvm::sys::Process::FileDescriptorHasColors(int) in libHalide.a(llvm_460_Process.cpp.o)
"_setupterm", referenced from:
llvm::sys::Process::FileDescriptorHasColors(int) in libHalide.a(llvm_460_Process.cpp.o)
"_tigetnum", referenced from:
llvm::sys::Process::FileDescriptorHasColors(int) in libHalide.a(llvm_460_Process.cpp.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to …Run Code Online (Sandbox Code Playgroud) halide ×1