Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grindelfp/matrices-multiplication-test
Test to compare execution time of multiplication of a two square matrices on CPU, on GPU and on CPU with optimization.
https://github.com/grindelfp/matrices-multiplication-test
Last synced: about 1 month ago
JSON representation
Test to compare execution time of multiplication of a two square matrices on CPU, on GPU and on CPU with optimization.
- Host: GitHub
- URL: https://github.com/grindelfp/matrices-multiplication-test
- Owner: GrindelfP
- License: mit
- Created: 2024-11-18T19:10:20.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2024-11-18T20:09:51.000Z (about 2 months ago)
- Last Synced: 2024-11-18T20:49:17.716Z (about 2 months ago)
- Language: Cuda
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= Matrices multiplication test =
== Description ==
This program is dedicated to compare execution time of multiplication
of a two square matrices on CPU, on GPU and on CPU with optimisation such as
matrix B (for which A * B = C is performed) is transposed so multiplication
is done row by row (not row by column) which speeds up execution on CPU.The matrices A, B and C are squared matrices containing random floating point
numbers.The programm prints result for each operation and two acceleration coefitients
into a console.The program is completed via Visual Studio on Windows, but here is presented
only the sorce code file matrices-multiplication.cu, while executable file
is stored in Release section of the repository.The program prints two small 3x3 matrix and results from 3 different
calculations to shou that calculus is correct.== Program structure ==
Program source code is stored in a source code file matrices-multiplication.cu,
which contain function* main - for execution of the program,
* multiplyMatricesCPU - for multiplication of matrices on CPU,
* multiplyMatricesGPU - for multiplication of matrices on GPU,
* transposeMatrix - for generating a transposed matrix,
* multiplyMatricesWithTransposeCPu - for multiplication of first and second
transposed matrix,
* printMatrix - for printing the matrix in console.