Function deepmd::pack_comm_sendlist_pointers

Function deepmd::pack_comm_sendlist_pointers#

Function Documentation#

std::vector<std::intptr_t> deepmd::pack_comm_sendlist_pointers(int *const *sendlist, int nswap)#

Pack one communication send-list pointer address per MPI swap.

The corresponding send counts describe the number of atom indices behind each pointer; they do not change the length of the pointer-address array.

Parameters:
  • sendlist – [in] Array of send-list pointers indexed by swap.

  • nswap – [in] Number of communication swaps.

Returns:

Integer pointer addresses with exactly nswap entries.