Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

pgadebugprint(3) [debian man page]

PGADebugPrint(3)						      PGAPack							  PGADebugPrint(3)

NAME
PGADebugPrint - Write debugging information INPUT PARAMETERS
ctx - context variable level - a symbolic constant that maps to the type of print requested (e.g., an entry or exit print). Valid values are PGA_DEBUG_ENTERED, PGA_DEBUG_EXIT, PGA_DEBUG_MALLOC, PGA_DEBUG_PRINTVAR, PGA_DEBUG_SEND, and PGA_DEBUG_RECV. funcname - the name of the function that called this routine msg - message to print datatype - a symbolic constant that maps to the data type of the parameter data. Valid choices are PGA_INT, PGA_DOUBLE, PGA_CHAR and PGA_VOID (no data). data - a pointer, whose contents will be interpreted based upon the datatype parameter (or NULL, if PGA_VOID). OUTPUT PARAMETERS
none SYNOPSIS
#include "pgapack.h" void PGADebugPrint(ctx, level, funcname, msg, datatype, data) PGAContext *ctx int level char *funcname char *msg int datatype void *data LOCATION
debug.c EXAMPLE
Example: If the debugging level includes printing variables (level 82), print the value of the integer variable num as a debugging tool in the routine Add2Nums PGAContext *ctx; int num; : PGADebugPrint(ctx, PGA_DEBUG_PRINTVAR, "Add2Nums", "num = ", PGA_INT, (void *) &num); 05/01/95 PGADebugPrint(3)

Check Out this Related Man Page

PGASendReceiveIndividual(4)					      PGAPack					       PGASendReceiveIndividual(4)

NAME
PGASendReceiveIndividual - Send an individual to a process, while receiving a different individual from a different process. INPUT PARAMETERS
ctx - context variable send_p - index of string to send send_pop - symbolic constant of population to send from dest - destination process send_tag - tag to send with recv_p - index of string to receive recv_pop - symbolic constant of population to receive from source - process to receive from recv_tag - tag to receive with comm - an MPI communicator status - pointer to the MPI status structure OUTPUT PARAMETERS
none SYNOPSIS
#include "pgapack.h" void PGASendReceiveIndividual(ctx, send_p, send_pop, dest, send_tag, recv_p, recv_pop, source, recv_tag, comm, status) PGAContext *ctx int send_p int send_pop int dest int send_tag int recv_p int recv_pop int source int recv_tag MPI_Comm comm MPI_Status *status LOCATION
parallel.c EXAMPLE
Example: A dedicated process is being used to perform an optimization algorithm on the strings. Send a new string, s, to the process, while receiving an optimized string, r, from it. PGAContext *ctx; MPI_Comm comm; MPI_Status status; int s, r; : PGASendReceiveIndividual(ctx, s, PGA_NEWPOP, 1, PGA_SR_STRINGTOMODIFY, r, PGA_NEWPOP, 1, PGA_SR_MODIFIEDSTRING, comm, &status); 05/01/95 PGASendReceiveIndividual(4)
Man Page