-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add multithreaded matmul-c implementation #40
Open
llewelld
wants to merge
3
commits into
alan-turing-institute:main
Choose a base branch
from
llewelld:matmul-c-threaded
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
llewelld
force-pushed
the
matmul-c-threaded
branch
6 times, most recently
from
April 26, 2024 09:10
7c7dfbb
to
67b631e
Compare
llewelld
force-pushed
the
matmul-c-threaded
branch
from
May 19, 2024 09:35
67b631e
to
3802c92
Compare
llewelld
force-pushed
the
matmul-c-threaded
branch
from
May 19, 2024 22:31
3802c92
to
1148f74
Compare
llewelld
force-pushed
the
matmul-c-threaded
branch
from
May 20, 2024 14:51
1148f74
to
96bc982
Compare
Rebased. |
llewelld
force-pushed
the
matmul-c-threaded
branch
from
August 9, 2024 08:01
96bc982
to
ea63cb1
Compare
Rebased. |
It's no big deal to have this lingering, but for the sake of keeping things tidy, if anyone fancies reviewing this, please feel free. |
I doubt I'll find time in the near future, sorry :( |
No worries; thanks @mhauru. |
Adds a CPU-parallel matrix multiplication implementation using a threadpool. Parallelism is intra-matrix (i.e. different parts of a single matrix-multiply operation are performed on different threads) so that threading is transparent to the caller.
Refeactos the codebase to split the tests and benchmarks into separate files. Adds some large matrix multiplication benchmarks for the serial and parallel implementations.
Updates the matmul-c square matrix scaling tests to align with mhauru's Julia tests. The benchmarks now perform 19 test with increasingly large square matrices. Single-threaded and multi-threaded matrix multiplication tests are both performed. The results are stored in the same results.csv file so that everything can be plotted together.
llewelld
force-pushed
the
matmul-c-threaded
branch
from
December 17, 2024 13:30
ea63cb1
to
9397b0b
Compare
Rebased. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Adds a CPU-parallel matrix multiplication implementation using a threadpool. Parallelism is intra-matrix (i.e. different parts of a single matrix-multiply operation are performed on different threads) so that threading is transparent to the caller.