This is my next assignment for class ... a multithreaded matrix multiplier
takes 2 matrices (each of max size 200 by 200) and multiplies them
all the stuff attached ...
JOBS controls the number of threads to use
MSIZE controls the size of the matrices (if MSIZE is 10, each matrix is 10 by 10).
place all files in a single directory.
the program creates 2 files, matrix_result (with the result) and matrix_log which tells how many cells each thread computed ...
extract into a dir and simply run the perl script, which will compile, run and analyze the results.
please post the output and what kind of system you have (CPU type, number of CPUs, and the clock rate for the CPU).



Adv Reply



Bookmarks