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