SPOC: GPGPU Programming Through Stream Processing With OCaml
Laboratoire d’Informatique de Paris 6 (LIP6 – UMR 7606), Universite Pierre et Marie Curie (UPMC – Paris 6), Sorbonne Universites, 4 place Jussieu, 75005 Paris, France
Parallel Processing Letters (PPL), Volume 22, Issue 2, 1240007 (12 pages), 2012
@article{bourgoin2012spoc,
title={SPOC: GPGPU PROGRAMMING THROUGH STREAM PROCESSING WITH OCAML},
author={Bourgoin, M. and Chailloux, E. and LAMOTTE, J.L.U.C. and others},
journal={Parallel Processing Letters},
volume={22},
number={2},
pages={1240007},
year={2012}
}
General purpose computing on graphics processing units (GPGPU) consists of using GPUs to handle computations commonly handled by CPUs. GPGPU programming implies developing specific programs to run on GPUs managed by a host program running on the CPU. To achieve high performance implies to explicitly organize memory transfers between devices. Besides, different incompatible frameworks exist making productivity and portability difficult to achieve. In this paper, we describe SPOC, an OCaml library, defining specific data sets in order to automatically manage transfers between GPU and CPU. SPOC also offers a runtime library looking for multiple frameworks and making them usable transparently. We also describe the link between SPOC and the OCaml garbage collector to optimize transfers dynamically. SPOC benchmarks show that SPOC can offer great performance while simplifying GPGPU programming.
May 19, 2012 by hgpu