import gpu.Function
Trying to replicate the code presented at mojo lightning talk https://www.modular.com/blog/mojo-lightning-talk
But got the error 'package gpu doesnot contain Function
Modular: Mojo 🔥 lightning talk ⚡️ one language for all AI programmi...
We are building a next-generation AI developer platform for the world. Read our latest post on how Mojo 🔥 lightning talk ⚡️ one language for all AI programming!
![No description](https://cdn.answeroverflow.com/1201120965283815524/IMG-20240128-WA0014.jpg)
3 Replies
I think that was a notional example. GPU is supposed to come in the first quarter of 2024 but it is not here yet.
But I was advised to import the gpu library! Ony the Function is not in it!
As a general rule if it is not in the docs it is unstable and may change greatly in updates without notice. There are a fair few implementation details that worked that way especially as they have changed parallelization and its helper functions. You could try to find whatever replaced it, if anything, but for now, I would just wait for GPU support to be officially ready.