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

Google Leverages AI To Automatically Lock Phones During Theft

Amid increasing incidents of mobile phone thefts, Google has launched an AI-based feature that automatically locks the s... Read more

Microsofts Emissions Surge Nearly 30% Amid AI Demand Growth

Microsoft has reported a nearly 30% increase in its emissions from 2020 to 2023, underscoring the challenges the tech gi... Read more

Impact Of AWS Leadership Change On The Global AI Race

The recent leadership transition at Amazon Web Services (AWS), with Adam Selipsky stepping down and Matt Garman taking t... Read more

The Global Impact Of App Stores On Technology And Economy

Since Apple launched its App Store in 2008, app stores have become a central feature of the digital landscape, reshaping... Read more

Alibaba's Cloud Investment Strategy: Fuelling AI Innovation And Growth

Alibaba Group's cloud business, Alibaba Cloud, has emerged as a powerhouse in the tech industry, spearheading innovation... Read more

Elon Musk Takes On Government 'Censorship': A Clash Of Titans In The Digital Arena

Elon Musk's recent endeavors to challenge government-led content takedowns mark a significant development in the ongoing... Read more