New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] parallelize on an i7 7th Gen doesn't use every thread #2398
Comments
martinvuyk
added
bug
Something isn't working
mojo
Issues that are related to mojo
labels
Apr 24, 2024
I also tried executing the MatMul example with 500 matrices and it only uses 4 threads. Output of
|
Used the matmul example to compile and Here is the code and how I removed vectorization and attached is the output of result of running
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Bug description
I've been trying for the last week to do the 1 billion row challenge in mojo. Here is the code. I thought it was my implementation but the more I optimized the more I realized there maybe was something more.
It takes the best Go solutions about 6.5s and the best Java one 3.8s on my machine, during execution they use all threads. Mojo takes 16.3s without having every part solved (only line read and parsing), and I've used basically the same bit logic manipulations of the best Java version. I have a PC with an i5 12th gen but it has windows and I haven't gotten around to partitioning it to try the code (the docker image didn't work), and it's too much of a hassle at this point
The parallelize function uses only 4 threads of the 8 that my i7-7700HQ has, just used system-monitor and saw it. It has 4 cores, so maybe something to do with that?
I don't know if you plan on supporting old potatoes with every advanced feature of the language, but parallelize seems pretty useful to revive old server/workstation hardware
Steps to reproduce
Data about the chip from Intel's website:
System information
The text was updated successfully, but these errors were encountered: