Open main menu

CDOT Wiki β

Changes

GPU621/Intel oneMKL - Math Kernel Library

965 bytes added, 16:11, 1 December 2021
MKL Testing
In this project I want to compare the running time of the serial version and the optimized version of MKL under multithreading. <br />
The dgemm routine can perform several calculations, so here is two same soulutions to calculate.
 
C = alpha *A * B + beta * C
 
Integers indicating the size of the matrices:
A: m rows by k columns
B: k rows by n columns
C: m rows by n columns
alpha
Real value used to scale the product of matrices A and B.
A
Array used to store matrix A.
k
Leading dimension of array A, or the number of elements between successive rows (for row major storage) in memory. In the case of this exercise the leading dimension is the same as the number of columns.
B
Array used to store matrix B.
n
Leading dimension of array B, or the number of elements between successive rows (for row major storage) in memory. In the case of this exercise the leading dimension is the same as the number of columns.
beta
Real value used to scale matrix C.
C
Array used to store matrix C.
n
Leading dimension of array C, or the number of elements between successive rows (for row major storage) in memory. In the case of this exercise the leading dimension is the same as the number of columns.
 
serial version<br />
<pre>
</pre>
https://raw.githubusercontent.com/MenglinWu9527/m3u/main/mkl.jpeg
 
==Output==
{| border="1" cellspacing="0" cellpadding="5" align="center"
37
edits