Function arguments

Discussion created by Mikey on Feb 27, 2010
Latest reply on Feb 28, 2010 by nou

Hi. Can I somehow declare a function that takes first argument as global or as private? For example:

kernel void k1(global read_only uint *string, constant read_only uint *offset) {

size_t gid = get_global_id(0);

f(string + offset[gid]);



And another kernel:

kernel void k2() {

uint string[5];

// fill