10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-11-06 22:23:42 +01:00

Broadcasts

This commit is contained in:
Anthony Scemama 2018-10-17 18:48:39 +02:00
parent ee52c024e4
commit 937d75c752
2 changed files with 28 additions and 2 deletions

View File

@ -21,6 +21,14 @@ export LACAML_LIBS="-L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_rt -lpthr
opam install lacaml
```
# MPI
MPI is the Message Passing Interface, required for distributed parallelism.
```bash
opam install mpi
```
To use Intel MPI
```bash
@ -42,3 +50,19 @@ cd odoc-ltxhtml
make install
```
# Alcotest
Lightweight and colourful test framework
```bash
opam install alcotest
```
# Zarith
Implements arithmetic and logical operations over arbitrary-precision integer
```bash
opam install zarith
```

View File

@ -32,7 +32,8 @@ let broadcast_int x =
let broadcast_int_array x =
Mpi.broadcast_int_array x 0 Mpi.comm_world
Mpi.broadcast_int_array x 0 Mpi.comm_world;
x
let broadcast_float x =
@ -40,7 +41,8 @@ let broadcast_float x =
let broadcast_float_array x =
Mpi.broadcast_float_array x 0 Mpi.comm_world
Mpi.broadcast_float_array x 0 Mpi.comm_world;
x
let broadcast_vec x =