-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
ones(2^33) is slow #1795
Comments
This C program took almost the same amount of time. I wonder if one can do better.
|
That touches 64 GB of memory, doesn't it? How much RAM does the system have? Which |
For |
This is on julia.mit.edu with 1TB of RAM running a recent ubuntu (12.04). |
That would give you some room to work. |
Almost all the time goes in the |
The filling in of data could be done in parallel using some of the 80 cores on that machine. That would make it go faster. I would generally like to have easy ways to express simple data-parallel code better. |
How about using
|
Same thing is touched upon in #1790. Although I would prefer not having multiple models of parallelism, it certainly would be nice to be able to have a data parallel model to use multiple cores without launching 80 julias. |
@timholy Does |
I don't know. It's not part of the C standard library, it's an addon. I've never tested it. If it just loops (and doesn't use that two fold growing trick), the version I wrote out might be faster. |
I would be rather surprised if the copying trick is faster. Once |
I tried |
Yes, I just looked and noticed that I tested the copy trick. It's not bad, but it's not quite as fast as |
I guess there really isn't much that can be done about this for sequential julia. |
This is more than 1GB/second, which doesn't strike me as too bad. |
Of course it's quite good. |
I am not sure what the expected time for something like this should be, but it takes almost a minute to do ones(2^33).
The text was updated successfully, but these errors were encountered: