File: vecadd.cl

package info (click to toggle)
pocl 6.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,320 kB
  • sloc: lisp: 149,513; ansic: 103,778; cpp: 54,947; python: 1,513; sh: 949; ruby: 255; pascal: 226; tcl: 180; makefile: 175; java: 72; xml: 49
file content (8 lines) | stat: -rw-r--r-- 153 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
kernel void
vecadd (__global const float *a,
	__global const float *b,
	__global float *c)
{
  int gid = get_global_id(0);
  c[gid] = a[gid] + b[gid];
}