https://github.com/halide/Halide
Revision 21f1c84b6f7a9bd59afb0a780c59913df39271c5 authored by Steven Johnson on 25 July 2019, 23:50:17 UTC, committed by Steven Johnson on 25 July 2019, 23:50:17 UTC
This replaces the use of `debug()` in apps/autoscheduler code with its own logger (named `aslog()` for now, short for auto-scheduler-log.)

The motivation here is to allow supressing of the autoscheduler log output without also having to supress normal codegen output.

aslog() has the same semantics as debug(), except that it preferentially tries to read from HL_DEBUG_AUTOSCHEDULE for a verbosity; if that isn't set, it falls back to the same value as HL_DEBUG_CODEGEN. (Thus, the autoschedule output can be suppressed by HL_DEBUG_AUTOSCHEDULE=-1.)

Note also that all use of std::cerr that was for anything other than a fatal error was converted to aslog(0).

And yes: "aslog" isn't a very good name; I'm happy to replace it with literally anything you'd like before submitting this :-)
1 parent 781093a
History
Tip revision: 21f1c84b6f7a9bd59afb0a780c59913df39271c5 authored by Steven Johnson on 25 July 2019, 23:50:17 UTC
Give apps/autoscheduler its own logging function
Tip revision: 21f1c84
File Mode Size
apps
python_bindings
src
test
tools
tutorial
util
.clang-format -rw-r--r-- 1.4 KB
.gitattributes -rw-r--r-- 342 bytes
.gitignore -rw-r--r-- 1.0 KB
.gitmodules -rw-r--r-- 0 bytes
.travis.yml -rw-r--r-- 1.8 KB
CMakeLists.txt -rw-r--r-- 17.2 KB
Doxyfile -rw-r--r-- 103.6 KB
Doxyfile.in -rw-r--r-- 64.3 KB
LICENSE.txt -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 89.8 KB
README.md -rw-r--r-- 15.9 KB
README_cmake.md -rw-r--r-- 9.9 KB
README_rungen.md -rw-r--r-- 11.5 KB
README_webassembly.md -rw-r--r-- 10.9 KB
halide.cmake -rw-r--r-- 30.1 KB

README.md

back to top