View Full Version : Printing a cl_mem object

05-28-2010, 01:19 PM

i would like to examined the contents of a cl_mem object. Right now i cast it into an unsigned char* and use printf to display the contents in hex format .However i have a feeling that this approach may be incorrect. Does anyone have alternative suggestions? Thanks

05-30-2010, 07:31 AM
If you are talking about a buffer, you have to enqueue a read to that buffer and place the content in an array on host.