Skip to content

Single-Stepping through a generator library #7996

Answered by abadams
icebeing asked this question in Q&A
Discussion options

You must be logged in to vote

No, Halide isn't an imperative language, so there's no good correspondence between the lines of code that define your Funcs and the steps taken at runtime. Something that might achieve your aims is the -trace_all Halide target flag, which will print out everything Halide does. If you're getting a crash, the -debug target flag is also useful for verifying your input and output buffers are what you expect.

Another option is to compile Halide to c++ with -e c_source, compile and link against that, and single-step through that code instead. Compiling Halide to C++ typically produces code with worse performance than compiling Halide directly to an object file, so I'd only use it for debugging.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@icebeing
Comment options

Answer selected by icebeing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants