Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > SSR > SSR__Blocked_Matrix_Mult__Bench
comparison 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 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:f36cdc3a9763 |
|---|---|
| 1 /* | |
| 2 * Copyright Oct 24, 2009 OpenSourceStewardshipFoundation.org | |
| 3 * Licensed under GNU General Public License version 2 | |
| 4 * | |
| 5 * author seanhalle@yahoo.com | |
| 6 */ | |
| 7 | |
| 8 #include <malloc.h> | |
| 9 #include <stdlib.h> | |
| 10 | |
| 11 #include "Matrix_Mult.h" | |
| 12 #include "SSR_Matrix_Mult/SSR_Matrix_Mult.h" | |
| 13 | |
| 14 char __ProgrammName[] = "Blocked Matrix Multiply"; | |
| 15 char __DataSet[255]; | |
| 16 /** | |
| 17 * | |
| 18 */ | |
| 19 int main( int argc, char **argv ) | |
| 20 { Matrix *leftMatrix, *rightMatrix, *resultMatrix; | |
| 21 ParamBag *paramBag; | |
| 22 | |
| 23 printf( "arguments: %s | %s\n", argv[0], argv[1] ); | |
| 24 | |
| 25 paramBag = makeParamBag(); | |
| 26 readParamFileIntoBag( argv[1], paramBag ); | |
| 27 initialize_Input_Matrices_Via( &leftMatrix, &rightMatrix, paramBag ); | |
| 28 | |
| 29 resultMatrix = multiplyTheseMatrices( leftMatrix, rightMatrix ); | |
| 30 | |
| 31 printf("\nresult matrix: \n"); | |
| 32 printMatrix( resultMatrix ); | |
| 33 // SSR__print_stats(); | |
| 34 fflush(stdin); | |
| 35 | |
| 36 exit(0); //cleans up | |
| 37 } |
