Pierre Augier
Pierre Augier
MModular
Created by jordiae on 9/13/2023 in #questions
Can I call a (compiled) Mojo function from Python?
I created an issue about this feature to ask if it could be mentioned in the roadmap: https://github.com/modularml/mojo/issues/1423 It is frustrating that there is absolutely no mention of this in Mojo website.
16 replies
MModular
Created by Arctic on 9/15/2023 in #questions
Plans for a package manager?
Note that in the Python world, we have also pdm, pixi, etc. Pixi is written in Rust with a nice Rust library for dependency resolution.
26 replies
MModular
Created by Théo Pomies on 12/6/2023 in #questions
will mojo include an all in one tool like cargo
Note that in the Python world, we have also pdm, pixi, etc.
7 replies
MModular
Created by Pierre Augier on 11/29/2023 in #questions
Advice on Nbabel benchmark with Mojo?
Yes about tile versus vectorize. My goal was just to check that they were basically equivalent. My issue is not about that but about the strange numerical results that I have with the different Mojo implementations. I tried to summarize the problems in a README file in the nbabel/mojo directory https://github.com/paugier/nbabel/tree/main/mojo. I don't understand what happens but the Mojo implementations seem somehow buggy.
26 replies
MModular
Created by Pierre Augier on 11/29/2023 in #questions
Advice on Nbabel benchmark with Mojo?
I have now a very efficient implementation in Mojo https://github.com/paugier/nbabel/blob/main/mojo/bench_simd.mojo However, it seems slightly buggy. The results depend (a lot) on the size of the simd vector used... But the only function that use simd is "tested" in https://github.com/paugier/nbabel/blob/main/mojo/mikowals_experiments.mojo and seems to work.
26 replies
MModular
Created by Pierre Augier on 11/29/2023 in #questions
Advice on Nbabel benchmark with Mojo?
I get very good result (something like 2.5 speedup) with your approach (with nelts = 16) on a recent computer but on an older one, the other code is actually a bit faster, so I'm getting a "speedup" of ~0.8 with your file. On this old computer the best results are obtained with nelts = 2, and consistently the "speedup" is 0.4 with nelts = 1. This is not a big deal but I don't understand why your approach is slower on this computer, and I have no idea how to investigate this fact.
26 replies
MModular
Created by Pierre Augier on 11/29/2023 in #questions
Advice on Nbabel benchmark with Mojo?
What do you think about the technical feasibility of this potential project about implementing the Python array API standard in Mojo?
26 replies
MModular
Created by Pierre Augier on 11/29/2023 in #questions
Advice on Nbabel benchmark with Mojo?
Thanks a lot! It's great! I'm going to use this to create a more efficient Mojo implementation for the whole problem. I'd like to avoid having the number of particles as an alias.
26 replies
MModular
Created by Pierre Augier on 11/29/2023 in #questions
Advice on Nbabel benchmark with Mojo?
The fastest Julia implementations (for example this one https://github.com/paugier/nbabel/blob/reply-zwart2020/julia/nbabel5_serial.jl) also use 4 floats to hold 3 values and it's very efficient because it uses SIMD. I tried to reproduce this in https://github.com/paugier/nbabel/blob/main/mojo/bench_no_part.mojo but it is not much better that the other Mojo implementation.
26 replies