OpenCL: What you need to know

August 6, 2008, 01:54 PM —  Macworld — 

Apple was stingy with details about Snow Leopard when it briefly previewed the next version of OS X at this summer's Worldwide Developers Conference. But based on the company's public statements about the OS X update, we know that Snow Leopard features some new technology that promises to more thoroughly utilize the potential processing capability of the powerful graphics processors included with many Macs. Apple is promoting the technology, OpenCL, as a new open standard for graphics.

But what is OpenCL exactly?

According to the information put out by Apple at WWDC, OpenCL--or Open Computing Language--"lets any application tap into the vast gigaflops of GPU computing power previously available only to graphics applications." The technology is based on the C programming language, according to Apple.

But beyond the short description contained in a Snow Leopard press release, Apple hasn't had much to say publicly about OpenCL. However, the company is promoting it as a new standard through the Khronos Group --an industry consortium that manages open standards including OpenGL and OpenGL ES. Mac users will recognize those as the graphics technology used by Mac OS X and iPhone OS X, respectively.

OpenCL is the latest manifestation of a processing technique that's been around for a while known as General-Purpose Computing on Graphics Processing Units. GPGPU helps to offload a personal computer's computationally intensive processes to its graphics chip, such as those that might be found on a Mac equipped with an ATI or Nvidia graphics card or processor.

Such chips are designed to be high-performance parallel-processing engines, which makes them ideally suited for certain types of computing tasks--physics modeling in 3-D CAD software and games, for instance--or image processing technology, as might be used by film and video editing and compositing software.

For a very long time, GPUs were locked away from the rest of the computer, available only for graphics tasks through the drivers developed by Nvidia and ATI and tweaked by their manufacturing partners. With the advent of programmable vertex and fragment shading technology, graphics chip makers have gradually loosened the reins on graphics processing units.

In recent years, Nvidia and AMD have both rolled out competing technologies to accomplish this: Nvidia calls its technology Compute Unified Device Architecture (CUDA) and AMD, through its ATI subsidiary, calls its technology Close To Metal (CTM). Both accomplish the same thing: They let programmers write code that enables them to send data to the GPU to be processed, rather than having to rely on the CPU.

Not content to yield the performance graphics market to competitor AMD, Intel is preparing its "Larabee" microprocessor for release in 2009. It will be the first chip design that puts Intel on a level playing field with AMD and Nvidia for graphics performance. Unfortunately, it's yet another code path that developers will need to master before they can reap the benefits of high-performance code.

With no end in sight to the constant escalation of competing graphics technologies from AMD and Nvidia--and with Intel now acting as a wildcard--all bets are off at this point. So developing platform-neutral GPGPU technology only makes sense. And that seems to be where Apple's focus is with OpenCL.

To develop OpenCL as a standard, the Khronos Group has created a new "Compute Working Group" and has recruited a number of participants, inclduing ATI parent company AMD, Nvidia, Apple, and others. The Compute Working Group was announced earlier this year, just a week after Apple introduced Snow Leopard. Khronos' hope in introducing the Compute Working Group is to develop OpenCL as a standard around the C programming language--something that would be accessible to just about any software developer.

Siggraph, the gathering of graphics technology industry leaders and professionals, happens in Los Angeles later this month. Khronos and the Compute Working Group are expected to make an appearance. As for Snow Leopard, Apple said in June that the next major update to Mac OS X would ship in about a year.

» posted by ITworld staff

Macworld

I like it!
Post a comment
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
Free books

Build your tech library with our book giveaways.

Hacking Exposed, Sixth Edition
By Stuart McClure, Joel Scambray, George Kurtz; Published by McGraw-Hill/Osborne

The original Hacking Exposed authors rejoin forces on this tenth anniversary edition to offer completely up-to-date coverage of today's most devastating hacks and how to prevent them. Using their proven methodology, the authors reveal how to locate and patch system vulnerabilities. The book includes new coverage of ISO images, wireless and RFID attacks, Web 2.0 vulnerabilities, anonymous hacking tools, Ubuntu, Windows Server 2008, mobile devices, and more. Enter now!

Featured Sponsor

AISO founders envisioned a Web hosting company that was environmentally friendly. While the company employed energy-efficient innovations like solar panels, its infrastructure produced unacceptable power and cooling requirements. Find out how AISO leveraged AMD technology to overcome their challenge in this case study white paper.

In this whitepaper, Scalar explores the opportunity to change the landscape with respect to mission critical databases built around Oracle. Leveraging technologies such as Linux, high-end commodity processing power and Oracle RAC technology to architect, design, build and maintain database infrastructure that delivers maximum availability, reliability and performance at a fraction of traditional cost.

On a typical day, weather.com, the Web site for The Weather Channel in Atlanta, serves up between 15 million and 20 million page views. But in September 2004, when back-to-back hurricanes ransacked Florida, the peak traffic on one day more than tripled: over 70 million page views by more than 7 million unique visitors. Read the full success story now.

Marketplace