Gionasan

Gionasan

Access to GPU with Elixir

Ho guys,
I’m new to Elixir and I’m switching from my Java OOP formation to FP. I’m finding the official guide very good for learning.

I would like to realize a graphic project: I want to make something similar to Processing but in FP ( Processing - Wikipedia , https://processing.org/ ).

To do this, I have to learn about GPU programming (no experience) and how to access it from the higher level environment Elixir.
I need some indicati in, no matter It could take a lot. I’m working on this on free time and have no deadlines, just enjoy this project as It come.

Thank you a lot
GM

Most Liked

mindok

mindok

There are a couple of projects around making use of the GPU.

In Erlang, there’s a long-running project called Wings3D (http://www.wings3d.com) that uses OpenGL.

The Elixir projects seem mainly to focus on machine-learning. There’s an entry point to that world here: Elixir and Machine Learning: Nx v0.1 released! - Dashbit Blog, OR JIT/GPU accelerated deep learning for Elixir with Axon v0.1, and some work that predates Nx here: Deep Learning library with GPU(CUDA/cuBLAS)

Good luck with your project!

al2o3cr

al2o3cr

You can access OpenGL via the Erlang standard library’s :gl module.

I found a good blog post about this but it’s from 2016 and some of the code needed sprucing up to run on modern Erlang / Elixir / wxWidgets versions. Repo for that version is GitHub - al2o3cr/elixir_opengl: Demo app for interacting with OpenGL from Elixir · GitHub

Where Next?

Popular in Questions Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New

Other popular topics Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
aadeshere1
I have a another noob question about loop. Since elixir is immutable, while loop is not directly possible. total = 10 while total != 0 ...
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New

We're in Beta

About us Mission Statement