[mvapich-discuss] MVAPICH2 Invalid communicator errors

Mark Potts potts at hpcapplications.com
Mon Sep 17 23:34:52 EDT 2007


Shaun,
    The patch for mpicc and friends looks fine.  I tried the mpicc,
    mpif77, mpif90 gcc and intel builds and executions.  With mpicc
    -show you can see that /usr/include is nicely tucked up in the
    build command line after the mvapich2 include specification.
    I encountered no problems.
    Thanks.
           regards,


Shaun Rowland wrote:
> Mark Potts wrote:
>> Nathan,
>>    I'm far from an expert, but when I manually removed the
>>    -L/usr/include from the icc command line generated by mpicc,
>>    my problem went away. The mpi.h in your /usr/include in all
>>    probability does conflict with the one provided in MVAPICH2.
>>    The harder problem in my case and perhaps yours was finding
>>    how the /usr/include was getting injected.  Hint: read the
>>    mpicc script for your intel builds very carefully.
>>          regards,
> 
> Can you try the attached patch with the MVPAICH2 0.9.8 source code? This
> modifies the mpicc.in, mpif77.in, mpif90.in, and mpicxx.in files to put
> the MVAPICH2 installation include directory before anything else. It
> should be all right to do this in all cases.
> 
> What I was saying before in reference to the standard include define
> doesn't matter. Once the compiler has found the proper include file,
> it's not going to search for it again or anything - and with this
> change, it should be checking the MVAPICH2 installation include
> directory first no matter what.
> 
> Nathan, I am not sure if this will help you - but maybe you can try it
> as well. This has the same effect as editing the already built compiler
> commands in the same way... the context should be clear from the patch,
> so you both could try that as well.

-- 
***********************************
 >> Mark J. Potts, PhD
 >>
 >> HPC Applications Inc.
 >> phone: 410-992-8360 Bus
 >>        410-313-9318 Home
 >>        443-418-4375 Cell
 >> email: potts at hpcapplications.com
 >>        potts at excray.com
***********************************


More information about the mvapich-discuss mailing list