From 163c440444c74a4e0bbe0a8db3d1ca725413994b Mon Sep 17 00:00:00 2001 From: Joshua Bakita Date: Thu, 22 Oct 2020 03:17:31 -0400 Subject: 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 --- SD-VBS/benchmarks/disparity/src/c/script_disparity.c | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'SD-VBS/benchmarks/disparity/src') 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[]) int WIN_SZ=8, SHIFT=64; FILE* fp; - printf("Image 1: "); scanf("%s", im1); - printf("Image 2: "); scanf("%s", im2); #ifdef CHECK char checkFile[100] = "./expected_C.txt"; @@ -86,17 +84,15 @@ int main(int argc, char* argv[]) Iright_moved = iSetArray(paddedRows, paddedCols, 0); range = iMallocHandle(1, 2); - printf("starting..\n"); - for_each_job{ - retDisparity = getDisparity(imleft, imright, WIN_SZ, SHIFT, - minSAD, retDisp, halfWin, - IrightPadded, IleftPadded, Iright_moved, - retSAD, SAD, integralImg, - range); + for_each_job { + retDisparity = getDisparity(imleft, imright, WIN_SZ, SHIFT, + minSAD, retDisp, halfWin, + IrightPadded, IleftPadded, Iright_moved, + retSAD, SAD, integralImg, + range); } - printf("ending\n"); -#ifdef CHECK +#ifdef CHECK /** Self checking - use expected.txt from data directory **/ { int tol, ret=0; -- cgit v1.2.2