Skip to content

sc4brain/mulmat

Repository files navigation

mulmat

Framewrok of Multiply Matrices

Build

$ make

Test run

  • 100 X 100
$ ./test100.sh
  • 2000 X 2000
$ ./test2000.sh

Add your mulmat function

  • write your function to mulmat.c and mulmat.h
 void mulMat_YOURNAME(const int matsize, const double *mata, const double *matb, double *matc);
  • call your function from benchmul_main.c
printf("YOUR NAME:\t");
checkMulMatFunc(mulMat_YOURNAME, matsize, mata, matb, matc);

Generate new data sets

$ ./genmat MATSIZE FILENAME1 FILENAME2 FILENAME3
  • MATSIZE: size of matrix N
  • FILENAME1: matrix A
  • FILENAME2: matrix B
  • FILENAME3: matrix C