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/multi_ncut/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/multi_ncut/src')
-rw-r--r-- | SD-VBS/benchmarks/multi_ncut/src/c/script_multi_ncut.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/SD-VBS/benchmarks/multi_ncut/src/c/script_multi_ncut.c b/SD-VBS/benchmarks/multi_ncut/src/c/script_multi_ncut.c index e4f7912..77c6b71 100644 --- a/SD-VBS/benchmarks/multi_ncut/src/c/script_multi_ncut.c +++ b/SD-VBS/benchmarks/multi_ncut/src/c/script_multi_ncut.c | |||
@@ -28,7 +28,6 @@ int main(int argc, char* argv[]) | |||
28 | 28 | ||
29 | F2D *imageOut, *tempOut; | 29 | F2D *imageOut, *tempOut; |
30 | F2D *edgeWeights, *in; | 30 | F2D *edgeWeights, *in; |
31 | printf("Input image: "); | ||
32 | scanf("%s", im1); | 31 | scanf("%s", im1); |
33 | im = readImage(im1); | 32 | im = readImage(im1); |
34 | 33 | ||
@@ -50,13 +49,12 @@ int main(int argc, char* argv[]) | |||
50 | u->elts = (uni_elt*)malloc(sizeof(uni_elt)*num_vertices); | 49 | u->elts = (uni_elt*)malloc(sizeof(uni_elt)*num_vertices); |
51 | output = iMallocHandle(height, width); | 50 | output = iMallocHandle(height, width); |
52 | 51 | ||
53 | printf("start\n"); | ||
54 | for_each_job{ | 52 | for_each_job{ |
55 | seg = segment_image(im, sigma, k, min_size, num_ccs, segments, edges, imageOut, tempOut, kernel, edgeWeights, in, ind, u, output); | 53 | seg = segment_image(im, sigma, k, min_size, num_ccs, segments, edges, imageOut, tempOut, kernel, edgeWeights, in, ind, u, output); |
56 | out = seg; | 54 | out = seg; |
57 | } | 55 | } |
58 | printf("end..\n"); | 56 | |
59 | #ifdef CHECK | 57 | #ifdef CHECK |
60 | /** Self checking - use expected.txt from data directory **/ | 58 | /** Self checking - use expected.txt from data directory **/ |
61 | { | 59 | { |
62 | int ret=0; | 60 | int ret=0; |