diff options
| author | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-22 03:17:31 -0400 |
|---|---|---|
| committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-22 03:17:31 -0400 |
| commit | 163c440444c74a4e0bbe0a8db3d1ca725413994b (patch) | |
| tree | d4eaf9f407be042811f26dfb2613ff1c99966289 /SD-VBS/benchmarks/disparity/src | |
| parent | d17b33131c14864bd1eae275f49a3f148e21cf29 (diff) | |
Make SD-VBS compatible with run_bench.sh and cleanup
SD-VBS:
- Run silently
- Fix some whitespace errors
- Don't duplicate extra.h
- Auto-detect if building with LITMUS-RT
- Disable result checking
- Add helper symlinks
Misc:
- Remove unused code from libextra
- Set some missing rt_param fields in libextra
- Disable CSV info dump from computeSMTslowdown.sh
- Widen scope of .gitignore on .txt files
- Include list of 2MB DIS pair benchmarks and inputs
Diffstat (limited to 'SD-VBS/benchmarks/disparity/src')
| -rw-r--r-- | SD-VBS/benchmarks/disparity/src/c/script_disparity.c | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/SD-VBS/benchmarks/disparity/src/c/script_disparity.c b/SD-VBS/benchmarks/disparity/src/c/script_disparity.c index 431c02c..7d45ada 100644 --- a/SD-VBS/benchmarks/disparity/src/c/script_disparity.c +++ b/SD-VBS/benchmarks/disparity/src/c/script_disparity.c | |||
| @@ -28,9 +28,7 @@ int main(int argc, char* argv[]) | |||
| 28 | int WIN_SZ=8, SHIFT=64; | 28 | int WIN_SZ=8, SHIFT=64; |
| 29 | FILE* fp; | 29 | FILE* fp; |
| 30 | 30 | ||
| 31 | printf("Image 1: "); | ||
| 32 | scanf("%s", im1); | 31 | scanf("%s", im1); |
| 33 | printf("Image 2: "); | ||
| 34 | scanf("%s", im2); | 32 | scanf("%s", im2); |
| 35 | #ifdef CHECK | 33 | #ifdef CHECK |
| 36 | char checkFile[100] = "./expected_C.txt"; | 34 | char checkFile[100] = "./expected_C.txt"; |
| @@ -86,17 +84,15 @@ int main(int argc, char* argv[]) | |||
| 86 | Iright_moved = iSetArray(paddedRows, paddedCols, 0); | 84 | Iright_moved = iSetArray(paddedRows, paddedCols, 0); |
| 87 | 85 | ||
| 88 | range = iMallocHandle(1, 2); | 86 | range = iMallocHandle(1, 2); |
| 89 | printf("starting..\n"); | 87 | for_each_job { |
| 90 | for_each_job{ | 88 | retDisparity = getDisparity(imleft, imright, WIN_SZ, SHIFT, |
| 91 | retDisparity = getDisparity(imleft, imright, WIN_SZ, SHIFT, | 89 | minSAD, retDisp, halfWin, |
| 92 | minSAD, retDisp, halfWin, | 90 | IrightPadded, IleftPadded, Iright_moved, |
| 93 | IrightPadded, IleftPadded, Iright_moved, | 91 | retSAD, SAD, integralImg, |
| 94 | retSAD, SAD, integralImg, | 92 | range); |
| 95 | range); | ||
| 96 | } | 93 | } |
| 97 | printf("ending\n"); | ||
| 98 | 94 | ||
| 99 | #ifdef CHECK | 95 | #ifdef CHECK |
| 100 | /** Self checking - use expected.txt from data directory **/ | 96 | /** Self checking - use expected.txt from data directory **/ |
| 101 | { | 97 | { |
| 102 | int tol, ret=0; | 98 | int tol, ret=0; |
