This source file includes following definitions.
- MPI_Bcast
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 #include "ompi_config.h"
21
22 #include <stdio.h>
23
24 #include "opal_stdint.h"
25
26 #include "ompi/mpi/c/bindings.h"
27
28
29 int MPI_Bcast(void *buffer, int count, MPI_Datatype datatype,
30 int root, MPI_Comm comm)
31 {
32 char typename[MPI_MAX_OBJECT_NAME], commname[MPI_MAX_OBJECT_NAME];
33 int len;
34 int rank;
35
36 PMPI_Comm_rank(MPI_COMM_WORLD, &rank);
37 PMPI_Type_get_name(datatype, typename, &len);
38 PMPI_Comm_get_name(comm, commname, &len);
39
40 fprintf(stderr, "MPI_BCAST[%d]: buffer %0" PRIxPTR " count %d datatype %s root %d comm %s\n",
41 rank, (uintptr_t) buffer, count, typename, root, commname);
42 fflush(stderr);
43
44 return PMPI_Bcast(buffer, count, datatype, root, comm);
45 }