Sha256: eddedb7e079d53927ce11a352ba9976f0ecc4bd20f31a2853cea227f7ac7f583
Contents?: true
Size: 677 Bytes
Versions: 2
Compression:
Stored size: 677 Bytes
Contents
// Perform a zero-copy of <array> from device to host #if ZEROCOPY == 1 printf("Copying back from device_<array> to <array>\n"); void* bones_pointer_to_<array> = clEnqueueMapBuffer(bones_queue,device_<array>,CL_TRUE,CL_MAP_READ,0,<variable_dimensions>*sizeof(<type>),0,NULL,NULL,&bones_errors); error_check(bones_errors); clEnqueueUnmapMemObject(bones_queue,device_<array>,bones_pointer_to_<array>,0,NULL,NULL); #elif ZEROCOPY == 0 bones_errors = clEnqueueReadBuffer(bones_queue,device_<array>,CL_TRUE,(0)*sizeof(<type>),<variable_dimensions>*sizeof(<type>),<array><flatten>+0,0,NULL,NULL); error_check(bones_errors); #endif clFinish(bones_queue);
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bones-compiler-1.6.0 | skeletons/CPU-OPENCL-INTEL/common/mem_copy_D2H.c |
bones-compiler-1.3.1 | skeletons/CPU-OPENCL-INTEL/common/mem_copy_D2H.c |