Skip to content

Halide schedule have undef before code generation which should have been eliminated  #7786

@TH3CHARLie

Description

@TH3CHARLie

Schedule that produces this internal error:

    Func input("input");
    Func blur_x("blur_x");
    Func blur_y("blur_y");
    Var x("x"), y("y"), xo("xo"), xi("xi"), xio("xio"), xii("xii"), xiiyif("xiiyif"), yo("yo"), yi("yi");
    input(x, y) = x + y;
    blur_x(x, y) = (input(x - 1, y) + input(x, y) + input(x + 1, y)) / 3;
    blur_y(x, y) = (blur_x(x, y - 1) + blur_x(x, y) + blur_x(x, y + 1)) / 3;
    blur_y.split(x, xo, xi, 2, TailStrategy::Predicate).split(xi, xio, xii, 4, TailStrategy::Auto).vectorize(xii).split(y, yo, yi, 8, TailStrategy::PredicateStores).fuse(xii, yi, xiiyif);
    blur_x.split(y, yo, yi, 1, TailStrategy::RoundUp).split(x, xo, xi, 1, TailStrategy::RoundUp).compute_root();
    Pipeline p({blur_y});
    Buffer<int> buf = p.realize({width, height});

Compile this generates:

Error: undef not eliminated before code generation. Please report this as a Halide bug.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions