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 --- .../localization/src/c/script_localization.c | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) (limited to 'SD-VBS/benchmarks/localization/src/c/script_localization.c') diff --git a/SD-VBS/benchmarks/localization/src/c/script_localization.c b/SD-VBS/benchmarks/localization/src/c/script_localization.c index 3392320..ed37132 100644 --- a/SD-VBS/benchmarks/localization/src/c/script_localization.c +++ b/SD-VBS/benchmarks/localization/src/c/script_localization.c @@ -41,7 +41,6 @@ int main(int argc, char* argv[]) char im1[100]; - printf("Input txt File: "); scanf("%s", im1); fid = readFile(im1); @@ -83,11 +82,10 @@ int main(int argc, char* argv[]) F2D *randn; randn = randWrapper(n,3); - printf("start\n"); - for_each_job{ - fResetArray(pos,n, 3, 0); - fResetArray(vel,n, 3, 0); - fResetArray(ones,n,1,1); + for_each_job { + fResetArray(pos,n, 3, 0); + fResetArray(vel,n, 3, 0); + fResetArray(ones,n,1,1); { int j; @@ -95,7 +93,7 @@ int main(int argc, char* argv[]) for(j=0; j<3; j++) subsref(vel, i, j) += subsref(randn,i,j) * STDDEV_ODOVel; - } + } @@ -486,17 +484,15 @@ int main(int argc, char* argv[]) subsref(resultMat,1,icount) = velOut; subsref(resultMat,2,icount) = posOut; } - + fFreeHandle(sData); - - + if (asubsref(isEOF,0) == 1) break; } } - printf("end..\n"); -#ifdef CHECK +#ifdef CHECK // Self checking - use expected.txt from data directory { -- cgit v1.2.2