Module: MPipe::Comm
- Defined in:
- ext/mpipe/mpipe.c
Class Method Summary collapse
Class Method Details
.rank ⇒ Object
116 117 118 119 120 121 122 123 |
# File 'ext/mpipe/mpipe.c', line 116 static VALUE mp_comm_rank(VALUE self) { int rank; MPI_Comm_rank(MPI_COMM_WORLD, &rank); return INT2NUM(rank); } |
.size ⇒ Object
107 108 109 110 111 112 113 114 |
# File 'ext/mpipe/mpipe.c', line 107 static VALUE mp_comm_size(VALUE self) { int size; MPI_Comm_size(MPI_COMM_WORLD, &size); return INT2NUM(size); } |