File: program_scope_constant_array.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 (7 lines) | stat: -rw-r--r-- 156 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
constant int data[4] = {7, 42, 0, -1};

kernel void program_scope_constant_array(global int *output)
{
  int i = get_global_id(0);
  output[i] = data[i];
}