Compsci Eggheads Bring OpenCL Framework To RISC-V To Push Parallel Performance

A quartet of computer science boffins have showcased work on bringing the OpenCL programming framework to a wide range of RISC-V chips – improving their suitability for highly parallel workloads in science and beyond.

Born at the University of California at Berkeley in 2010, following an earlier research project from the 1980s dubbed Berkeley RISC, which would eventually become the SPARC architecture, RISC-V is both free and open source. As a result, anyone can build chips implementing the RISC-V architecture and can modify and expand it at will, adding new features or tweaking existing ones as required.

A paper presented at the Fifth Workshop on Computer Architecture Research with RISC-V (CARRV 2021), though, concentrates wholly on off-the-shelf RISC-V chips – introducing support for the Open Computing Language (OpenCL) heterogeneous programming framework commonly used to spread scientific workloads across CPUs, GPUs, and other accelerators.

"To the best of our knowledge, there is currently no publicly available implementation of OpenCL targeting commodity RISC-V processors that is accessible to the open-source community," the researchers explained in the abstract to their paper.

"Besides opening RISC-V to the existing rich variety of scientific parallel applications, OpenCL also provides access to a unique genre of benchmarks useful in computer architecture research."

The OpenCL implementation which resulted from the team's research required no changes to the processor designs themselves, and is compatible with a range of parts – from high-performance multi-core processors to low-profile embedded implementations. Including the latter proved a challenge: "[These] often do not support atomic instructions or multi-threading," the team found.

The team's work builds on the Performance OpenCL (POCL) project, an open-source OpenCL implementation which previously targeted a range of architectures including x86, Arm, MIPS, and general-purpose GPU (GPGPU) parts. POCL was first modified to bring support for Linux-capable higher-performance RISC-V chips, like that found powering SiFive's HiFive Unmatched, before moving to the embedded chips.

"Expanding the RISC-V ecosystem to include parallel applications via OpenCL opens the door to the large segment of scientific computing," the team concluded. "Furthermore, it provides hardware designers new workloads for exploring new microarchitecture designs and optimisations.

"Our extension [of POCL] particularly targets today's large segment of commodity RISC-V cores without SIMD vector extensions and also expands to low-profile embedded processors with minimal capabilities."

The work has been carried out alongside other efforts to boost RISC-V's presence in scientific computing, including several being pushed forward under the aegis of the RISC-V Special Interest Group on High Performance Computing (SIG-HPC).

The team published its paper [PDF] under open-access terms, while the source code for the extended POCL has been placed on GitHub under the permissive MIT licence. ®

RECENT NEWS

From Chip War To Cloud War: The Next Frontier In Global Tech Competition

The global chip war, characterized by intense competition among nations and corporations for supremacy in semiconductor ... Read more

The High Stakes Of Tech Regulation: Security Risks And Market Dynamics

The influence of tech giants in the global economy continues to grow, raising crucial questions about how to balance sec... Read more

The Tyranny Of Instagram Interiors: Why It's Time To Break Free From Algorithm-Driven Aesthetics

Instagram has become a dominant force in shaping interior design trends, offering a seemingly endless stream of inspirat... Read more

The Data Crunch In AI: Strategies For Sustainability

Exploring solutions to the imminent exhaustion of internet data for AI training.As the artificial intelligence (AI) indu... Read more

Google Abandons Four-Year Effort To Remove Cookies From Chrome Browser

After four years of dedicated effort, Google has decided to abandon its plan to remove third-party cookies from its Chro... Read more

LinkedIn Embraces AI And Gamification To Drive User Engagement And Revenue

In an effort to tackle slowing revenue growth and enhance user engagement, LinkedIn is turning to artificial intelligenc... Read more