Revision 4abb1898dd808727c46e4691e2ccb466f08004e7 authored by Steven Johnson on 19 August 2020, 18:31:01 UTC, committed by Steven Johnson on 19 August 2020, 18:31:01 UTC
define_after_realize.cpp
#include "Halide.h"
#include <stdio.h>
using namespace Halide;
int main(int argc, char **argv) {
Func f, g;
Var x;
f(x) = x;
Buffer<int> im = f.realize(10);
// Now try to add an update definition to f
f(x) += 1;
printf("Success!\n");
return 0;
}
Computing file changes ...