mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
MPI
This commit is contained in:
parent
b0bddad82f
commit
420b6b31fd
5 changed files with 41 additions and 22 deletions
|
@ -1,10 +1,10 @@
|
|||
#include "mpi.h"
|
||||
|
||||
int myid;
|
||||
int recvbuf[DATASIZE], sendbuf[DATA_SIZE];
|
||||
int myid;
|
||||
int recvbuf[DATASIZE], sendbuf[DATA_SIZE];
|
||||
|
||||
...
|
||||
/* Minimum bilden */
|
||||
MPI_Reduce(sendbuf, recvbuf, DATA_SIZE, MPI_INT, MPI_MIN,
|
||||
0, MPI_COMM_WORLD);
|
||||
...
|
||||
...
|
||||
/* Minimum bilden */
|
||||
MPI_Reduce(sendbuf, recvbuf, DATA_SIZE, MPI_INT, MPI_MIN,
|
||||
0, MPI_COMM_WORLD);
|
||||
...
|
Loading…
Add table
Add a link
Reference in a new issue