view 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 source
1 /*
2 * Copyright 2013 OpenSourceResearchInstitute.org
3 * Licensed under GNU General Public License version 2
4 */
6 #ifndef _DKU_TEST_APP_H_
7 #define _DKU_TEST_APP_H_
9 #include <stdio.h>
11 #include "../PR_defs__turn_on_and_off.h"
12 #include <PR__include/langlets/PRServ__wrapper_library.h>
14 /*Bare smoke test of DKU wrapper library functions.
15 * Create one DKU instance, with a dummy kernel
16 * Bare bones divider and undivider
17 * simple root piece maker
18 * dummy serial kernel
19 */
21 //=============================== Defines ==============================
23 //============================== Structures ==============================
24 typedef struct
25 { int32 *data;
26 }
27 SeedParams;
29 typedef struct
30 {
31 int32 *data;
32 int32 size;
33 int32 startIter;
34 int32 endIter;
35 }
36 TestAppStruct;
38 //============================= Processor Functions =========================
39 void test_app_seed_Fn( void *data, SlaveVP *animatingVP ); //seed VP function
41 DKUPiece *rootPieceMakerFn( void *data, DKUInstance *dkuInstance );
42 void kernelFn( void *_params, SlaveVP *animVP ); //used as task birth Fn
43 void serialKernelFn( void *_params, SlaveVP *animVP ); //used as task birth Fn
44 void dividerFn( DKUPiece *piece );
45 void undividerFn( DKUPiece *piece );
47 DKUPiece *
48 make_root_dku_piece_for_test_inst( int32 *data, int32 size,
49 DKUInstance *dkuInstance );
51 //================================ Global Vars ==============================
53 #endif /*_SSR_MATRIX_MULT_H_*/