Where is OpenCL?

Discussion in 'Mac Apps and Mac App Store' started by skaertus, Jun 9, 2013.

  1. macrumors 68030

    skaertus

    Joined:
    Feb 23, 2009
    Location:
    Brazil
    #1
    OpenCL was released with Snow Leopard, four years ago, and promised revolutionary GPGPU. But I don't see many apps actually using it. Is it indeed a failure?
     
  2. macrumors regular

    Joined:
    Dec 23, 2012
    #2
    Is it still preinstalled and at good maintenance on OSX 10.8? I imagine I can use it in my own programs which use parallel processing. Isn't it just a tool, and a free one at that?
     
  3. Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #3
    How would you know if developers where using it? I mean if they opted to leverage OpenCL in their code, how would you notice?
     
  4. thread starter macrumors 68030

    skaertus

    Joined:
    Feb 23, 2009
    Location:
    Brazil
    #4
    Look here: http://openclnews.com/apps

    The list of apps is pretty small, despite the fact that OpenCL has been available for 4 years.

    Apple never hid the fact that OpenCL was difficult to implement in apps. Any company that took the effort to use OpenCL would almost certainly market it extensively. But just a few did.
     
  5. Moderator

    maflynn

    Staff Member

    Joined:
    May 3, 2009
    Location:
    Boston
    #5
    I'm not doubting you but rather asking how would we know?
     
  6. macrumors 6502

    Joined:
    Feb 3, 2008
    #6
    You need to understand what OpenCL (and GPU computing in general) is good for, and what CPUs are good for, to understand why it hasn't been implemented a lot more (and also why it's not necessarily faster).

    GPUs are very good at one thing: performing long calculations on large arrays of data. That is, processing video, scientific data, etc. On a consumer-level laptop or desktop GPU with well-optimised code your speedup is typically less than an order of magnitude. Often you'll find your CPU is actually faster and that you need a Tesla card to see real benefits.

    There is a significant bottleneck in transferring data between your main RAM memory and the GPU's memory - the data needs to be transferred to the GPU, operated on, then transferred back. This is why your typical applications such as email, iTunes (and so on) do not use the GPU. They don't operate on large arrays of data and so if you did try to use the GPU, you would actually slow things down.

    Basically, OpenCL and CUDA are nice. Just don't fall for Apple's marketing speak, instead try to understand what the technologies actually do and you'll realise that most people won't see any significant benefit for a few years yet.
     

Share This Page