Results 1 to 2 of 2

Thread: Question on sharing cl_events on different cl_contexts

  1. #1

    Question on sharing cl_events on different cl_contexts

    I have been searching around goolge and the forums, and haven't been able to find a suitable answer concerning cl_events.

    A cl_event is associated with a context, and it's purpose is to contain information on a submitted "task". It is also used to schedule different queues to run in the correct order.

    It's obviously clear in the specification that all the different OpenCL objects are associated with one context, but why wouldn't cl_event have support to be used in different contexts?

    What if one would want to work with multiple contexts to handle the memory more explicitly with multiple devices, where cl_events are critical? Scheduling queues on different contexts would become more manageable.

    Your thoughts on this?

  2. #2
    Senior Member
    Join Date
    Dec 2011
    Posts
    168

    Re: Question on sharing cl_events on different cl_contexts

    What is a scenario where you'd want to have work on a second context synchronize with something in the first?

    To me, it's fine that events are scoped to a context.

    Any synchronization between contexts can be done with OS objects (e.g., OS event).

Similar Threads

  1. Texture Sharing.
    By keean in forum OpenGL ES 1.X - fixed function hardware
    Replies: 5
    Last Post: 05-22-2012, 11:35 AM
  2. Problem with GL-CL sharing context
    By eilgin in forum OpenCL
    Replies: 3
    Last Post: 05-20-2011, 04:44 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
  •