Results 1 to 3 of 3

Thread: Sharing textures with OpenCL (avoiding glFinish/clFinish)

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

    Sharing textures with OpenCL (avoiding glFinish/clFinish)

    Currently to pass a texture (or renderbuffer) to OpenCL for some fast crunching on the GPU, and to pass the result back to OpenGL, I'm doing:

    1. << generate with OpenGL >>[/*:m:v0r71341]
    2. glFinish()[/*:m:v0r71341]
    3. clEnqueueAcquireGLObjects()[/*:m:v0r71341]
    4. << crunch with OpenCL >>[/*:m:v0r71341]
    5. clEnqueueReleaseGLObjects()[/*:m:v0r71341]
    6. clFinish()[/*:m:v0r71341]
    7. << process with OpenGL >>[/*:m:v0r71341]


    Is there a faster method of synchronization than glFinish()/clFinish() currently supported on NVidia? Is Flush good enough?

    Any word on when ARB_cl_event will be supported?
    (Usage example: here on Slide 37)

    Thanks.

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

    Re: Sharing textures with OpenCL (avoiding glFinish/clFinish

    It's more likely that you will get a reply in the NVidia forums if your question is exclusively related to NVidia.

    You are correct when you mention that cl_khr_gl_event / ARB_cl_event is the way to go.
    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
    12

    Re: Sharing textures with OpenCL (avoiding glFinish/clFinish

    Thanks. Did post on NVidia's site yesterday, but hadn't yet received a response. It's possible I haven't waited long enough.

Similar Threads

  1. Avoiding data alignment in OpenCL
    By exoide in forum OpenCL
    Replies: 0
    Last Post: 01-23-2012, 07:27 AM
  2. Sharing Renderbuffer OpenGL object with OpenCL
    By YOYOSENIOR in forum OpenCL
    Replies: 2
    Last Post: 09-14-2009, 04:41 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
  •