These are chat archives for halide/Halide

30th
Apr 2018
Andrew Adams
@abadams
Apr 30 19:54
So at -O3 the metaprogrammed_simplifier branch reduces stack frame sizes by ~10x (several hundred bytes instead of several thousand). But at -g it inflates stack frame sizes absurdly (several hundred thousand bytes vs at most 10 thousand).
Not sure what to do about this
Steven Johnson
@steven-johnson
Apr 30 19:54

pragma disable -g stuff for that file?

gah
# pragma
markdown nailed me
Andrew Adams
@abadams
Apr 30 19:55
Do you know if you can detect -g in the preprocessor?
Steven Johnson
@steven-johnson
Apr 30 19:55
don’t think so
would be surprised
but
who knows, maybe
Andrew Adams
@abadams
Apr 30 19:59
"-g -O3" produces sane stack sizes
So I guess I just need to force -O3 for that file
Steven Johnson
@steven-johnson
Apr 30 19:59
Does it have to be -O3? (vs -O, -O1, etc)
Andrew Adams
@abadams
Apr 30 20:01
O1 appears to be sufficient
Andrew Adams
@abadams
Apr 30 20:08
I may just have to force it in the build system
Zalman Stern
@zvookin
Apr 30 20:08
Yes, that is likely.
Steven Johnson
@steven-johnson
Apr 30 20:08
…that might be hard to do in Blaze, let me think
Andrew Adams
@abadams
Apr 30 20:09
per-file custom cxx_flags?
Zalman Stern
@zvookin
Apr 30 20:09
I thought you could do per-file copts
Steven Johnson
@steven-johnson
Apr 30 20:09
hmm… yeah, we could probably do that. nevermind