Examples from the OpenCL cookbook written by Dhruba Bandopadhyay.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

11 lines
190 B

__kernel void ndrange_parallelism () {
int i = get_global_id(0);
int j = get_global_id(1);
int k = get_global_id(2);
printf("GPU %d,%d,%d\n", i, j, k);
}
// vim: set ft=c ts=4 sw=4: