2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-26 06:48:04 +02:00
LaTeX-examples/documents/Programmierparadigmen/scripts/mpi/mpi-reduce-example.c
2014-04-07 10:33:49 +02:00

10 lines
No EOL
191 B
C

#include "mpi.h"
int myid;
int recvbuf[DATASIZE], sendbuf[DATA_SIZE];
...
/* Minimum bilden */
MPI_Reduce(sendbuf, recvbuf, DATA_SIZE, MPI_INT,
MPI_MIN, 0, MPI_COMM_WORLD);
...