Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > SSR > SSR__Blocked_Matrix_Mult__Bench
diff main.c @ 10:387f3084d9bb
Changed dir structure to new project structure
| author | Me@portablequad |
|---|---|
| date | Tue, 07 Feb 2012 14:07:38 -0800 |
| parents | |
| children | 1461ed1901cc |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/main.c Tue Feb 07 14:07:38 2012 -0800 1.3 @@ -0,0 +1,37 @@ 1.4 +/* 1.5 + * Copyright Oct 24, 2009 OpenSourceStewardshipFoundation.org 1.6 + * Licensed under GNU General Public License version 2 1.7 + * 1.8 + * author seanhalle@yahoo.com 1.9 + */ 1.10 + 1.11 +#include <malloc.h> 1.12 +#include <stdlib.h> 1.13 + 1.14 +#include "Matrix_Mult.h" 1.15 +#include "SSR_Matrix_Mult/SSR_Matrix_Mult.h" 1.16 + 1.17 +char __ProgrammName[] = "Blocked Matrix Multiply"; 1.18 +char __DataSet[255]; 1.19 +/** 1.20 + * 1.21 + */ 1.22 +int main( int argc, char **argv ) 1.23 + { Matrix *leftMatrix, *rightMatrix, *resultMatrix; 1.24 + ParamBag *paramBag; 1.25 + 1.26 + printf( "arguments: %s | %s\n", argv[0], argv[1] ); 1.27 + 1.28 + paramBag = makeParamBag(); 1.29 + readParamFileIntoBag( argv[1], paramBag ); 1.30 + initialize_Input_Matrices_Via( &leftMatrix, &rightMatrix, paramBag ); 1.31 + 1.32 + resultMatrix = multiplyTheseMatrices( leftMatrix, rightMatrix ); 1.33 + 1.34 + printf("\nresult matrix: \n"); 1.35 + printMatrix( resultMatrix ); 1.36 +// SSR__print_stats(); 1.37 + fflush(stdin); 1.38 + 1.39 + exit(0); //cleans up 1.40 + }
