AP_check_sends_proc

check sends to a single destination

Synopsis

#include "autopack.h"

int AP_check_sends_proc(int pid, int flags)

SUBROUTINE AP_CHECK_SENDS_PROC(pid, flags, return_value)
INTEGER pid, flags, return_value
INCLUDE 'autopack.fh'

Parameters

pid
destination rank to check
flags
specifies options (see below)

Description

Like AP_check_sends(), but only check sends to the given destination. If there are deferred messages to the destination, send as many as possible.

Flags may be one of the following:

AP_NOFLAGS
Do not block (default)

AP_BLOCKING

Block until the first MPI send request for the specified proc is complete, then check remaining ones without blocking.

Return Value

Like AP_check_sends() but value only reflects sends deferred/waiting for the specified processor.
I.e.

0 if all sends to the destination have completed.

If there are deferred sends to the destination, returns how many.

If there are no deferred sends to the destination, returns -1 times the number of incomplete MPI send requests.

(Note: packages are only counted as a single send.)