AP_reduce_nsends

start reduction with explicit send count

Synopsis

#include "autopack.h"

void AP_reduce_nsends(int *nsends)

Parameters

int *nsends - array with count of sends to each destination

Description

Still in testing.

Alternate interface to the asynchronous reduction.

Return Value

None

Overview

The general organization of user code should be as follows. Each processor calls AP_send_begin(), then does some sends, then calls AP_send_end(). Then it loops calling AP_recv(), blocking if desired (but using the AP_DROPOUT flag if blocking). AP_recv_count() will indicate when the loop should terminate. It is not necessary to synchronize the processors at any point during this process.