diff DKU__Test_App.h @ 0:efca8e7ec576

initial add -- working version
author Sean Halle <seanhalle@yahoo.com>
date Tue, 24 Sep 2013 08:08:18 -0700
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/DKU__Test_App.h	Tue Sep 24 08:08:18 2013 -0700
     1.3 @@ -0,0 +1,53 @@
     1.4 +/*
     1.5 + *  Copyright 2013 OpenSourceResearchInstitute.org
     1.6 + *  Licensed under GNU General Public License version 2
     1.7 + */
     1.8 +
     1.9 +#ifndef _DKU_TEST_APP_H_
    1.10 +#define _DKU_TEST_APP_H_
    1.11 +
    1.12 +#include <stdio.h>
    1.13 +
    1.14 +#include "../PR_defs__turn_on_and_off.h"
    1.15 +#include <PR__include/langlets/PRServ__wrapper_library.h>
    1.16 +
    1.17 +/*Bare smoke test of DKU wrapper library functions.
    1.18 + * Create one DKU instance, with a dummy kernel
    1.19 + * Bare bones divider and undivider
    1.20 + * simple root piece maker
    1.21 + * dummy serial kernel
    1.22 + */
    1.23 +
    1.24 +//===============================  Defines  ==============================
    1.25 +
    1.26 +//==============================  Structures  ==============================
    1.27 +typedef struct
    1.28 + { int32 *data;
    1.29 + } 
    1.30 +SeedParams;
    1.31 +
    1.32 +typedef struct
    1.33 + {
    1.34 +   int32 *data;
    1.35 +   int32  size;
    1.36 +   int32  startIter;
    1.37 +   int32  endIter;
    1.38 + }
    1.39 +TestAppStruct;
    1.40 +
    1.41 +//============================= Processor Functions =========================
    1.42 +void test_app_seed_Fn(      void *data, SlaveVP *animatingVP ); //seed VP function
    1.43 +
    1.44 +DKUPiece *rootPieceMakerFn( void *data, DKUInstance *dkuInstance );
    1.45 +void kernelFn( void *_params, SlaveVP *animVP );       //used as task birth Fn
    1.46 +void serialKernelFn( void *_params, SlaveVP *animVP ); //used as task birth Fn
    1.47 +void dividerFn( DKUPiece *piece );
    1.48 +void undividerFn( DKUPiece *piece );
    1.49 +
    1.50 +DKUPiece *
    1.51 +make_root_dku_piece_for_test_inst( int32 *data, int32 size, 
    1.52 +                                   DKUInstance *dkuInstance );
    1.53 +
    1.54 +//================================ Global Vars ==============================
    1.55 +
    1.56 +#endif /*_SSR_MATRIX_MULT_H_*/