Results 1 to 2 of 2

Thread: Is it possible to create context from multiple platforms?

  1. #1
    Junior Member
    Join Date
    Aug 2010
    Posts
    3

    Is it possible to create context from multiple platforms?

    I've fetched platform id's and was wondering if it's possible to create one context from all of them? I've tried to feed the id's to cl_context_properties array and ending it with zero with no luck. Somehow I've got impression this should be possible.

    Question number two:
    queue = clCreateCommandQueue(context, NULL, 0, NULL);
    in some examples second NULL is replaced with device id. Does this one with NULL instead device id send work to all devices in context or what?

    I've just started tinkering with OpenCL and sticking to pure C, so if you got some samples to look at, I'd appreciate if they were plain C.

  2. #2
    Senior Member
    Join Date
    Nov 2009
    Posts
    118

    Re: Is it possible to create context from multiple platforms

    A context is linked to only one platform, and command queue must be linked to one (and only one) device.

Similar Threads

  1. OpenCL On Multiple Platforms
    By homemade-jam in forum OpenCL
    Replies: 2
    Last Post: 03-03-2012, 10:14 AM
  2. Replies: 2
    Last Post: 04-26-2010, 08:38 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
  •