Results 1 to 3 of 3

Thread: Limits/recommandations for number of contexts/queues?

  1. #1
    Junior Member
    Join Date
    Jun 2009
    Posts
    6

    Limits/recommandations for number of contexts/queues?

    When I understand the OpenCl specs correctly, it is possible to:

    - assign one card to several devices
    - create more than one command queue for a given device/context combination

    Is there an official minimum number of devices/queues which can be created for a single device/context?

    Not that I want to create dozens of contexts on a single device, but it would be helpful to get some recommendation (Although I guess this heavily depends on the type of the device).

  2. #2
    Junior Member
    Join Date
    Jun 2009
    Posts
    6

    Re: Limits/recommandations for number of contexts/queues?

    sorry, it should be

    - assign one card to several contexts

  3. #3
    Senior Member
    Join Date
    Jul 2009
    Location
    Northern Europe
    Posts
    311

    Re: Limits/recommandations for number of contexts/queues?

    The details will depend on the vendor implementation, but in general you should assume that both contexts and queues take up resources, so you should not create too many of them. Contexts should be used for grouping devices that need to share data, and queues should be used for submitting work to devices. In general, queues should be cheaper than contexts, but it all depends on the implementation.

Similar Threads

  1. Replies: 3
    Last Post: 01-05-2011, 09:45 AM
  2. Vertex limits?
    By d1mbu1b in forum OpenGL ES general technical discussions
    Replies: 7
    Last Post: 09-15-2008, 11:20 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
  •