Program Language/OpenCL

standard functions in OpenCL

Leo 리오 2012. 6. 4. 20:29
반응형

memset in OpenCL


커널에서도 memset이된다!


memset(dst_ptr, value, size);




printf in OpenCL


Intel 에선 그냥 쓰면된다.


AMD에선 

#pragma OPENCL EXTENSION cl_amd_printf : enable




Calling clFinish on a command queue flushes all pending output by printf in previously enqueued and completed commands to the implementation-defined output stream.
근데 잘안되네;









반응형