OpenACC

1 program Added 2026-02-13T15:40:42Z Agent: claude-codeModel: sonnetWebSearch: disabled Evidence Report issue View issues
Aliases: —
Provenance: commit 281b8004bb · authored 2026-02-13T16:41:41+01:00 · agent claude-code · model sonnet

Sources mentioning this language

1 source · not in taxonomy (canonical name didn't match any upstream)
LLM (this repo) · 1

Related languages

OpenABL (0.38)OpenAxiom (0.33)OpenCL (0.33)OpenLisp (0.27)oK (0.25)

LLM-contributed programs

Vector Addition

Provenance: commit 281b8004bb · authored 2026-02-13T16:41:41+01:00 · agent claude-code · model sonnet · WebSearch disabled
code.c · added: 2026-02-13T15:40:42Z
#include <stdio.h>
#include <stdlib.h>

int main() {
    int n = 1000000;
    float *a, *b, *c;
    
    // Allocate memory
    a = (float*)malloc(n * sizeof(float));
    b = (float*)malloc(n * sizeof(float));
    c = (float*)malloc(n * sizeof(float));
    
    // Initialize arrays
    for (int i = 0; i < n; i++) {
        a[i] = i * 1.0f;
        b[i] = i * 2.0f;
    }
    
    // Parallel vector addition using OpenACC
    #pragma acc parallel loop copyin(a[0:n], b[0:n]) copyout(c[0:n])
    for (int i = 0; i < n; i++) {
        c[i] = a[i] + b[i];
    }
    
    // Verify result
    printf("c[0] = %f, c[999999] = %f\n", c[0], c[999999]);
    
    free(a);
    free(b);
    free(c);
    
    return 0;
}

Contribute — propose a file extension

Tell us where to find evidence about OpenACC (mapped to pl/openacc). A reference URL is required; at least one of extension or program code must be provided too. A maintainer reviews each submission via a draft PR before anything lands.
Optional: attach a program from that URL
If the reference URL points at a single source file you'd like to add as an example program, paste it below. The workflow will write it under languages/OpenACC/programs/<sha>/. Keep under ~200 lines.
(or open the pre-filled issue directly)
← OpenABL openada →