Rich_Morin
Interesting article on GPUs - can anyone suggest another on how Axon and Nx make use of GPU capabilities?
Tales of the M1 GPU is a very nicely written discussion of GPUs in general and the Apple M1 GPU in particular. It would be great if someone could suggest a companion article to discuss how Axon and Nx make use of GPU capabilities.
-r
Most Liked
kip
Note I’m not an expert so the following may not be completely accurate although I think the broad brushstrokes aren’t too far off.
'Nx` can operate with different backends and some of those backends, like tensorflow utilise GPUs.
To make that work efficiently, GPU code needs to be loaded onto the GPU and the data needs to be efficiently accessed on it too.
The way that happens is with the defn (define numerical) functions which very cleverly compile your Elixir code (a subset of the full language) into backend code. And if that backend executes on the GPU then you get the appropriate performance outcome. Much of Nx (and therefore libraries which depend on it like Axon) is written as defn.
outlog
Note no expert as well
elixir-nx can use different backends.. the torchx backend has beta support for the m1 gpu - and in a few weeks/months it will be super easy to get going - right now the install with gpu support is a bit cumbersome afaik..
https://twitter.com/meanderingstrm/status/1589570845537894402
Popular in Questions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex










