Skip to main content
QUICK REVIEW

[Paper Review] SparkCL: A Unified Programming Framework for Accelerators on Heterogeneous Clusters

Oren Segal, Philip Colangelo|arXiv (Cornell University)|May 5, 2015
Parallel Computing and Optimization TechniquesComputer Science8 references26 citations
TL;DR

SparkCL is a unified programming framework that integrates OpenCL-accelerated heterogeneous accelerators—such as GPUs, FPGAs, and APUs—into the Apache Spark ecosystem via a Java-based abstraction layer. By extending Spark with OpenCL-enabled kernel functions and device-aware transformations, it enables a single codebase to target diverse accelerators while maintaining seamless integration with Spark's dataflow model, significantly simplifying portability and performance portability across heterogeneous clusters.

ABSTRACT

We introduce SparkCL, an open source unified programming framework based on Java, OpenCL and the Apache Spark framework. The motivation behind this work is to bring unconventional compute cores such as FPGAs/GPUs/APUs/DSPs and future core types into mainstream programming use. The framework allows equal treatment of different computing devices under the Spark framework and introduces the ability to offload computations to acceleration devices. The new framework is seamlessly integrated into the standard Spark framework via a Java-OpenCL device programming layer which is based on Aparapi and a Spark programming layer that includes new kernel function types and modified Spark transformations and actions. The framework allows a single code base to target any type of compute core that supports OpenCL and easy integration of new core types into a Spark cluster.

Motivation & Objective

  • To enable transparent offloading of compute-intensive workloads to heterogeneous accelerators (e.g., GPUs, FPGAs) within the Apache Spark ecosystem.
  • To address the complexity and fragmentation in programming heterogeneous clusters by providing a unified abstraction layer over OpenCL and Spark.
  • To allow developers to write a single codebase that targets any OpenCL-capable device without rewriting for each accelerator type.
  • To extend Spark’s programming model with new kernel function types and modified transformations/actions to support device execution.

Proposed method

  • Extends Apache Spark with a new Java-OpenCL device programming layer based on Aparapi to enable GPU and accelerator code generation from Java.
  • Introduces new kernel function types and modified Spark transformations/actions that understand device execution semantics.
  • Uses OpenCL as a portable low-level interface to map high-level Spark operations to heterogeneous compute devices.
  • Enables automatic device selection and task offloading based on device availability and workload characteristics.
  • Provides a unified API that abstracts device-specific details, allowing transparent execution across FPGAs, GPUs, APUs, and CPUs.
  • Supports extensibility for future accelerator types by abstracting device-specific logic behind a common interface.

Experimental results

Research questions

  • RQ1How can a unified programming model be designed to support diverse accelerators within a single data processing framework like Spark?
  • RQ2What architectural extensions are required to enable transparent offloading of Spark workloads to OpenCL-accelerated devices?
  • RQ3Can a single codebase be used to target multiple accelerator types (e.g., GPUs, FPGAs) without modification?
  • RQ4How does the integration of OpenCL into Spark affect performance, portability, and developer productivity?
  • RQ5What mechanisms are needed to ensure seamless load balancing and fault tolerance across heterogeneous devices in a Spark cluster?

Key findings

  • SparkCL enables transparent execution of Spark workloads on any OpenCL-capable device, including GPUs, FPGAs, and APUs, without requiring code changes across devices.
  • The framework successfully integrates with the existing Spark execution model, supporting standard Spark transformations and actions with device-aware semantics.
  • By leveraging Aparapi and OpenCL, SparkCL reduces the development overhead for accelerating data-parallel workloads on accelerators.
  • The unified abstraction allows for easy extension to support new accelerator types, enhancing long-term maintainability and portability.
  • Performance evaluation shows significant speedups for compute-intensive operations when offloaded to accelerators, particularly for data-parallel kernels.
  • The framework maintains Spark’s fault tolerance and scalability while introducing hardware acceleration, demonstrating feasibility for production workloads.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.