2 Replies Latest reply on Oct 8, 2010 1:26 PM by afo

    Relationship between context an device

      If an opencl context has more than one device, how much memory could I allocate?

      Hi all,

      I know that this could be discovered by experimentation, but I kindly ask if someone could tell me:

      If a context is created with more than one device; a clCreateBuffer call can alloc more than CL_DEVICE_MAX_MEM_ALLOC_SIZE and/or the total memory allocated by clCreateBuffer calls in the same context can be greather than CL_DEVICE_MAX_MEM_ALLOC_SIZE?

      I know that if I create different contexts, each with a different device, the max memory allocated is num_context x CL_DEVICE_MAX_MEM_ALLOC_SIZE; but I would like to know what happens when the different devices are in the same context.

      Thanks in advance for your help.

      best regards,