diff options
| author | Leo Chan <leochanj@live.unc.edu> | 2020-10-22 01:53:21 -0400 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-22 01:56:35 -0400 |
| commit | d17b33131c14864bd1eae275f49a3f148e21cf29 (patch) | |
| tree | 0d8f77922e8d193cb0f6edab83018f057aad64a0 /SD-VBS/benchmarks/texture_synthesis/src | |
| parent | 601ed25a4c5b66cb75315832c15613a727db2c26 (diff) | |
Squashed commit of the sb-vbs branch.
Includes the SD-VBS benchmarks modified to:
- Use libextra to loop as realtime jobs
- Preallocate memory before starting their main computation
- Accept input via stdin instead of via argc
Does not include the SD-VBS matlab code.
Fixes libextra execution in LITMUS^RT.
Diffstat (limited to 'SD-VBS/benchmarks/texture_synthesis/src')
| -rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd | bin | 0 -> 12222 bytes | |||
| -rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.c | 52 | ||||
| -rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.ctf | bin | 0 -> 174395 bytes | |||
| -rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.prj | 233 | ||||
| -rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd_main.c | 103 | ||||
| -rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd_mcc_component_data.c | 151 | ||||
| -rwxr-xr-x | SD-VBS/benchmarks/texture_synthesis/src/MEX/mccExcludedFiles.log | 12 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/texture_synthesis/src/c/script_texture_synthesis.c | 197 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/texture_synthesis/src/c/texture.c | 396 | ||||
| -rw-r--r-- | SD-VBS/benchmarks/texture_synthesis/src/c/texture.h | 48 |
10 files changed, 1192 insertions, 0 deletions
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd b/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd new file mode 100755 index 0000000..e3b1f28 --- /dev/null +++ b/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd | |||
| Binary files differ | |||
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.c b/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.c new file mode 100755 index 0000000..9649dda --- /dev/null +++ b/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.c | |||
| @@ -0,0 +1,52 @@ | |||
| 1 | /* | ||
| 2 | RES = innerProd(MAT); | ||
| 3 | Computes mat'*mat | ||
| 4 | Odelia Schwartz, 8/97. | ||
| 5 | */ | ||
| 6 | |||
| 7 | #define V4_COMPAT | ||
| 8 | #include <mex.h> | ||
| 9 | |||
| 10 | #include <stdio.h> | ||
| 11 | #include <ctype.h> | ||
| 12 | #include <math.h> | ||
| 13 | #include <strings.h> | ||
| 14 | #include <stdlib.h> | ||
| 15 | |||
| 16 | void mexFunction(int nlhs, /* Num return vals on lhs */ | ||
| 17 | Matrix *plhs[], /* Matrices on lhs */ | ||
| 18 | int nrhs, /* Num args on rhs */ | ||
| 19 | Matrix *prhs[] /* Matrices on rhs */ | ||
| 20 | ) | ||
| 21 | { | ||
| 22 | register double *res, *mat, tmp; | ||
| 23 | register int len, wid, i, k, j, jlen, ilen, imat, jmat; | ||
| 24 | Matrix *arg; | ||
| 25 | |||
| 26 | /* get matrix input argument */ | ||
| 27 | /* should be matrix in which num rows >= num columns */ | ||
| 28 | arg=prhs[0]; | ||
| 29 | mat= mxGetPr(arg); | ||
| 30 | len = (int) mxGetM(arg); | ||
| 31 | wid = (int) mxGetN(arg); | ||
| 32 | if ( wid > len ) | ||
| 33 | printf("innerProd: Warning: width %d is greater than length %d.\n",wid,len); | ||
| 34 | plhs[0] = (Matrix *) mxCreateFull(wid,wid,REAL); | ||
| 35 | if (plhs[0] == NULL) | ||
| 36 | mexErrMsgTxt(sprintf("Error allocating %dx%d result matrix",wid,wid)); | ||
| 37 | res = mxGetPr(plhs[0]); | ||
| 38 | |||
| 39 | for(i=0, ilen=0; i<wid; i++, ilen+=len) | ||
| 40 | { | ||
| 41 | for(j=i, jlen=ilen; j<wid; j++, jlen+=len) | ||
| 42 | { | ||
| 43 | tmp = 0.0; | ||
| 44 | for(k=0, imat=ilen, jmat=jlen; k<len; k++, imat++, jmat++) | ||
| 45 | tmp += mat[imat]*mat[jmat]; | ||
| 46 | res[i*wid+j] = tmp; | ||
| 47 | res[j*wid+i] = tmp; | ||
| 48 | } | ||
| 49 | } | ||
| 50 | return; | ||
| 51 | |||
| 52 | } | ||
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.ctf b/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.ctf new file mode 100755 index 0000000..c6bf079 --- /dev/null +++ b/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.ctf | |||
| Binary files differ | |||
diff --git a/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.prj b/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.prj new file mode 100755 index 0000000..deba3f8 --- /dev/null +++ b/SD-VBS/benchmarks/texture_synthesis/src/MEX/innerProd.prj | |||
| @@ -0,0 +1,233 @@ | |||
| 1 | <?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
| 2 | |||
| 3 | <project> | ||
| 4 | |||
| 5 | <MATLABPath> | ||
| 6 | <Directory>/u/kvs/VisionBenchmark/texture_synthesis/src</Directory> | ||
| 7 | <Directory>/pkg/matlab/toolbox/compiler/deploy</Directory> | ||
| 8 | <Directory>/pkg/matlab/toolbox/matlab/general</Directory> | ||
| 9 | <Directory>/pkg/matlab/toolbox/matlab/ops</Directory> | ||
| 10 | <Directory>/pkg/matlab/toolbox/matlab/lang</Directory> | ||
| 11 | <Directory>/pkg/matlab/toolbox/matlab/elmat</Directory> | ||
| 12 | <Directory>/pkg/matlab/toolbox/matlab/elfun</Directory> | ||
| 13 | <Directory>/pkg/matlab/toolbox/matlab/specfun</Directory> | ||
| 14 | <Directory>/pkg/matlab/toolbox/matlab/matfun</Directory> | ||
| 15 | <Directory>/pkg/matlab/toolbox/matlab/datafun</Directory> | ||
| 16 | <Directory>/pkg/matlab/toolbox/matlab/polyfun</Directory> | ||
| 17 | <Directory>/pkg/matlab/toolbox/matlab/funfun</Directory> | ||
| 18 | <Directory>/pkg/matlab/toolbox/matlab/sparfun</Directory> | ||
| 19 | <Directory>/pkg/matlab/toolbox/matlab/scribe</Directory> | ||
| 20 | <Directory>/pkg/matlab/toolbox/matlab/graph2d</Directory> | ||
| 21 | <Directory>/pkg/matlab/toolbox/matlab/graph3d</Directory> | ||
| 22 | <Directory>/pkg/matlab/toolbox/matlab/specgraph</Directory> | ||
| 23 | <Directory>/pkg/matlab/toolbox/matlab/graphics</Directory> | ||
| 24 | <Directory>/pkg/matlab/toolbox/matlab/uitools</Directory> | ||
| 25 | <Directory>/pkg/matlab/toolbox/matlab/strfun</Directory> | ||
| 26 | <Directory>/pkg/matlab/toolbox/matlab/imagesci</Directory> | ||
| 27 | <Directory>/pkg/matlab/toolbox/matlab/iofun</Directory> | ||
| 28 | <Directory>/pkg/matlab/toolbox/matlab/audiovideo</Directory> | ||
| 29 | <Directory>/pkg/matlab/toolbox/matlab/timefun</Directory> | ||
| 30 | <Directory>/pkg/matlab/toolbox/matlab/datatypes</Directory> | ||
| 31 | <Directory>/pkg/matlab/toolbox/matlab/verctrl</Directory> | ||
| 32 | <Directory>/pkg/matlab/toolbox/matlab/codetools</Directory> | ||
| 33 | <Directory>/pkg/matlab/toolbox/matlab/helptools</Directory> | ||
| 34 | <Directory>/pkg/matlab/toolbox/matlab/demos</Directory> | ||
| 35 | <Directory>/pkg/matlab/toolbox/matlab/timeseries</Directory> | ||
| 36 | <Directory>/pkg/matlab/toolbox/matlab/hds</Directory> | ||
| 37 | <Directory>/pkg/matlab/toolbox/matlab/guide</Directory> | ||
| 38 | <Directory>/pkg/matlab/toolbox/matlab/plottools</Directory> | ||
| 39 | <Directory>/pkg/matlab/toolbox/local</Directory> | ||
| 40 | <Directory>/pkg/matlab/toolbox/shared/controllib</Directory> | ||
| 41 | <Directory>/pkg/matlab/toolbox/simulink/simulink</Directory> | ||
| 42 | <Directory>/pkg/matlab/toolbox/simulink/blocks</Directory> | ||
| 43 | <Directory>/pkg/matlab/toolbox/simulink/components</Directory> | ||
| 44 | <Directory>/pkg/matlab/toolbox/simulink/fixedandfloat</Directory> | ||
| 45 | <Directory>/pkg/matlab/toolbox/simulink/fixedandfloat/fxpdemos</Directory> | ||
| 46 | <Directory>/pkg/matlab/toolbox/simulink/fixedandfloat/obsolete</Directory> | ||
| 47 | <Directory>/pkg/matlab/toolbox/simulink/simdemos</Directory> | ||
| 48 | <Directory>/pkg/matlab/toolbox/simulink/simdemos/aerospace</Directory> | ||
| 49 | <Directory>/pkg/matlab/toolbox/simulink/simdemos/automotive</Directory> | ||
| 50 | <Directory>/pkg/matlab/toolbox/simulink/simdemos/simfeatures</Directory> | ||
| 51 | <Directory>/pkg/matlab/toolbox/simulink/simdemos/simgeneral</Directory> | ||
| 52 | <Directory>/pkg/matlab/toolbox/simulink/dee</Directory> | ||
| 53 | <Directory>/pkg/matlab/toolbox/shared/dastudio</Directory> | ||
| 54 | <Directory>/pkg/matlab/toolbox/shared/glue</Directory> | ||
| 55 | <Directory>/pkg/matlab/toolbox/stateflow/stateflow</Directory> | ||
| 56 | <Directory>/pkg/matlab/toolbox/rtw/rtw</Directory> | ||
| 57 | <Directory>/pkg/matlab/toolbox/simulink/simulink/modeladvisor</Directory> | ||
| 58 | <Directory>/pkg/matlab/toolbox/simulink/simulink/modeladvisor/fixpt</Directory> | ||
| 59 | <Directory>/pkg/matlab/toolbox/simulink/simulink/MPlayIO</Directory> | ||
| 60 | <Directory>/pkg/matlab/toolbox/simulink/simulink/dataobjectwizard</Directory> | ||
| 61 | <Directory>/pkg/matlab/toolbox/shared/fixedpointlib</Directory> | ||
| 62 | <Directory>/pkg/matlab/toolbox/simulink/dataimportexport</Directory> | ||
| 63 | <Directory>/pkg/matlab/toolbox/shared/hdlshared</Directory> | ||
| 64 | <Directory>/pkg/matlab/toolbox/rtw/rtwdemos</Directory> | ||
| 65 | <Directory>/pkg/matlab/toolbox/rtw/rtwdemos/rsimdemos</Directory> | ||
| 66 | <Directory>/pkg/matlab/toolbox/rtw/targets/asap2/asap2</Directory> | ||
| 67 | <Directory>/pkg/matlab/toolbox/rtw/targets/asap2/asap2/user</Directory> | ||
| 68 | <Directory>/pkg/matlab/toolbox/rtw/targets/common/can/blocks</Directory> | ||
| 69 | <Directory>/pkg/matlab/toolbox/rtw/targets/common/configuration/resource</Directory> | ||
| 70 | <Directory>/pkg/matlab/toolbox/rtw/targets/common/tgtcommon</Directory> | ||
| 71 | <Directory>/pkg/matlab/toolbox/stateflow/sfdemos</Directory> | ||
| 72 | <Directory>/pkg/matlab/toolbox/stateflow/coder</Directory> | ||
| 73 | <Directory>/pkg/matlab/toolbox/bioinfo/bioinfo</Directory> | ||
| 74 | <Directory>/pkg/matlab/toolbox/bioinfo/biolearning</Directory> | ||
| 75 | <Directory>/pkg/matlab/toolbox/bioinfo/microarray</Directory> | ||
| 76 | <Directory>/pkg/matlab/toolbox/bioinfo/mass_spec</Directory> | ||
| 77 | <Directory>/pkg/matlab/toolbox/bioinfo/proteins</Directory> | ||
| 78 | <Directory>/pkg/matlab/toolbox/bioinfo/biomatrices</Directory> | ||
| 79 | <Directory>/pkg/matlab/toolbox/bioinfo/biodemos</Directory> | ||
| 80 | <Directory>/pkg/matlab/toolbox/bioinfo/graphtheory</Directory> | ||
| 81 | <Directory>/pkg/matlab/toolbox/commblks/commblks</Directory> | ||
| 82 | <Directory>/pkg/matlab/toolbox/commblks/commmasks</Directory> | ||
| 83 | <Directory>/pkg/matlab/toolbox/commblks/commmex</Directory> | ||
| 84 | <Directory>/pkg/matlab/toolbox/commblks/commblksdemos</Directory> | ||
| 85 | <Directory>/pkg/matlab/toolbox/commblks/commblksobsolete/v3</Directory> | ||
| 86 | <Directory>/pkg/matlab/toolbox/commblks/commblksobsolete/v2p5</Directory> | ||
| 87 | <Directory>/pkg/matlab/toolbox/commblks/commblksobsolete/v2</Directory> | ||
| 88 | <Directory>/pkg/matlab/toolbox/comm/comm</Directory> | ||
| 89 | <Directory>/pkg/matlab/toolbox/comm/commdemos</Directory> | ||
| 90 | <Directory>/pkg/matlab/toolbox/comm/commdemos/commdocdemos</Directory> | ||
| 91 | <Directory>/pkg/matlab/toolbox/comm/commobsolete</Directory> | ||
| 92 | <Directory>/pkg/matlab/toolbox/compiler</Directory> | ||
| 93 | <Directory>/pkg/matlab/toolbox/control/control</Directory> | ||
| 94 | <Directory>/pkg/matlab/toolbox/control/ctrlguis</Directory> | ||
| 95 | <Directory>/pkg/matlab/toolbox/control/ctrlobsolete</Directory> | ||
| 96 | <Directory>/pkg/matlab/toolbox/control/ctrlutil</Directory> | ||
| 97 | <Directory>/pkg/matlab/toolbox/control/ctrlde | ||
