GPotion: An embedded DSL for GPU programming in Elixir

  • Andre Rauber Du Bois UFPel
  • Gerson Cavalheiro UFPel

Resumo


This paper presents GPotion, a DSL for GPU programming embedded in the Elixir functional language. GPotion allows programmers to write low-level GPU kernels, similar to CUDA kernels, in Elixir but also provides high-level facilities like, garbage collection, type inference and simplified data transfer. Preliminary experiments demonstrate that GPotion allows fast and efficient kernels with little overhead in comparison to pure CUDA. GPotion is implemented using metaprogramming features of Elixir, without having to modify Elixir’s compiler. The source code for GPotion and the benchmarks used in the experiments are available in a GitHub repository1.
Palavras-chave: Elixir, actors model, gpu, parallel programming
Publicado
25/09/2023
DU BOIS, Andre Rauber; CAVALHEIRO, Gerson. GPotion: An embedded DSL for GPU programming in Elixir. In: SIMPÓSIO BRASILEIRO DE LINGUAGENS DE PROGRAMAÇÃO (SBLP), 27. , 2023, Campo Grande/MS. Anais [...]. Porto Alegre: Sociedade Brasileira de Computação, 2023 . p. 1–8.