Revision 00ae979a5037dbfaa339afb0510353daa27c87fc authored by Steven Johnson on 20 October 2020, 16:16:20 UTC, committed by Steven Johnson on 20 October 2020, 16:16:20 UTC
2 parent s 85f143c + a2934d4
Raw File
unbounded_output.cpp
#include "Halide.h"
#include <stdio.h>

using namespace Halide;

int main(int argc, char **argv) {
    Func f;
    Var x, y;

    ImageParam in(Float(32), 2);
    ImageParam x_coord(Int(32), 2);
    ImageParam y_coord(Int(32), 2);

    f(x, y) = 0.0f;
    RDom r(0, 100, 0, 100);
    f(x_coord(r.x, r.y), y_coord(r.x, r.y)) += in(r.x, r.y);

    f.compile_jit();

    printf("Success!\n");
    return 0;
}
back to top