1BRC in Fortran (~3 s on 16 threads) #561
sshestov
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
https://github.com/sshestov/1brc-fortran
My trial of the 1brc challenge in Fortran.
I have been using Fortran occasionally for HPC calculations and thought "why not".
The ideas are:
My typical time is around 3 s on 16 threads. Under -O3 the compiler does a lot of optimization and vectorization. While AVX instructions are not used, though. I've tried several tricks to speed-up individual places, in particular tried to convince the compiler to use SIMD for FINDLOC. Did not help at all.
I don't do final sorting though.
Beta Was this translation helpful? Give feedback.
All reactions