// Start of the kernel __kernel void bones_kernel__0(, ) { const int bones_global_id = get_global_id(0); if (bones_global_id < ()) { // Calculate the global ID(s) based on the thread id // Start the computation } }