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
thread_id_outside_block_id.cpp
#include "Halide.h"
#include <stdio.h>
using namespace Halide;
int main(int argc, char **argv) {
Target t = get_jit_target_from_environment();
t.set_feature(Target::CUDA);
Func f;
Var x;
f(x) = x;
Var xo, xi;
f.gpu_tile(x, xo, xi, 16).reorder(xo, xi);
f.compile_jit(t);
Buffer<int> result = f.realize(16);
printf("Success!\n");
return 0;
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...