// Perform a zero-copy of from device to host #if ZEROCOPY == 1 printf("Copying back from device_ to \n"); void* bones_pointer_to_ = clEnqueueMapBuffer(bones_queue,device_,CL_TRUE,CL_MAP_READ,0,*sizeof(),0,NULL,NULL,&bones_errors); error_check(bones_errors); clEnqueueUnmapMemObject(bones_queue,device_,bones_pointer_to_,0,NULL,NULL); #elif ZEROCOPY == 0 bones_errors = clEnqueueReadBuffer(bones_queue,device_,CL_TRUE,(0)*sizeof(),*sizeof(),+0,0,NULL,NULL); error_check(bones_errors); #endif clFinish(bones_queue);