[mpich-discuss] [EXTERNAL] Re: Modifying ssh calls for MPICH2

Gustavo Correa gus at ldeo.columbia.edu
Wed Jan 18 13:32:12 CST 2012


Hi Rohan

A simple way to do it,
if you are using bash, you could add a line similar to this to 
your .profile file in /Users/rohan [i.e. in your home directory]:

export PATH=/usr/local/hpc/mpich/install/bin:${PATH}

Then open a new terminal and do 'which mpicc', 'which mpirun' to see if it points to the
MPICH2 components.

I hope this helps,
Gus Correa
 



On Jan 18, 2012, at 2:22 PM, Kekatpure, Rohan Deodatta (-EXP) wrote:

> Thanks Gustavo. I found out the default installation on OX-S too. I would like to use my MPICH with fortran support (I have gfortran installed). Could you tell me how to modify the PATH in order to use my version of MPICH? My MPICH2 is installed in  /usr/local/hpc/mpich/install.
> 
> Thanks 
> Rohan
> 
> On Jan 18, 2012, at 9:44 AM, Gustavo Correa wrote:
> 
>> 
>> On Jan 17, 2012, at 6:49 PM, Reuti wrote:
>> 
>>> Am 18.01.2012 um 00:38 schrieb Kekatpure, Rohan Deodatta (-EXP):
>>> 
>>>>> which mpicc
>>>> 
>>>> /usr/bin/mpicc
>>>> 
>>>>> mpicc -v
>>>> 
>>>> Using built-in specs.
>>>> Target: i686-apple-darwin10
>>>> Configured with: /var/tmp/gcc/gcc-5664~105/src/configure --disable-checking --enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin10 --program-prefix=i686-apple-darwin10- --host=x86_64-apple-darwin10 --target=i686-apple-darwin10 --with-gxx-include-dir=/include/c++/4.2.1
>>>> Thread model: posix
>>>> gcc version 4.2.1 (Apple Inc. build 5664)
>>> 
>>> Looks like Open MPI is installed by default.
>>> 
>>> ompi_info
>> 
>> Hi Rohan, Reuti
>> 
>> For what it is worth, my Mac laptop w/ OS-X 10.6.8 Snow Leopard has
>> OpenMPI 1.2.8 [a rather old version!] installed by default in /usr/bin.
>> It seems to have been compiled by Apple, with gcc and g++, but no Fortran support.
>> You may need to set your environment variables [PATH at least] to point to 
>> your mpich2 build instead.
>> 
>> I hope this helps,
>> Gus Correa
>> 
>>> 
>>> You should succeed then to build it with Open MPI though:
>>> 
>>> mpicc -o mpihello mpihello.c
>>> 
>>> Where did you compile MPICH2 and installed it to? Usually I use something like --prefix=$HOME/local/mpich2-1.4.1p1 to ./configure and adjust the PATH to include $HOME/local/mpich2-1.4.1p1/bin
>>> 
>>> In Germany it's getting night - I'm off then.
>>> 
>>> -- Reuti
>>> _______________________________________________
>>> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
>>> To manage subscription options or unsubscribe:
>>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>> 
>> _______________________________________________
>> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
>> To manage subscription options or unsubscribe:
>> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss
>> 
> 
> 
> _______________________________________________
> mpich-discuss mailing list     mpich-discuss at mcs.anl.gov
> To manage subscription options or unsubscribe:
> https://lists.mcs.anl.gov/mailman/listinfo/mpich-discuss



More information about the mpich-discuss mailing list