view src/Application/main.c @ 1:103a5f3b74cf

Works on small matrices -- too many threads, dies on large matrices
author Me
date Tue, 26 Oct 2010 19:37:08 -0700
parents 3b0e43240104
children
line source
1 /*
2 * Copyright Oct 24, 2009 OpenSourceCodeStewardshipFoundation.org
3 * Licensed under GNU General Public License version 2
4 *
5 * author seanhalle@yahoo.com
6 */
8 #include <malloc.h>
9 #include <stdlib.h>
11 #include "Matrix_Mult.h"
12 #include "VPThread__Matrix_Mult/VPThread__Matrix_Mult.h"
14 /**
15 *Matrix multiply program written using VMS_HW piggy-back language
16 *
17 */
18 int main( int argc, char **argv )
19 { Matrix *leftMatrix, *rightMatrix, *resultMatrix;
20 ParamBag *paramBag;
22 paramBag = makeParamBag();
23 readParamFileIntoBag( argv[1], paramBag );
24 initialize_Input_Matrices_Via( &leftMatrix, &rightMatrix, paramBag );
26 resultMatrix = multiplyTheseMatrices( leftMatrix, rightMatrix );
28 printf("\nresult matrix: \n");
30 printMatrix( resultMatrix );
32 // VPThread__print_stats();
34 exit(0); //cleans up
35 }