SPOC: GPGPU Programming Through Stream Processing With OCaml

Mathias Bourgoin, Emmanuel Chailloux, Jean-Luc Lamotte
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



   author={Bourgoin, M. and Chailloux, E. and LAMOTTE, J.L.U.C. and others},

   journal={Parallel Processing Letters},






Download Download (PDF)   View View   Source Source   Source codes Source codes




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.
No votes yet.
Please wait...

* * *

* * *

HGPU group © 2010-2021 hgpu.org

All rights belong to the respective authors

Contact us: