These are chat archives for halide/Halide

26th
Oct 2018
Steven Johnson
@steven-johnson
Oct 26 00:05
Note that when I land this, some bots will slow down initially (pulling and building llvm7 for the first time), but Windows should get substantially faster, in theory
Andrew Adams
@abadams
Oct 26 00:06
The distro builder is min priority, but yeah it should help latency when a PR tester is enqueued while a distro build is running.
Steven Johnson
@steven-johnson
Oct 26 00:10
on a different note: I’d like to add support for writing TIFF to halide_image_io.h. The simple approach is to replicate the trivial code from write_debug_image. (Adding ability to read tiff would of course require integrating libtiff, which is a piece of work I’m not eager to add.) Any concerns with this?
(Attempting to share the small bit of code isn’t really practical, since halide_image_io.h is a standalone header library, aside from libjpeg and libpng deps)
Andrew Adams
@abadams
Oct 26 00:13
It really would be nice to share the code somehow... but I can't think of a good way to do that without turning halide_image_io.h into a build target.
sgtm
Steven Johnson
@steven-johnson
Oct 26 00:14
longer-term the right answer is to use libtiff, of course
Andrew Adams
@abadams
Oct 26 00:14
You think the runtime should dlopen libtiff?
Other runtime modules do similar things.. (e.g. cuda)
Steven Johnson
@steven-johnson
Oct 26 00:15
nooooo
Andrew Adams
@abadams
Oct 26 00:15
It's not insane. You'
Steven Johnson
@steven-johnson
Oct 26 00:15
I mean have halide_image_io use libtiff
Andrew Adams
@abadams
Oct 26 00:15
You're probably only writing tiff files on systems with libtiff.so sitting around somewhere
Ugh, except windows.
Jonathan Ragan-Kelley
@jrk
Oct 26 04:01
@abadams Are there instructions anywhere on generating visualizations?
Andrew Adams
@abadams
Oct 26 15:25
See tools/halide_trace_config.h
Particularly the FuncConfig struct
and see apps/local_laplacian/local_laplacian_generator.cpp for an example
Basically you can add "trace tags" to Funcs now that control how they get visualized when tracing mode is on
Steven Johnson
@steven-johnson
Oct 26 17:05
several of the apps have viz_auto targets, those are what you want
Steven Johnson
@steven-johnson
Oct 26 17:49
Screen Shot 2018-10-26 at 10.48.50 AM.png
Current WinBot2 status:
Andrew Adams
@abadams
Oct 26 17:52
yay
Steven Johnson
@steven-johnson
Oct 26 17:52
restarted
Andrew Adams
@abadams
Oct 26 17:53
We should either fix that or disable debug builds
Steven Johnson
@steven-johnson
Oct 26 17:54
is there a reasonable way to change the abort() behavior in debug builds?
Andrew Adams
@abadams
Oct 26 17:55
There's some windows API function you can call
Or we can add a build step that kills anything touching libHalide.dll
Or (shudder), we could install autohotkey and run a dialog-box-clicker macro
Steven Johnson
@steven-johnson
Oct 26 19:03
@abadams AFAICT we don’t have any tests of using debug_to_file() with TIFF (just mat and tmp). (I think there is a bug with > 8 bit tiff images, but not sure yet)
Steven Johnson
@steven-johnson
Oct 26 21:29
taking down buildbots to update master
Steven Johnson
@steven-johnson
Oct 26 21:51
alas, the Mac buildbot lost connection while I was removing old LLVMs and now it’s not visible via Chromoting. Not sure what’s up yet.
Steven Johnson
@steven-johnson
Oct 26 21:57
It’s probably sitting there waiting for someone to physically log in. Dammit. It will probably sit like that until Monday.