Results 1 to 3 of 3

Thread: clCreateBuffer() need lots of time

  1. #1
    Junior Member
    Join Date
    Jun 2010
    Posts
    9

    clCreateBuffer() need lots of time

    given a kernel and repeat running it, the corresponding cl_mem object is constant, but values of a array binded with the cl_mem object is changing, how to synchronize data between host and device ? it seems that only rebuilding cl_mem object can do that. if the array is big enough, it will consumes lots of time. So my question is : is there any method to achieve it quickly and efficiently?

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

    Re: clCreateBuffer() need lots of time

    Not sure I understand your question. Have you looked at clEnqueueReadBuffer and clEnqueueWriteBuffer? Or clEnqueueMapBuffer?
    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
    Jun 2010
    Posts
    9

    Re: clCreateBuffer() need lots of time

    Quote Originally Posted by david.garcia
    Not sure I understand your question. Have you looked at clEnqueueReadBuffer and clEnqueueWriteBuffer? Or clEnqueueMapBuffer?
    i have looked at these functions. but strangely the clEnqueueMapBuffer used more time than clEnqueueReadBuffer .

Similar Threads

  1. clCreateBuffer
    By IRWolfie- in forum OpenCL
    Replies: 1
    Last Post: 05-09-2011, 05:30 AM
  2. clCreateBuffer and cl_mem_flags
    By moozoo in forum OpenCL
    Replies: 1
    Last Post: 03-22-2011, 05:43 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
  •