summaryrefslogtreecommitdiff
path: root/generic/lib/workitem/get_global_id.cl
blob: fdd83d2953d45b31c5db2a6bfa650673fa6e0877 (plain)
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);
}