OpenCL Gains Ground On CUDA

By Michael Feldman

February 28, 2012

As the two major programming frameworks for GPU computing, OpenCL and CUDA have been competing for mindshare in the developer community for the past few years. Until recently, CUDA has attracted most of the attention from developers, especially in the high performance computing realm. But OpenCL software has now matured to the point where HPC practitioners are taking a second look.

Both OpenCL and CUDA provide a general-purpose model for data parallelism as well as low-level access to hardware, but only OpenCL provides an open, industry-standard framework. As such, it has garnered support from nearly all processor manufacturers including AMD, Intel, and NVIDIA, as well as others that serve the mobile and embedded computing markets. As a result, applications developed in OpenCL are now portable across a variety of GPUs and CPUs.

Although OpenCL 1.0 was introduced in December 2008, just a year and a half after the NVIDIA launched its first version of CUDA, OpenCL still trails CUDA in popularity by a wide margin, especially with regard to HPC. That is mostly due to a concerted effort by NVIDIA to establish CUDA as the dominant programming framework for GPU application development in this realm..

AMD has been the most vocal booster of OpenCL technology for technical computing, but it’s lack of a competitive product set for high-end GPU computing has muted that message. Thus far, OpenCL usage has been mostly relegated to client-side computing, especially for mobile platforms, which have increasingly incorporated GPU silicon into their designs. Apple, who initially developed OpenCL before handing it off to the open-standard Khronos Group, was instrumental in getting the technology off the ground.

The knock on OpenCL for HPC users has been lack of maturity, which has resulted in low performance, compared to CUDA. There is also the perception that support from the principle HPC chipmakers (Intel, AMD and NVIDIA) would be less than enthusiastic, at least for their high-end processors. In many ways, that’s still true, given that NVIDIA is devoting most of its attention to its home-grown CUDA software, while Intel seems to have settled on its own parallel programming frameworks, mainly Cilk Plus and Threading Building Blocks.

AMD though, continues to champion OpenCL, and some of their more recent compiler and library releases have improved performance considerably. In fact, Kyle Spafford, from the Future Technology Group at Oak Ridge National Lab (ORNL), has been benchmarking the two technologies for some time and is now convinced that OpenCL performance is now on par with that of CUDA. He recently presented his findings at Georgia Tech’s Keeneland Workshop.

Spafford’s ran ORNL’s Scalable Heterogeneous Computing Benchmark Suite (SHOC) that has been optimized for both CUDA and OpenCL, and found that OpenCL can match CUDA performance on most of the basic math kernels. He also found that OpenCL’s performance on some kernels, like SGEMM, has increased 10-fold since 2009. The one code that CUDA still has a significant performance advantage is that of the Fast Fourier Transform (FFT). Spafford attributes CUDA’s better FFT performance on its use of a fast intrinsic, with OpenCL implementation (NVIDIA’s in this case*) employing a slower, more accurate version. If the implementations are matched, the performance difference goes away, says Spafford.

Others have found similar behavior on stand-alone science applications. A research group at Dartmouth running a numerical model of gravitation waves with OpenCL and CUDA found similar performance between OpenCL and CUDA, in this case on Tesla GPUs and IBM’s Cell BE processors. In the resulting paper, the researchers conclude that “an OpenCL-based implementation delivers comparable performance to that based on a native SDK on both types of accelerator hardware.”

GPU software maker AccelerEyes has seen CUDA and OpenCL performance equalize. The company, which recently released OpenCL-powered beta versions of their two flagship software products, ArrayFire and Jacket, has found that for most kernel codes, the two technologies now exhibit similar performance. Like ORNL, they found FFT speed is still better on CUDA due to NVIDIA’s faster implementation, but AMD’s OpenCL compiler and libraries have improved considerably, both in scope and performance.

According to AccelerEyes CEO John Melonakos, over half of their customers develop their GPU-accelerated code on their PCs before deploying to a workstation or cluster, so the ability to support non-NVIDIA hardware can be quite useful. For example, customers using MacBooks as development platforms couldn’t run CUDA there because Apple has no NVIDIA GPU option on its latest laptops. And since the AMD OpenCL libraries that AccelerEyes used in their beta offerings work just fine on Intel CPUs, AMD CPUs, and NVIDIA GPUs, there are no hardware incompatibility issues.

Then there are users who are just unwilling to adopt vendor-specific software stacks such as CUDA. “There are a class of people who absolutely want to do GPU computing but are resistant to anything that is vendor-locked,” Melonakos told HPCwire. He says this is group that has jumped onto their OpenCL-based offerings first.

To counter that kind of perception, NVIDIA has recently opened up the CUDA compiler source code for third-party developers. Significantly though, NVIDIA is not putting its all-important CUDA math libraries, like CUBLAS and CUFFT, into the open source pot. According to Melonakos, the large and mature library set is CUDA’s real strength in the technical computing arena. Open source or not, NVIDIA still retains control of the CUDA software technology, which is why it is still perceived as a vendor-specific solution.

Even NVIDIA and Intel are hedging their bets with OpenCL though, with both vendors offering software hooks for their respective hardware. At this point, these companies are providing this support as a nod to their mobile computing developers (although Intel is reportedly working on a MIC processor port too). But since there is an increasing amount of cross-pollination between mobile and HPC these days, it’s not clear how developers will end up using these technologies.

In fact, if the mobile space latches onto OpenCL in a big way and it becomes the standard low-level solution for heterogenous computing, that could help speed its adoption at the high-end. Once OpenCL reaches a critical mass of acceptance in a volume market such as that, there will be a rapid increase in demand for robust compilers and libraries. As Melonakos put it: “I dont think OpenCL is going away.”

[Editor’s note: The original article erroneously stated that the SHOC benchmark work used AMD’s implementation of OpenCL, rather than NVIDIA’s. We regret the error.]

Subscribe to HPCwire's Weekly Update!

Be the most informed person in the room! Stay ahead of the tech trends with industy updates delivered to you every week!

12 Midwestern Universities Team to Boost Semiconductor Supply Chain

August 8, 2022

The combined stressors of Covid-19 and the invasion of Ukraine have sent every major nation scrambling to reinforce its mission-critical supply chains — including and in particular the semiconductor supply chain. In th Read more…

Quantum Pioneer D-Wave Rings NYSE Bell, Begins Life as Public Company

August 8, 2022

D-Wave Systems, one of the early quantum computing pioneers, has completed its SPAC deal to go public. Its merger with DPCM Capital was completed last Friday, and today, D-Wave management rang the bell on the New York St Read more…

Supercomputer Models Explosives Critical for Nuclear Weapons

August 6, 2022

Lawrence Livermore National Laboratory (LLNL) is one of the laboratories that operates under the auspices of the National Nuclear Security Administration (NNSA), which manages the United States’ stockpile of nuclear we Read more…

SEA Changes: How EuroHPC Is Preparing for Exascale

August 5, 2022

Back in June, the EuroHPC Joint Undertaking — which serves as the EU’s concerted supercomputing play — announced its first exascale system: JUPITER, set to be installed by the Jülich Supercomputing Centre (FZJ) in 2023. But EuroHPC has been preparing for the exascale era for a much longer time: eight months before... Read more…

HPC Career Notes: August 2022 Edition

August 5, 2022

In this monthly feature, we’ll keep you up-to-date on the latest career developments for individuals in the high-performance computing community. Whether it’s a promotion, new company hire, or even an accolade, we’ Read more…

AWS Solution Channel

Shutterstock 1590905653

Expanded filesystems support in AWS ParallelCluster 3.2

Data is critical to HPC, and ensuring your simulations have the data they need — when they need it — is essential. However, data can originate from many sources and need to be consumed by diverse resources. Read more…

Microsoft/NVIDIA Solution Channel

Shutterstock 1731567844

Using Cloud-Based, GPU-Accelerated Systems for AML Fraud Detection

A major issue facing financial services organizations is tracking fraud due to money laundering. Trying to track money laundering is an expensive and time-consuming process due to the large volumes of financial data which must be analyzed. Read more…

Sniff Test: Supercomputer Research Investigates Odor Neutralizers

August 4, 2022

Factories, farms and landfills are functionally essential to our daily lives, but the less-than-desirable smells they often produce may be somewhat less necessary. Researchers from the University of New Orleans, the Louisiana Department of Environmental Quality, and the Jefferson Parish Department of Environmental Affairs in Jefferson, Louisiana... Read more…

SEA Changes: How EuroHPC Is Preparing for Exascale

August 5, 2022

Back in June, the EuroHPC Joint Undertaking — which serves as the EU’s concerted supercomputing play — announced its first exascale system: JUPITER, set to be installed by the Jülich Supercomputing Centre (FZJ) in 2023. But EuroHPC has been preparing for the exascale era for a much longer time: eight months before... Read more…

Not Just Cash for Chips – The New Chips and Science Act Boosts NSF, DOE, NIST

August 3, 2022

After two-plus years of contentious debate, several different names, and final passage by the House (243-187) and Senate (64-33) last week, the Chips and Science Act will soon become law. Besides the $54.2 billion provided to boost US-based chip manufacturing, the act reshapes US science policy in meaningful ways. NSF’s proposed budget... Read more…

CXL Brings Datacenter-sized Computing with 3.0 Standard, Thinks Ahead to 4.0

August 2, 2022

A new version of a standard backed by major cloud providers and chip companies could change the way some of the world's largest datacenters and fastest supercomputers are built. The CXL Consortium on Tuesday announced a new specification called CXL 3.0 – also known as Compute Express Link 3.0... Read more…

Inside an Ambitious Play to Shake Up HPC and the Texas Grid

August 2, 2022

With HPC demand ballooning and Moore’s law slowing down, modern supercomputers often undergo exhaustive efficiency efforts aimed at ameliorating exorbitant energy bills and correspondingly large carbon footprints. Others, meanwhile, are asking: is min-maxing the best option, or are there easier paths to reducing the bills and emissions of... Read more…

UCIe Consortium Incorporates, Nvidia and Alibaba Round Out Board

August 2, 2022

The Universal Chiplet Interconnect Express (UCIe) consortium is moving ahead with its effort to standardize a universal interconnect at the package level. The c Read more…

OpenCAPI to Be Folded into CXL

August 1, 2022

As the need for speed drives computational workloads, more standards organizations are coalescing around a standard called Compute Express Link – also known a Read more…

US CHIPS Act Close to Being Signed into Law

July 28, 2022

The U.S. House today passed the CHIPS and Science Act of 2022, which authorizes $280 billion in funding to boost semiconductor research and production in the country. The passage of the bill paves the way for U.S. president Joe Biden to sign the legislation into law, which would officially open up funding... Read more…

GE Research Enters the Exascale Era

July 28, 2022

The pitch for GE Research is easy, as Richard Arthur, senior director of computational methods research for GE Research, explained at the latest meeting of the DOE’s Advanced Scientific Computing Advisory Committee (ASCAC): a third of the electrons in the world that flow through devices are generated on GE equipment; every two seconds... Read more…

Nvidia R&D Chief on How AI is Improving Chip Design

April 18, 2022

Getting a glimpse into Nvidia’s R&D has become a regular feature of the spring GTC conference with Bill Dally, chief scientist and senior vice president of research, providing an overview of Nvidia’s R&D organization and a few details on current priorities. This year, Dally focused mostly on AI tools that Nvidia is both developing and using in-house to improve... Read more…

Royalty-free stock illustration ID: 1919750255

Intel Says UCIe to Outpace PCIe in Speed Race

May 11, 2022

Intel has shared more details on a new interconnect that is the foundation of the company’s long-term plan for x86, Arm and RISC-V architectures to co-exist in a single chip package. The semiconductor company is taking a modular approach to chip design with the option for customers to cram computing blocks such as CPUs, GPUs and AI accelerators inside a single chip package. Read more…

The Final Frontier: US Has Its First Exascale Supercomputer

May 30, 2022

In April 2018, the U.S. Department of Energy announced plans to procure a trio of exascale supercomputers at a total cost of up to $1.8 billion dollars. Over the ensuing four years, many announcements were made, many deadlines were missed, and a pandemic threw the world into disarray. Now, at long last, HPE and Oak Ridge National Laboratory (ORNL) have announced that the first of those... Read more…

US Senate Passes CHIPS Act Temperature Check, but Challenges Linger

July 19, 2022

The U.S. Senate on Tuesday passed a major hurdle that will open up close to $52 billion in grants for the semiconductor industry to boost manufacturing, supply chain and research and development. U.S. senators voted 64-34 in favor of advancing the CHIPS Act, which sets the stage for the final consideration... Read more…

Top500: Exascale Is Officially Here with Debut of Frontier

May 30, 2022

The 59th installment of the Top500 list, issued today from ISC 2022 in Hamburg, Germany, officially marks a new era in supercomputing with the debut of the first-ever exascale system on the list. Frontier, deployed at the Department of Energy’s Oak Ridge National Laboratory, achieved 1.102 exaflops in its fastest High Performance Linpack run, which was completed... Read more…

Newly-Observed Higgs Mode Holds Promise in Quantum Computing

June 8, 2022

The first-ever appearance of a previously undetectable quantum excitation known as the axial Higgs mode – exciting in its own right – also holds promise for developing and manipulating higher temperature quantum materials... Read more…

AMD’s MI300 APUs to Power Exascale El Capitan Supercomputer

June 21, 2022

Additional details of the architecture of the exascale El Capitan supercomputer were disclosed today by Lawrence Livermore National Laboratory’s (LLNL) Terri Read more…

PsiQuantum’s Path to 1 Million Qubits

April 21, 2022

PsiQuantum, founded in 2016 by four researchers with roots at Bristol University, Stanford University, and York University, is one of a few quantum computing startups that’s kept a moderately low PR profile. (That’s if you disregard the roughly $700 million in funding it has attracted.) The main reason is PsiQuantum has eschewed the clamorous public chase for... Read more…

Leading Solution Providers

Contributors

ISC 2022 Booth Video Tours

AMD
AWS
DDN
Dell
Intel
Lenovo
Microsoft
PENGUIN SOLUTIONS

Exclusive Inside Look at First US Exascale Supercomputer

July 1, 2022

HPCwire takes you inside the Frontier datacenter at DOE's Oak Ridge National Laboratory (ORNL) in Oak Ridge, Tenn., for an interview with Frontier Project Direc Read more…

AMD Opens Up Chip Design to the Outside for Custom Future

June 15, 2022

AMD is getting personal with chips as it sets sail to make products more to the liking of its customers. The chipmaker detailed a modular chip future in which customers can mix and match non-AMD processors in a custom chip package. "We are focused on making it easier to implement chips with more flexibility," said Mark Papermaster, chief technology officer at AMD during the analyst day meeting late last week. Read more…

Intel Reiterates Plans to Merge CPU, GPU High-performance Chip Roadmaps

May 31, 2022

Intel reiterated it is well on its way to merging its roadmap of high-performance CPUs and GPUs as it shifts over to newer manufacturing processes and packaging technologies in the coming years. The company is merging the CPU and GPU lineups into a chip (codenamed Falcon Shores) which Intel has dubbed an XPU. Falcon Shores... Read more…

Nvidia, Intel to Power Atos-Built MareNostrum 5 Supercomputer

June 16, 2022

The long-troubled, hotly anticipated MareNostrum 5 supercomputer finally has a vendor: Atos, which will be supplying a system that includes both Nvidia and Inte Read more…

India Launches Petascale ‘PARAM Ganga’ Supercomputer

March 8, 2022

Just a couple of weeks ago, the Indian government promised that it had five HPC systems in the final stages of installation and would launch nine new supercomputers this year. Now, it appears to be making good on that promise: the country’s National Supercomputing Mission (NSM) has announced the deployment of “PARAM Ganga” petascale supercomputer at Indian Institute of Technology (IIT)... Read more…

Is Time Running Out for Compromise on America COMPETES/USICA Act?

June 22, 2022

You may recall that efforts proposed in 2020 to remake the National Science Foundation (Endless Frontier Act) have since expanded and morphed into two gigantic bills, the America COMPETES Act in the U.S. House of Representatives and the U.S. Innovation and Competition Act in the U.S. Senate. So far, efforts to reconcile the two pieces of legislation have snagged and recent reports... Read more…

AMD Lines Up Alternate Chips as It Eyes a ‘Post-exaflops’ Future

June 10, 2022

Close to a decade ago, AMD was in turmoil. The company was playing second fiddle to Intel in PCs and datacenters, and its road to profitability hinged mostly on Read more…

Exascale Watch: Aurora Installation Underway, Now Open for Reservations

May 10, 2022

Installation has begun on the Aurora supercomputer, Rick Stevens (associate director of Argonne National Laboratory) revealed today during the Intel Vision event keynote taking place in Dallas, Texas, and online. Joining Intel exec Raja Koduri on stage, Stevens confirmed that the Aurora build is underway – a major development for a system that is projected to deliver more... Read more…

  • arrow
  • Click Here for More Headlines
  • arrow
HPCwire