Results 1 to 2 of 2

Thread: Printing a cl_mem object

  1. #1
    Junior Member
    Join Date
    May 2010

    Printing a cl_mem object


    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

  2. #2

    Re: Printing a cl_mem object

    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.

Similar Threads

  1. Check whether cl_mem object is valid
    By hadesnumb in forum OpenCL
    Replies: 5
    Last Post: 05-10-2012, 01:16 PM
  2. render cl_mem(image object) to window
    By opencl_beginner in forum OpenCL
    Replies: 4
    Last Post: 12-10-2010, 04:55 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Proudly hosted by Digital Ocean