increase timeout for large_type_sendrec test

This should give our OSX build slaves enough time to pass.

Signed-off-by: Rob Latham <robl@mcs.anl.gov>
Fixed MPI_HOST/MPI_IO attributes

Fixes #1781

Signed-off-by: Wesley Bland <wbland@mcs.anl.gov>
check for size!=0 when erroring out on new==NULL

per http://stackoverflow.com/questions/2132273/what-does-malloc0-return,
malloc(0) may or may not return NULL.  it is implementation defined in
C99.  therefore, it is incorrect to throw an OoM error on !new when
size=0.

closes #1947

Signed-off-by: Rob Latham <robl@mcs.anl.gov>
Better detect no shared file support

IBM Issue 9705: instead of checking "file system A or file system B",
use the file-system feature.

also closes #1724

Signed-off-by: Rob Latham <robl@mcs.anl.gov>
Add new MPI_T error codes in doctext
Add missing manpages for MPI_T routines

Fixes #1969

Signed-off-by: Antonio J. Pena <apenya@mcs.anl.gov>
Fix manpages not installed for VPATH builds

Fixes #1976

Signed-off-by: Ken Raffenetti <raffenet@mcs.anl.gov>
Fix ticket-1960: delete redundant MPIU_Assert.

MPIU_Assert at L2311 checks if rma_ops_list is empty before exiting
MPIDI_Win_flush. It causes /test/mpi/threads/rma/multirma to fail
because while one thread is executing the loop of poking progress
engine at L2293 ~ L2302, another thread may enqueue new RMA operations
to rma_ops_list.

rma_ops_list has already been checked for empty before exiting
MPIDI_CH3I_Do_passive_target_rma (L2724) to ensure that all enqueued
operations are issued out, therefore it does not need to be checked
again here.

Signed-off-by: Wesley Bland <wbland@mcs.anl.gov>
Fixed --enabled-debuginfo segfaults tt #1932

Addresses #1932. Includes:
  - MPI_Bsend/MPI_Ibsend
  - Several collectives
  - Some RMA operations
  - MPI_Dist_graph_create

Signed-off-by: Ken Raffenetti <raffenet@mcs.anl.gov>
Revert Fixed --enabled-debuginfo segfaults tt#1932

This reverts commit 676c29f9576f8879cc6b8a2cb4baeac3f6ed4fc2.
Fix #1701 - cleanup code for zero-size data transfer.

Delete code for zero-size data transfer in packet handlers
of Put/Accumulate/Accumulate_Immed/Get_AccumulateResp/GetResp/
LockPutUnlock/LockAccumUnlock, because they are redundant.

(Note that packet handlers of LockPutUnlock and LockAccumUnlock
are for single operation optimization in passive RMA)

Zero-size data transfer has already been handled when issuing
RMA operations (L146, L258, L369 in src/mpid/ch3/src/ch3u_rma_ops.c
and L50 in src/mpid/ch3/src/ch3u_rma_acc_ops.c). RMA operation
routines will directly exit if data size is zero.

Signed-off-by: Wesley Bland <wbland@mcs.anl.gov>
Add more tests in test/mpi/rma/rmazero.c.

Add tests of using derived datatype in MPI_ACCUMULATE to
test handling of zero-byte transfer, because packet handler
of MPI_ACCUMULATE is differernt for predefined datatype and
derived datatype.

Signed-off-by: Wesley Bland <wbland@mcs.anl.gov>
Fixed --enabled-debuginfo segfaults

Added support for Ibsend and persistent sends, and fixed all other cases by
clearing out the dgb-next field of send requests. Closes #1932.

Signed-off-by: Ken Raffenetti <raffenet@mcs.anl.gov>
Fix warning in mpltrmem.c

Fixes the following warning (with --enable-strict):

src/mpltrmem.c: In function 'MPL_trdump':
src/mpltrmem.c:584:14: warning: variable 'old_head' set but not used
[-Wunused-but-set-variable]

See ticket #1966

Modifications by: Wesley Bland <wbland@mcs.anl.gov>

Signed-off-by: Wesley Bland <wbland@mcs.anl.gov>
Fix warning in opminloc.c and opmaxloc.c

Fixes the following warnings (with --enable-strict):

src/mpi/coll/opminloc.c: In function 'MPIR_MINLOC':
src/mpi/coll/opminloc.c:85:24: warning: variable 'flen' set but not used
[-Wunused-but-set-variable]

src/mpi/coll/opmaxloc.c: In function 'MPIR_MAXLOC':
src/mpi/coll/opmaxloc.c:86:24: warning: variable 'flen' set but not used
[-Wunused-but-set-variable]

See ticket #1966

Signed-off-by: Wesley Bland <wbland@mcs.anl.gov>
Fix warnings about possible uninitialized accesses

Fixes compiler warnings related to the possible use of uninitialized memory in
mpiu_chkpmem_stk_[0] and mpir_sched_chkpmem_stk_[0]. A couple of examples:

src/mpid/ch3/src/ch3u_rma_sync.c: In function 'MPIDI_CH3I_Recv_rma_msg':
src/mpid/ch3/src/ch3u_rma_sync.c:1265:5: warning: 'mpiu_chkpmem_stk_[0]'
may be used uninitialized in this function [-Wmaybe-uninitialized]

src/mpi/coll/iallgather.c: In function 'MPIR_Iallgather_bruck':
src/mpi/coll/iallgather.c:329:5: warning: 'mpir_sched_chkpmem_stk_[0]' may
be used uninitialized in this function [-Wmaybe-uninitialized]

While the code seems correct, this patch avoids the warning.

See ticket #1966

Signed-off-by: Wesley Bland <wbland@mcs.anl.gov>
Fix compiler warning in tcp_init.c

Fixes the following warning when compiling tcp_init.c with --enable-strict:

src/mpid/ch3/channels/nemesis/netmod/tcp/tcp_init.c: In function
'GetSockInterfaceAddr':
src/mpid/ch3/channels/nemesis/netmod/tcp/tcp_init.c:248:9: warning:
dereferencing type-punned pointer will break strict-aliasing rules
[-Wstrict-aliasing]

Reported in ticket #1966

Signed-off-by: Wesley Bland <wbland@mcs.anl.gov>
Fix compiler warnings in pmip_cb.c

Fixes the following warnings when compiling pmip_cb.c with --enable-strict:

pm/pmiserv/pmip_cb.c:803:9: warning: null argument where non-null required
(argument 1) [-Wnonnull]
pm/pmiserv/pmip_cb.c:803:9: warning: null argument where non-null required
(argument 2) [-Wnonnull]

Related to ticket #1966

Signed-off-by: Wesley Bland <wbland@mcs.anl.gov>
Fix braces compiler suggestion (warning)

Fixes the following warning in ch3u_handle_connection.c whith --enable-strict:

src/mpid/ch3/src/ch3u_handle_connection.c:317:194: warning: suggest braces
around empty body in an 'if' statement [-Wempty-body]

Signed-off-by: Wesley Bland <wbland@mcs.anl.gov>
Fix compiler warnings in mpid_type_debug.c

Fixes warnings in mpid_type_debug.c about unused variables in
MPIDI_Datatype_printf.

Signed-off-by: Wesley Bland <wbland@mcs.anl.gov>