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/mser/src/c/script_mser.c | |
| 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/mser/src/c/script_mser.c')
| -rw-r--r-- | SD-VBS/benchmarks/mser/src/c/script_mser.c | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/SD-VBS/benchmarks/mser/src/c/script_mser.c b/SD-VBS/benchmarks/mser/src/c/script_mser.c index d4a98cd..3e98f86 100644 --- a/SD-VBS/benchmarks/mser/src/c/script_mser.c +++ b/SD-VBS/benchmarks/mser/src/c/script_mser.c | |||
| @@ -33,7 +33,6 @@ int main(int argc, char* argv[]) | |||
| 33 | 33 | ||
| 34 | int ndims, nel, gdl, nmer; | 34 | int ndims, nel, gdl, nmer; |
| 35 | 35 | ||
| 36 | printf("Input Image: "); | ||
| 37 | scanf("%s", im1); | 36 | scanf("%s", im1); |
| 38 | 37 | ||
| 39 | I = readImage(im1); | 38 | I = readImage(im1); |
| @@ -74,19 +73,17 @@ int main(int argc, char* argv[]) | |||
| 74 | 73 | ||
| 75 | 74 | ||
| 76 | out = iMallocHandle(1, nmer); | 75 | out = iMallocHandle(1, nmer); |
| 77 | printf("start\n"); | 76 | for_each_job { |
| 78 | for_each_job{ | ||
| 79 | idx = mser(It, 2, subs_pt, nsubs_pt, strides_pt, visited_pt, dims, | 77 | idx = mser(It, 2, subs_pt, nsubs_pt, strides_pt, visited_pt, dims, |
| 80 | joins_pt, | 78 | joins_pt, |
| 81 | regions_pt, | 79 | regions_pt, |
| 82 | pairs_pt, | 80 | pairs_pt, |
| 83 | forest_pt, | 81 | forest_pt, |
| 84 | acc_pt, ell_pt, | 82 | acc_pt, ell_pt, |
| 85 | out); | 83 | out); |
| 86 | } | 84 | } |
| 87 | printf("end..\n"); | 85 | |
| 88 | 86 | #ifdef CHECK | |
| 89 | #ifdef CHECK | ||
| 90 | /** Self checking - use expected.txt from data directory **/ | 87 | /** Self checking - use expected.txt from data directory **/ |
| 91 | { | 88 | { |
| 92 | int tol, ret=0; | 89 | int tol, ret=0; |
