Results 1 to 8 of 8

Thread: Copy Memory objects

  1. #1
    Junior Member
    Join Date
    Jun 2011
    Posts
    10

    Copy Memory objects

    Hi,

    Does openCL have any methods in which data can be copied from one memory object to
    another memory object?

    Regards

  2. #2
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: Copy Memory objects

    Does openCL have any methods in which data can be copied from one memory object to
    another memory object?
    Yes. Look for clEnqueueCopyBuffer(), clEnqueueCopyImage(), clEnqueueCopyBufferToImage() and clEnqueueCopyImageToBuffer().
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  3. #3
    Junior Member
    Join Date
    Nov 2011
    Posts
    4

    Re: Copy Memory objects

    I too had been wondering lately whether there were any methods in Open CL by which we could copy data to a memory object from another one. I am glad to learn we can. I guess we need to look for these codes so as to apply the transference.
    “Read Today, Lead Tomorrow”

  4. #4

    Re: Copy Memory objects

    The problem is, that clEnqueueCopyBuffer() was only specified in the OpenCL 1.1 specification and is not listed in the online reference manual (http://www.khronos.org/registry/cl/sdk/ ... man/xhtml/) until 1.2. On the other hand this function is explicitly specified on the OpenCL 1.0 reference card...

  5. #5
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: Copy Memory objects

    clEnqueueCopyBuffer appears in the OpenCL 1.0 specification in section 5.5.2.

    It also appears in the OpenCL 1.0 man pages as well as the OpenCL 1.1. man pages.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  6. #6

    Re: Copy Memory objects

    But, then how can I actually go to these pages when the only things in the side bar are the following?

    OpenCL 1.0:

    Memory Objects
    clCreateBuffer
    clEnqueueReadBuffer
    clEnqueueWriteBuffer
    clRetainMemObject
    clReleaseMemObject
    clCreateImage2D
    clCreateImage3D
    clGetSupportedImageFormats
    clEnqueueReadImage
    clEnqueueWriteImage
    clEnqueueCopyImage
    clEnqueueCopyImageToBuffer
    clEnqueueCopyBufferToImage
    clEnqueueMapBuffer
    clEnqueueMapImage
    clEnqueueUnmapMemObject
    clGetMemObjectInfo
    clGetImageInfo
    cl_image_format


    OpenCL 1.1:

    Memory Objects
    clCreateBuffer
    clCreateSubBuffer
    clEnqueueReadBuffer
    clEnqueueWriteBuffer
    clEnqueueReadBufferRect
    clEnqueueWriteBufferRect
    clRetainMemObject
    clReleaseMemObject
    clSetMemObjectDestructorCallback
    clCreateImage2D
    clCreateImage3D
    clGetSupportedImageFormats
    clEnqueueReadImage
    clEnqueueWriteImage
    clEnqueueCopyImage
    clEnqueueCopyImageToBuffer
    clEnqueueCopyBufferToImage
    clEnqueueCopyBufferRect
    clEnqueueMapBuffer
    clEnqueueMapImage
    clEnqueueUnmapMemObject
    clGetMemObjectInfo
    clGetImageInfo
    cl_image_format

  7. #7
    Senior Member
    Join Date
    May 2010
    Location
    Toronto, Canada
    Posts
    845

    Re: Copy Memory objects

    Thanks, Matthias. This was apparently a known bug. See http://www.khronos.org/bugzilla/show_bug.cgi?id=527

    I will try to get some attention into it.
    Disclaimer: Employee of Qualcomm Canada. Any opinions expressed here are personal and do not necessarily reflect the views of my employer. LinkedIn profile.

  8. #8

    Re: Copy Memory objects

    Thanks David, I didn't really know there was a bug tracker for such things.

    Regards,
    Matthias

Similar Threads

  1. How to copy global memory to local memory
    By howaidi in forum OpenCL
    Replies: 1
    Last Post: 07-20-2011, 12:45 PM
  2. copy from global memory to local memory..problem
    By phoebe0105 in forum OpenCL
    Replies: 3
    Last Post: 06-03-2010, 02:14 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
  •