File: get_global_id.cl

package info (click to toggle)
libclc 0.2.0%2Bgit20180917-3
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,552 kB
  • sloc: lisp: 13,186; ansic: 2,418; python: 647; cpp: 93; sh: 29; makefile: 10; pascal: 7
file content (5 lines) | stat: -rw-r--r-- 161 bytes parent folder | download | duplicates (7)
1
2
3
4
5
#include <clc/clc.h>

_CLC_DEF size_t get_global_id(uint dim) {
  return get_group_id(dim) * get_local_size(dim) + get_local_id(dim) + get_global_offset(dim);
}