10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-11-19 04:22:21 +01:00
QCaml/run_parallel.ml

12 lines
318 B
OCaml
Raw Normal View History

2018-10-16 00:27:58 +02:00
let () =
2018-10-16 19:09:00 +02:00
Printf.printf "Hello from rank %d of %d.\n" Parallel.rank Parallel.size;
let () = Parallel.barrier () in
2018-10-17 00:56:14 +02:00
(*
let v = Parallel.Vec.init 47 (fun i -> float_of_int i) in
*)
2018-10-17 10:15:02 +02:00
let a = Array.init 47 (fun i -> float_of_int (i+1)) in
2018-10-17 00:56:14 +02:00
let v = Parallel.Vec.of_array a in
2018-10-16 19:09:00 +02:00
Format.printf "%a" Parallel.Vec.pp v;
2018-10-16 00:27:58 +02:00