LAB 1 SOLUTION

$30.00 $24.00

Write a program in C to perform Matrix Addition. The requirements for the program: program is writen in C executes with multiple threads using library pthreads. Note : compile: gcc lab1.c -o mm -lpthread run: ./mm 2 What to turn in Upload a report in PDF with the following: Your name Table with execution times…

5/5 – (2 votes)

You’ll get a: zip file solution

 

Categorys:
Tags:

Description

5/5 – (2 votes)

Write a program in C to perform Matrix Addition. The requirements for the program:

  1. program is writen in C executes with multiple threads using library pthreads. Note : compile: gcc lab1.c -o mm -lpthread

run: ./mm 2

What to turn in

Upload a report in PDF with the following:

  1. Your name

  1. Table with execution times sequential code (use same time functions as provided for correctness and consistency)

Matrix A and B Size

A.512, 512

Execution Time

  1. 1024*1024

  2. 8192*8192

  1. Rectangular Matrix

first(900*100), second (900,100)

  1. Table with the execution time for the multithreaded matrix multiplication algorithm

Matrix A and B Size

Execution Time 2 Threads

Execution Time 4 Threads

Execution Time 8 Threads

A.

B.

C.

D.

  1. Appendix with your code just the matrix addition code (I will ask for a demo of your code working on the computer labs ).

LAB 1 SOLUTION
$30.00 $24.00