These are chat archives for halide/Halide
%name% -g %name% -f %name% -x .s=.s.txt,.cpp=.generated.cpp target=host-profile-no_runtime auto_schedule=false
halide_profiler_set_current_func()and others are inside generated lib, but nothing happens at program run stage. If I trying adding
target=profileto the generator which creates
halide_rt_host.libtoo, this will lead to linking errors.
I was able to finally find a solution by myself. I removed
no_runtime from the generator line. And added the following code to the application:
static void *const user_context = nullptr; halide_profiler_report(user_context);
If this is a standard solution, then maybe it's worth adding this to tutorials.