Revision 8efaaed90344d9c6776467dbc601f89396d9f3cb authored by Volodymyr Kysenko on 18 January 2023, 01:19:50 UTC, committed by GitHub on 18 January 2023, 01:19:50 UTC
1 parent 104f3d1
Raw File
Debug.cpp
#include "Debug.h"
#include "Util.h"

namespace Halide {
namespace Internal {

int debug::debug_level() {
    static int cached_debug_level = ([]() -> int {
        std::string lvl = get_env_variable("HL_DEBUG_CODEGEN");
        return !lvl.empty() ? atoi(lvl.c_str()) : 0;
    })();
    return cached_debug_level;
}

}  // namespace Internal
}  // namespace Halide
back to top