Skip to content

Commit

Permalink
Fix fibonacci multicore example
Browse files Browse the repository at this point in the history
rectify incorrect paranthesis placement
  • Loading branch information
Sudha247 committed Dec 9, 2022
1 parent a2c621f commit 8d7d2d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/task/fibonacci_multicore.ml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ let rec fib_par pool n =

let main =
let pool = Task.setup_pool ~num_domains:(num_domains - 1) () in
let res = Task.run pool (fun () -> fib_par pool) n in
let res = Task.run pool (fun () -> fib_par pool n) in
Task.teardown_pool pool;
Printf.printf "fib(%d) = %d\n" n res

0 comments on commit 8d7d2d6

Please sign in to comment.