File: increment.cl

package info (click to toggle)
oclgrind 21.10-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 3,216 kB
  • sloc: cpp: 21,369; ansic: 6,395; lisp: 1,122; python: 124; makefile: 19
file content (5 lines) | stat: -rw-r--r-- 98 bytes parent folder | download | duplicates (4)
1
2
3
4
5
kernel void increment(global int *data)
{
  int i = get_global_id(0);
  data[i]  = data[i] + 1;
}