diff 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
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/Application/main.c	Fri Sep 17 11:39:05 2010 -0700
     1.3 @@ -0,0 +1,35 @@
     1.4 +/*
     1.5 + *  Copyright Oct 24, 2009 OpenSourceCodeStewardshipFoundation.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 "VPThread__Matrix_Mult/VPThread__Matrix_Mult.h"
    1.16 +
    1.17 +/**
    1.18 + *Matrix multiply program written using VMS_HW piggy-back language
    1.19 + * 
    1.20 + */
    1.21 +int main( int argc, char **argv )
    1.22 + { Matrix      *leftMatrix, *rightMatrix, *resultMatrix;
    1.23 +   ParamBag    *paramBag;
    1.24 +   
    1.25 +   paramBag = makeParamBag();
    1.26 +   readParamFileIntoBag( argv[1], paramBag );
    1.27 +   initialize_Input_Matrices_Via( &leftMatrix, &rightMatrix, paramBag );
    1.28 +   
    1.29 +   resultMatrix = multiplyTheseMatrices( leftMatrix, rightMatrix );
    1.30 +
    1.31 +   printf("\nresult matrix: \n");
    1.32 +
    1.33 +//   printMatrix( resultMatrix );
    1.34 +   
    1.35 +//   VPThread__print_stats();
    1.36 +   
    1.37 +   exit(0); //cleans up
    1.38 + }