q execute a reduce operation over members of


Q. Execute a reduce operation over members of specified group?

int info = pvm_reduce( void (*func)(), void *data, int count, int datatype, int msgtag, char    *group, int rootginst)

Executes a reduce operation over members of specified group. func is function defining operation performed on global data. Predefined are PvmMin, PvmMax, PvmSum, PvmProduct. Users can define their own function. data is pointer to starting address of an array of local values. count species number of elements of datatype in a data array. Datatype is type of entries in data array. msgtag is message tag supplied by user. msgtag must be greater than zero. It permits the user's program to differentiate between various kinds of messages. group is group name of an existing group. rootginst is instance number of group member who gets result.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: q execute a reduce operation over members of
Reference No:- TGS0313262

Expected delivery within 24 Hours