Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/aksh-bansal-dev/matrix-multiply
Multi-threaded matrix multiplication in rust
https://github.com/aksh-bansal-dev/matrix-multiply
Last synced: 25 days ago
JSON representation
Multi-threaded matrix multiplication in rust
- Host: GitHub
- URL: https://github.com/aksh-bansal-dev/matrix-multiply
- Owner: Aksh-Bansal-dev
- Created: 2021-09-11T19:22:32.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-11T19:46:47.000Z (over 3 years ago)
- Last Synced: 2024-11-20T11:05:18.525Z (3 months ago)
- Language: Rust
- Homepage:
- Size: 2.93 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# matrix-multiply
Multi-threaded matrix multiplication in rust.Goal of this project is to test the difference in performance of multithreaded and singlethreaded applications.
## Benchmark
| Number of threads | Matrix dimensions | execution time |
|-------------------|-------------------|----------------|
| 1 | 1400 | 13s |
| 4 | 1400 | 3s |> Note: execution time may vary, depending on hardware
## How to use
- Run `python3 gen.py 1000 > input.txt` to generate two random 1000x1000 matrices.
- Run `cargo run --release < input.txt` for multithreaded matrix multiplication.
- Run `cargo run --release -- -s < input.txt` for single matrix multiplication.