V
V
Viktor Familyevich2019-01-17 20:20:07
Mathematics
Viktor Familyevich, 2019-01-17 20:20:07

How to perform parallel multiplication of two two-dimensional matrices?

Matrices contain random integers

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Skusnov, 2019-01-17
@AlexSku

CUDA code example .

I
ivodopyanov, 2019-01-18
@ivodopyanov

Split each matrix in half vertically and horizontally, multiply and add these parts as needed, and combine back.
If matrix A consists of 4 blocks A11, A12, A21, A22, and matrix B consists of similar blocks B11, B12, B21, B22, then in matrix C = A*B C11 = A11*B11+A12*B21, C12 =A11*B12+A12*B22 and so on.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question