<commit_before>#include <stdio.h>
#include <Halide.h>

using namespace Halide;

int main(int argc, char **argv) {
    Var x, y;
    Var xo, xi, yo, yi;

    Func f, g;

    printf("Defining function...\n");

    f(x, y) = cast<float>(x);
    g(x, y) = f(x+1, y) + f(x-1, y);

    Target target = get_jit_target_from_environment();
    // shared memory not currently working in OpenCL
    if (target.features & Target::CUDA) {
        Var xi, yi;
        g.gpu_tile(x, y, 8, 8, GPU_CUDA);
        f.compute_at(g, Var("blockidx")).gpu_threads(x, y, GPU_CUDA);
    }

    printf("Realizing function...\n");

    Image<float> im = g.realize(32, 32, target);

    for (int i = 0; i < 32; i++) {<commit_msg>Turned on shared memory test for all GPU targets<commit_after>#include <stdio.h>
#include <Halide.h>

using namespace Halide;

int main(int argc, char **argv) {
    Var x, y;
    Var xo, xi, yo, yi;

    Func f, g;

    printf("Defining function...\n");

    f(x, y) = cast<float>(x);
    g(x, y) = f(x+1, y) + f(x-1, y);

    Target target = get_jit_target_from_environment();
    if (target.has_gpu_feature()) {
        Var xi, yi;
        g.gpu_tile(x, y, 8, 8);
        f.compute_at(g, Var("blockidx")).gpu_threads(x, y);
    }

    printf("Realizing function...\n");

    Image<float> im = g.realize(32, 32, target);

    for (int i = 0; i < 32; i++) {
{'fraction_non_alphanumeric': 0.17746686303387335, 'fraction_numerical': 0.016200294550810016, 'mean_word_length': 2.7029972752043596, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2730934', 'n_tokens_mistral': 568, 'n_tokens_neox': 529, 'n_words': 144}