Description Usage Arguments Details Value Examples
Orderly printing of data across MPI ranks. Similar to
pbdMPI::comm.print()
.
1 2 3 |
x |
The input to be printed. |
quiet |
Should ranks print their rank number before printing the input? |
all.rank |
Should all ranks print or only rank 0? |
comm |
MPI communicator number. |
All printing is done on rank 0 to ensure printing occurs in rank order. This
requires communication if all.rank=TRUE
.
Invisibly returns NULL
.
1 2 3 4 5 6 7 8 9 | ## Not run:
suppressMessages(library(cop))
x = matrix(1:4, 2) + 10*comm.rank()
mpi_print(x)
finalize()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.