Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > DKU > DKU__Test_App
comparison 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 |
comparison
equal
deleted
inserted
replaced
| -1:000000000000 | 0:7f680c31cebe |
|---|---|
| 1 /* | |
| 2 * Copyright 2013 OpenSourceResearchInstitute.org | |
| 3 * Licensed under GNU General Public License version 2 | |
| 4 */ | |
| 5 | |
| 6 #ifndef _DKU_TEST_APP_H_ | |
| 7 #define _DKU_TEST_APP_H_ | |
| 8 | |
| 9 #include <stdio.h> | |
| 10 | |
| 11 #include "../PR_defs__turn_on_and_off.h" | |
| 12 #include <PR__include/langlets/PRServ__wrapper_library.h> | |
| 13 | |
| 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 */ | |
| 20 | |
| 21 //=============================== Defines ============================== | |
| 22 | |
| 23 //============================== Structures ============================== | |
| 24 typedef struct | |
| 25 { int32 *data; | |
| 26 } | |
| 27 SeedParams; | |
| 28 | |
| 29 typedef struct | |
| 30 { | |
| 31 int32 *data; | |
| 32 int32 size; | |
| 33 int32 startIter; | |
| 34 int32 endIter; | |
| 35 } | |
| 36 TestAppStruct; | |
| 37 | |
| 38 //============================= Processor Functions ========================= | |
| 39 void test_app_seed_Fn( void *data, SlaveVP *animatingVP ); //seed VP function | |
| 40 | |
| 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 ); | |
| 46 | |
| 47 DKUPiece * | |
| 48 make_root_dku_piece_for_test_inst( int32 *data, int32 size, | |
| 49 DKUInstance *dkuInstance ); | |
| 50 | |
| 51 //================================ Global Vars ============================== | |
| 52 | |
| 53 #endif /*_SSR_MATRIX_MULT_H_*/ |
