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
3 Replies
mad alex 1997
mad alex 199710mo ago
I think that was a notional example. GPU is supposed to come in the first quarter of 2024 but it is not here yet.
Hasan Yousef
Hasan YousefOP10mo ago
But I was advised to import the gpu library! Ony the Function is not in it!
mad alex 1997
mad alex 199710mo ago
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.
Want results from more Discord servers?
Add your server