package sarek

  1. Overview
  2. Docs
GPGPU kernel DSL for OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

spoc_ppx-20210823.tbz
sha256=bdb247f51bce29609c0a6d7155a2f180b26cb7388489cf21961b4d6754a0eb03
sha512=1cdb37b214e06a32436d23308c4555f6ddefcd4674d73964faa4bb184f843c477c95ef719b8794ead32d12b1ee6a5b5541683ec76ab9e6b1c2e3f3d7371ba41c

Description

Published: 25 Aug 2021

README

README.md

SPOC is a set of tools for GPGPU programming with OCaml.

The SPOC library enables the detection and use of GPGPU devices with OCaml using Cuda and OpenCL. There is also a camlp4 syntax extension to handle external Cuda or OpenCL kernels, as well as a DSL to express GPGPU kernels from the OCaml code.

This work was part of my PhD thesis (UPMC-LIP6 laboratory, Paris, France) and was partially funded by the OpenGPU project. I continued this project in 2014-2015 in the Verimag laboratory (Grenoble, France) and then from 2015 to 2018 in the LIFO laboratory in Orléans, France. I'm now working at Nomadic Labs.

SPOC has been tested on multiple architectures and systems, mostly 64-bit Linux and 64-bit OSX systems. It should work with Windows too.

To be able to use SPOC, you'll need a computer capable of running OCaml (obviously) but also compatible with either OpenCL or Cuda. For Cuda you only need a current proprietary NVidia driver while for OpenCL you need to install the correct OpenCL implementation for your system. SPOC should compile anyway as everything is dynamically linked, but you'll need Cuda/OpenCL eventually to run your programs.

Docker image (Probably deprecated)

(The github page is largely deprecated. While it's being updated, github actions scripts (in .github/workflows) may show how to build and run tests)
For more information, examples and live tutorials, please check the github page:

  more infos
  how to build spoc
  web examples
  web tutorials
  slides from past presentations
  publications references

Dependencies (8)

  1. ctypes-foreign
  2. ctypes
  3. camlp4
  4. cppo
  5. dune >= "2.9"
  6. re
  7. spoc = version
  8. ocaml >= "4.07.0"

Dev Dependencies (1)

  1. odoc with-doc

Used by

None

Conflicts

None