Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132944 views
License: OTHER
1
#include "mpi.h"
2
3
int myid;
4
int recvbuf[DATASIZE], sendbuf[DATA_SIZE];
5
6
...
7
/* Minimum bilden */
8
MPI_Reduce(sendbuf, recvbuf, DATA_SIZE, MPI_INT,
9
MPI_MIN, 0, MPI_COMM_WORLD);
10
...
11