Results 1 to 2 of 2

Thread: Why reading is slower than writing

  1. #1
    Junior Member
    Join Date
    Feb 2012
    Posts
    2

    Why reading is slower than writing

    I have begun to learn openCL and I wonder why enqueueReadBuffer operation takes more time than equeueWriteBuffer one although buffer size and data size are identical for both?

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

    Re: Why reading is slower than writing

    Quote Originally Posted by shnkc
    I have begun to learn openCL and I wonder why enqueueReadBuffer operation takes more time than equeueWriteBuffer one although buffer size and data size are identical for both?
    As the name implies, all the 'enqueue*' operations merely place the request to perform the operation into a queue. Unless you pass blocking=true, the actual data transfer isn't performed.

    And if you only perform a blocking read, and no flush or finish the 'read invocation' will include all processing time as well.

Similar Threads

  1. Point Sprites slower under ES 2.0 than 1.1 ?
    By RunSwimFly in forum OpenGL ES 2X - for programmable 3D graphics pipelines
    Replies: 2
    Last Post: 08-13-2010, 10:28 AM
  2. reading and writing to the frame buffer
    By dduran in forum OpenML Coding & Technical Issues
    Replies: 0
    Last Post: 03-09-2006, 12:24 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
  •