Results 1 to 2 of 2

Thread: Take base address of Memory Object

  1. #1
    Junior Member
    Join Date
    Jan 2013

    Take base address of Memory Object

    How can I get back a pointer to device memory when creating buffers?
    There is a solution here ... D2900&b=28 but it does not work.

  2. #2
    Senior Member
    Join Date
    Dec 2011

    Re: Take base address of Memory Object

    A host-side pointer to device-side memory? You can't do that in OpenCL. The closest would be using clEnqueueMapBuffer to get a host-side pointer to a buffer that the device can access. Note: This will incur PCIe bus transfers to make the data host-accessible and then get it back on the device during the unmap operation.

Similar Threads

  1. Replies: 1
    Last Post: 05-25-2012, 12:57 AM
  2. PCI address of mapped OpenCL buffer object?
    By grabner in forum OpenCL
    Replies: 0
    Last Post: 05-03-2012, 02:27 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