|
Neko 1.99.5
A portable framework for high-order spectral element flow simulations
|
Gather-scatter communication method. More...


Public Member Functions | |
| procedure(gs_comm_init), deferred, pass | init gs_comm_init |
| procedure(gs_comm_free), deferred, pass | free gs_comm_free |
| procedure(gs_nbsend), deferred, pass | nbsend gs_nbsend |
| procedure(gs_nbrecv), deferred, pass | nbrecv gs_nbrecv |
| procedure(gs_nbwait), deferred, pass | nbwait gs_nbwait |
| procedure, pass(this) | init_dofs (this) |
| procedure, pass(this) | free_dofs (this) |
| procedure, pass(this) | init_order (this, send_pe, recv_pe) |
| Obtains which ranks to send and receive data from. | |
| procedure, pass(this) | free_order (this) |
| procedure, pass(this) | nbsend_vec (this, u, n, nc, tag, deps, strm) |
| Fused vector halo exchange. Default implementations abort; backends that set vec_supported = .true. override them. | |
| procedure, pass(this) | nbrecv_vec (this, tag, nc) |
| Default fused vector receive. Abort unless a backend overrides it. | |
| procedure, pass(this) | nbwait_vec (this, u, n, nc, op, strm) |
| Default fused vector wait/reduce. Abort unless a backend overrides it. | |
Public Attributes | |
| type(stack_i4_t), dimension(:), allocatable | send_dof |
| A list of stacks of dof indices local to this process to send to rank_i. | |
| type(stack_i4_t), dimension(:), allocatable | recv_dof |
| recv_dof(rank_i) is a stack of dof indices local to this process to receive from rank_i. size(recv_dof) == pe_size | |
| integer, dimension(:), allocatable | send_pe |
| Array of ranks that this process should send to. | |
| integer, dimension(:), allocatable | recv_pe |
| array of ranks that this process will receive messages from | |
| logical | vec_supported = .false. |
| Whether this backend implements the fused vector (multi-component) halo exchange (nbsend_vec/nbrecv_vec/nbwait_vec). When .false., the gs_op_r3 caller falls back to nc independent scalar exchanges. | |
Definition at line 52 of file gs_comm.f90.
|
pure virtual |
Definition at line 70 of file gs_comm.f90.
Definition at line 75 of file gs_comm.f90.
Definition at line 77 of file gs_comm.f90.
|
pure virtual |
Definition at line 69 of file gs_comm.f90.
Definition at line 74 of file gs_comm.f90.
| procedure, pass(this) gs_comm::gs_comm_t::init_order | ( | class(gs_comm_t), intent(inout) | this, |
| type(stack_i4_t), intent(inout) | send_pe, | ||
| type(stack_i4_t), intent(inout) | recv_pe | ||
| ) |
| send_pe,only | contains rank ids this porcesss should send to |
| recv_pe,only | the ranks this process should receive from |
Definition at line 76 of file gs_comm.f90.
Definition at line 72 of file gs_comm.f90.
| procedure, pass(this) gs_comm::gs_comm_t::nbrecv_vec | ( | class(gs_comm_t), intent(inout) | this, |
| integer, intent(in) | tag, | ||
| integer, intent(in) | nc | ||
| ) |
Definition at line 81 of file gs_comm.f90.
Definition at line 71 of file gs_comm.f90.
| procedure, pass(this) gs_comm::gs_comm_t::nbsend_vec | ( | class(gs_comm_t), intent(inout) | this, |
| real(kind=rp), dimension(nc*n), intent(inout) | u, | ||
| integer, intent(in) | n, | ||
| integer, intent(in) | nc, | ||
| integer, intent(in) | tag, | ||
| type(c_ptr), intent(inout) | deps, | ||
| type(c_ptr), intent(inout) | strm | ||
| ) |
| u | compact shared buffer, component-outer: u((c-1)*n + idx) |
| n | number of shared dofs (per component) |
| nc | number of components |
Definition at line 80 of file gs_comm.f90.
Definition at line 73 of file gs_comm.f90.
| procedure, pass(this) gs_comm::gs_comm_t::nbwait_vec | ( | class(gs_comm_t), intent(inout) | this, |
| real(kind=rp), dimension(nc*n), intent(inout) | u, | ||
| integer, intent(in) | n, | ||
| integer, intent(in) | nc, | ||
| integer | op, | ||
| type(c_ptr), intent(inout) | strm | ||
| ) |
Definition at line 82 of file gs_comm.f90.
| type(stack_i4_t), dimension(:), allocatable gs_comm::gs_comm_t::recv_dof |
Definition at line 57 of file gs_comm.f90.
| integer, dimension(:), allocatable gs_comm::gs_comm_t::recv_pe |
Definition at line 63 of file gs_comm.f90.
| type(stack_i4_t), dimension(:), allocatable gs_comm::gs_comm_t::send_dof |
Definition at line 54 of file gs_comm.f90.
| integer, dimension(:), allocatable gs_comm::gs_comm_t::send_pe |
Definition at line 61 of file gs_comm.f90.
| logical gs_comm::gs_comm_t::vec_supported = .false. |
Definition at line 67 of file gs_comm.f90.