Skip to content

Commit

Permalink
Insert more denominations in coins_input and change params based on this
Browse files Browse the repository at this point in the history
  • Loading branch information
moazzammoriani committed Jul 6, 2022
1 parent c63aae3 commit 52fc018
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions benchmarks/multicore-numerical/count_change_iter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ let cc amt (coins : ((int * int) list)) =
aux coins []

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

let () =
Expand Down
5 changes: 2 additions & 3 deletions benchmarks/multicore-numerical/count_change_iter_multicore.ml
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,12 @@ let cc_par pool amt (coins : ((int * int) list)) arr =
let curr = fun (_, _, x, _) -> x in
let stack = fun (_, _, _, x) -> x in
T.parallel_for pool ~start:0 ~finish:(len-1) ~body:(fun i ->
Printf.printf "%d\n" i;
arr.(i) <- des (amt setup.(i)) (c setup.(i)) (curr setup.(i)) [] (stack setup.(i));
)

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

let arr = A.init (L.length coins_input) (fun _ -> [])
Expand Down
18 changes: 9 additions & 9 deletions multicore_parallel_run_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -199,22 +199,22 @@
"name": "count_change_iter",
"tags": ["10s_100s", "macro_bench"],
"runs": [
{ "params": "2200", "paramwrapper": "taskset --cpu-list 2-13" }
{ "params": "400", "paramwrapper": "taskset --cpu-list 2-13" }
]
},
{
"executable": "benchmarks/multicore-numerical/count_change_iter_multicore.exe",
"name": "count_change_iter_multicore",
"tags": ["macro_bench","10s_100s"],
"runs": [
{ "params": "1 2200", "paramwrapper": "taskset --cpu-list 2-13"},
{ "params": "2 2200", "paramwrapper": "taskset --cpu-list 2-13" },
{ "params": "4 2200", "paramwrapper": "taskset --cpu-list 2-13" },
{ "params": "8 2200", "paramwrapper": "taskset --cpu-list 2-13" },
{ "params": "12 2200", "paramwrapper": "taskset --cpu-list 2-13" },
{ "params": "16 2200", "paramwrapper": "taskset --cpu-list 2-13,16-27" },
{ "params": "20 2200", "paramwrapper": "taskset --cpu-list 2-13,16-27" },
{ "params": "24 2200", "paramwrapper": "taskset --cpu-list 2-13,16-27" }
{ "params": "1 400", "paramwrapper": "taskset --cpu-list 2-13"},
{ "params": "2 400", "paramwrapper": "taskset --cpu-list 2-13" },
{ "params": "4 400", "paramwrapper": "taskset --cpu-list 2-13" },
{ "params": "8 400", "paramwrapper": "taskset --cpu-list 2-13" },
{ "params": "12 400", "paramwrapper": "taskset --cpu-list 2-13" },
{ "params": "16 400", "paramwrapper": "taskset --cpu-list 2-13,16-27" },
{ "params": "20 400", "paramwrapper": "taskset --cpu-list 2-13,16-27" },
{ "params": "24 400", "paramwrapper": "taskset --cpu-list 2-13,16-27" }
]
},

Expand Down
4 changes: 2 additions & 2 deletions run_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -293,12 +293,12 @@
"executable": "benchmarks/multicore-numerical/count_change_iter.exe",
"name": "count_change_iter",
"tags": [
"1s_10s",
"10s_100s",
"macro_bench"
],
"runs": [
{
"params": "1600"
"params": "400"
}
]
},
Expand Down
2 changes: 1 addition & 1 deletion run_config_byte.json
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@
"name": "count_change_iter.bc",
"runs": [
{
"params": "2200"
"params": "400"
}
]
},
Expand Down

0 comments on commit 52fc018

Please sign in to comment.