5,321
edits
(→Types) |
(→C) |
||
Line 13: | Line 13: | ||
See https://www.eriksmistad.no/getting-started-with-opencl-and-gpu-computing/ | See https://www.eriksmistad.no/getting-started-with-opencl-and-gpu-computing/ | ||
{{hidden | C example | | |||
vector_add_kernel.cl | |||
<syntaxhighlight lang="c"> | <syntaxhighlight lang="c"> | ||
__kernel void vector_add(__global const int *A, __global const int *B, __global int *C) { | __kernel void vector_add(__global const int *A, __global const int *B, __global int *C) { | ||
Line 23: | Line 25: | ||
} | } | ||
</syntaxhighlight> | </syntaxhighlight> | ||
<syntaxhighlight lang="c"> | <syntaxhighlight lang="c"> | ||
#include <stdio.h> | #include <stdio.h> |