Example of parallel computing
I read the this, but unfortunately could not understand how can I do parallel computing at MOJO, can any help help with simple code sample. Thanks
https://docs.modular.com/mojo/stdlib/algorithm/functional/parallelize
parallelize | Modular Docs
parallelizefunc: fn(Int) capturing -> None
4 Replies
Did not get your point
miss post my apologies.. not sure how that happened
maybe this will help https://docs.modular.com/mojo/notebooks/Matmul
Matrix multiplication in Mojo | Modular Docs
Learn how to leverage Mojo's various functions to write a high-performance matmul.
What kind of computation are you trying to do?
One of the big "motivations" behind mojo is making all sorts of VLIW/SIMD very easy to capitalize on, and to make it for that code to be used on things like GPUs. It's a different paradigm from thread based parallelism, though it can do that too
How you can actually lower your problem into code that solves it depends a lot on the problem itself and whether it's amenable to the sort of "batch based processing" mojo is particularly good at representing