Revision a0fc7fafeee3a6678887d8c8e86c47def4572526 authored by Alexander Root on 04 February 2021, 01:13:53 UTC, committed by GitHub on 04 February 2021, 01:13:53 UTC
* add fixes to overflow analysis in bounds inference Co-authored-by: Steven Johnson <srj@google.com>
1 parent dadbcbf
reduction_bounds.cpp
#include "Halide.h"
#include <stdio.h>
using namespace Halide;
int main(int argc, char **argv) {
Func f("f"), g("g");
Var x("x");
RDom r(0, 100, "r");
f(x) = x;
g(x) = 0;
g(x) = f(g(x - 1)) + r;
f.compute_at(g, r.x);
// Use of f is unbounded in g.
g.realize(100);
printf("Success!\n");
return 0;
}
Computing file changes ...