Results 1 to 2 of 2

Thread: How to get physical address of GPU memory for DMA?

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    1

    How to get physical address of GPU memory for DMA?

    I am writing an OpenCL program and I wish to transfer data from a frame grabber to a GPU using DMA. How can I get the physical address of an OpenCL buffer on the GPU to do that?

  2. #2
    Senior Member
    Join Date
    Aug 2011
    Posts
    271

    Re: How to get physical address of GPU memory for DMA?

    Quote Originally Posted by e_dod_as
    I am writing an OpenCL program and I wish to transfer data from a frame grabber to a GPU using DMA. How can I get the physical address of an OpenCL buffer on the GPU to do that?
    You can only map buffers using the clEnqueueMapBuffer() calls, and then copy data there.

    The OpenCL api doesn't expose anything lower level than that, on purpose. Even enqueuemapbuffer may not actually map anything on the device. And buffers in general may not be physically present on the device outside of kernel execution.

Similar Threads

  1. Take base address of Memory Object
    By zovasili in forum OpenCL
    Replies: 1
    Last Post: 01-19-2013, 12:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •