CUDA: matrix addition & matrix multiplication

Cerrado Publicado hace 7 años Pagado a la entrega
Cerrado Pagado a la entrega

1- CUDA: matrix addition

Implement matrix addition in CUDA C = A+B where the matrices are NxN and N is large. This is an extension of the program in the "CUDA by Example" book, which adds two long vectors of length N. Also refer to the [login to view URL] program, which uses 2-dimensional arrays.

In your main program assign (float) values to the elements of A and B: a[i][j] = 2*i + j + 1 and b[i][j] = i + 4*j + 2.

Call your kernel. Then check if all elements of C are correct; if they are correct, print "We did it!".

Also execute the matrix addition sequentially, and time this (nested loop) with gettimeofday(). Compare the time to the execution time of the kernel plus the cudaMemcpy calls (do not include the malloc or the cudaMalloc times), and calculate the speedup. Do this for 10 (large to very large) values of N.

Submit a typescript showing: a listing (with "cat") of your source code, your compilation, and executions with output. Discuss your findings in your report.

2- Implement matrix multiplication.

Programación en C CUDA Parallels Automation

Nº del proyecto: #12266165

Sobre el proyecto

9 propuestas Proyecto remoto Activo hace 7 años

9 freelancers están ofertando un promedio de $66 por este trabajo

hbxfnzwpf

I am very proficient in c and c++. I have 16 years c++ developing experience now, and have worked for more than 6 years. My work is online game developing, and mainly focus on client side, using c++ under windows envir Más

$80 USD en 3 días
(104 comentarios)
6.8
taingocnguyen12

hello, i can do it for you. i think, this need more time to cread and test. as well as i will create good report for you. please feeback fore me if you ok.

$80 USD en 5 días
(5 comentarios)
2.9
hemal1993

Hi, I can do this in two days. this type of project is part of my assignment. So, some part of project is already developed with me. Thanks, Hemal

$55 USD en 2 días
(0 comentarios)
0.0