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/svm/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/svm/src')
-rw-r--r-- | SD-VBS/benchmarks/svm/src/c/script_svm.c | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/SD-VBS/benchmarks/svm/src/c/script_svm.c b/SD-VBS/benchmarks/svm/src/c/script_svm.c index 62a264d..f1ce963 100644 --- a/SD-VBS/benchmarks/svm/src/c/script_svm.c +++ b/SD-VBS/benchmarks/svm/src/c/script_svm.c | |||
@@ -70,24 +70,23 @@ int main(int argc, char* argv[]) | |||
70 | #endif | 70 | #endif |
71 | 71 | ||
72 | 72 | ||
73 | printf("trn file 1: "); | 73 | // trn file 1 |
74 | scanf("%s", im1); | 74 | scanf("%s", im1); |
75 | trn1 = readFile(im1); | 75 | trn1 = readFile(im1); |
76 | 76 | ||
77 | printf("trn file 2: "); | 77 | // trn file 2 |
78 | scanf("%s", im1); | 78 | scanf("%s", im1); |
79 | trn2 = readFile(im1); | 79 | trn2 = readFile(im1); |
80 | 80 | ||
81 | printf("tst file 1: "); | 81 | // tst file 1 |
82 | scanf("%s", im1); | 82 | scanf("%s", im1); |
83 | tst1 = readFile(im1); | 83 | tst1 = readFile(im1); |
84 | 84 | ||
85 | printf("tst file 2: "); | 85 | // tst file 2 |
86 | scanf("%s", im1); | 86 | scanf("%s", im1); |
87 | tst2 = readFile(im1); | 87 | tst2 = readFile(im1); |
88 | 88 | ||
89 | printf("start.\n"); | 89 | for_each_job { |
90 | for_each_job{ | ||
91 | alpha = getAlphaFromTrainSet(N, trn1, trn2, iter); | 90 | alpha = getAlphaFromTrainSet(N, trn1, trn2, iter); |
92 | a_result = alpha->a_result; | 91 | a_result = alpha->a_result; |
93 | b_result = alpha->b_result; | 92 | b_result = alpha->b_result; |
@@ -135,8 +134,8 @@ int main(int argc, char* argv[]) | |||
135 | asubsref(result,n) = maxs; | 134 | asubsref(result,n) = maxs; |
136 | } | 135 | } |
137 | } | 136 | } |
138 | printf("end..\n"); | 137 | |
139 | #ifdef CHECK | 138 | #ifdef CHECK |
140 | /** Self checking - use expected.txt from data directory **/ | 139 | /** Self checking - use expected.txt from data directory **/ |
141 | { | 140 | { |
142 | int ret=0; | 141 | int ret=0; |