is.comm.null | R Documentation |
The functions check MPI_COMM_NULL.
is.comm.null(comm = .pbd_env$SPMD.CT$comm)
comm |
a comm number. |
These functions are for internal uses.
TRUE if input comm is MPI_COMM_NULL, otherwise FALSE.
Wei-Chen Chen wccsnow@gmail.com, George Ostrouchov, Drew Schmidt, Pragneshkumar Patel, and Hao Yu.
Programming with Big Data in R Website: https://pbdr.org/
## Not run: ### Save code in a file "demo.r" and run with 2 processors by ### SHELL> mpiexec -np 2 Rscript demo.r spmd.code <- " ### Initial. suppressMessages(library(pbdMPI, quietly = TRUE)) init() .comm.size <- comm.size() .comm.rank <- comm.rank() ### Examples. is.comm.null(0L) is.comm.null(1L) ### Finish. finalize() " # execmpi(spmd.code, nranks = 2L) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.