annotate src/Application/main.c @ 0:e48f13e138b0

Initial add -- copy from VPThread version that works on 9x9
author Me
date Fri, 17 Sep 2010 11:39:05 -0700
parents
children
rev   line source
Me@0 1 /*
Me@0 2 * Copyright Oct 24, 2009 OpenSourceCodeStewardshipFoundation.org
Me@0 3 * Licensed under GNU General Public License version 2
Me@0 4 *
Me@0 5 * author seanhalle@yahoo.com
Me@0 6 */
Me@0 7
Me@0 8 #include <malloc.h>
Me@0 9 #include <stdlib.h>
Me@0 10
Me@0 11 #include "Matrix_Mult.h"
Me@0 12 #include "VPThread__Matrix_Mult/VPThread__Matrix_Mult.h"
Me@0 13
Me@0 14 /**
Me@0 15 *Matrix multiply program written using VMS_HW piggy-back language
Me@0 16 *
Me@0 17 */
Me@0 18 int main( int argc, char **argv )
Me@0 19 { Matrix *leftMatrix, *rightMatrix, *resultMatrix;
Me@0 20 ParamBag *paramBag;
Me@0 21
Me@0 22 paramBag = makeParamBag();
Me@0 23 readParamFileIntoBag( argv[1], paramBag );
Me@0 24 initialize_Input_Matrices_Via( &leftMatrix, &rightMatrix, paramBag );
Me@0 25
Me@0 26 resultMatrix = multiplyTheseMatrices( leftMatrix, rightMatrix );
Me@0 27
Me@0 28 printf("\nresult matrix: \n");
Me@0 29
Me@0 30 // printMatrix( resultMatrix );
Me@0 31
Me@0 32 // VPThread__print_stats();
Me@0 33
Me@0 34 exit(0); //cleans up
Me@0 35 }