Skip to content

Commit c1b8f35

Browse files
Insert more denominations in coins_input and change params based on this
1 parent e14143f commit c1b8f35

File tree

5 files changed

+16
-17
lines changed

5 files changed

+16
-17
lines changed

benchmarks/multicore-numerical/count_change_iter.ml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ let cc amt (coins : ((int * int) list)) =
5656
aux coins []
5757

5858
let coins_input : (int * int) list =
59-
let cs = [250 ; 100 ; 25 ; 10 ; 5 ; 1] in
60-
let qs = [55 ; 88 ; 88 ; 99 ; 122 ; 177] in
59+
let cs = [500 ; 250 ; 150; 100 ; 75 ; 50 ; 25 ; 20 ; 10 ; 5 ; 2 ; 1] in
60+
let qs = [22; 55 ; 88 ; 88 ; 99 ; 99 ; 122; 122; 122 ; 122; 177; 177] in
6161
L.combine cs qs
6262

6363
let () =

benchmarks/multicore-numerical/count_change_iter_multicore.ml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,12 @@ let cc_par pool amt (coins : ((int * int) list)) arr =
7575
let curr = fun (_, _, x, _) -> x in
7676
let stack = fun (_, _, _, x) -> x in
7777
T.parallel_for pool ~start:0 ~finish:(len-1) ~body:(fun i ->
78-
Printf.printf "%d\n" i;
7978
arr.(i) <- des (amt setup.(i)) (c setup.(i)) (curr setup.(i)) [] (stack setup.(i));
8079
)
8180

8281
let coins_input : (int * int) list =
83-
let cs = [250 ; 100 ; 25 ; 10 ; 5 ; 1] in
84-
let qs = [55 ; 88 ; 88 ; 99 ; 122 ; 177] in
82+
let cs = [500 ; 250 ; 150; 100 ; 75 ; 50 ; 25 ; 20 ; 10 ; 5 ; 2 ; 1] in
83+
let qs = [22; 55 ; 88 ; 88 ; 99 ; 99 ; 122; 122; 122 ; 122; 177; 177] in
8584
L.combine cs qs
8685

8786
let arr = A.init (L.length coins_input) (fun _ -> [])

multicore_parallel_run_config.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -199,22 +199,22 @@
199199
"name": "count_change_iter",
200200
"tags": ["10s_100s", "macro_bench"],
201201
"runs": [
202-
{ "params": "2200", "paramwrapper": "taskset --cpu-list 2-13" }
202+
{ "params": "400", "paramwrapper": "taskset --cpu-list 2-13" }
203203
]
204204
},
205205
{
206206
"executable": "benchmarks/multicore-numerical/count_change_iter_multicore.exe",
207207
"name": "count_change_iter_multicore",
208208
"tags": ["macro_bench","10s_100s"],
209209
"runs": [
210-
{ "params": "1 2200", "paramwrapper": "taskset --cpu-list 2-13"},
211-
{ "params": "2 2200", "paramwrapper": "taskset --cpu-list 2-13" },
212-
{ "params": "4 2200", "paramwrapper": "taskset --cpu-list 2-13" },
213-
{ "params": "8 2200", "paramwrapper": "taskset --cpu-list 2-13" },
214-
{ "params": "12 2200", "paramwrapper": "taskset --cpu-list 2-13" },
215-
{ "params": "16 2200", "paramwrapper": "taskset --cpu-list 2-13,16-27" },
216-
{ "params": "20 2200", "paramwrapper": "taskset --cpu-list 2-13,16-27" },
217-
{ "params": "24 2200", "paramwrapper": "taskset --cpu-list 2-13,16-27" }
210+
{ "params": "1 400", "paramwrapper": "taskset --cpu-list 2-13"},
211+
{ "params": "2 400", "paramwrapper": "taskset --cpu-list 2-13" },
212+
{ "params": "4 400", "paramwrapper": "taskset --cpu-list 2-13" },
213+
{ "params": "8 400", "paramwrapper": "taskset --cpu-list 2-13" },
214+
{ "params": "12 400", "paramwrapper": "taskset --cpu-list 2-13" },
215+
{ "params": "16 400", "paramwrapper": "taskset --cpu-list 2-13,16-27" },
216+
{ "params": "20 400", "paramwrapper": "taskset --cpu-list 2-13,16-27" },
217+
{ "params": "24 400", "paramwrapper": "taskset --cpu-list 2-13,16-27" }
218218
]
219219
},
220220

run_config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,12 +293,12 @@
293293
"executable": "benchmarks/multicore-numerical/count_change_iter.exe",
294294
"name": "count_change_iter",
295295
"tags": [
296-
"1s_10s",
296+
"10s_100s",
297297
"macro_bench"
298298
],
299299
"runs": [
300300
{
301-
"params": "1600"
301+
"params": "400"
302302
}
303303
]
304304
},

run_config_byte.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@
222222
"name": "count_change_iter.bc",
223223
"runs": [
224224
{
225-
"params": "2200"
225+
"params": "400"
226226
}
227227
]
228228
},

0 commit comments

Comments
 (0)