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 rank;
4
MPI_Comm comm;
5
6
...
7
MPI_Comm_rank(comm, &rank);
8
if (rank==0) {
9
... Code fur Prozess 0 ...
10
}
11
else {
12
... Code fur die anderen Prozesse ...
13
}
14