[mpich-discuss] Error when compiling with mpif90

Brandt Belson bbelson at princeton.edu
Mon Feb 14 11:10:38 CST 2011


Hi,
Thanks, the offending compile option was -mcmodel=large. When I remove it or
replace large with medium, my code compiles, links, and runs. I do need this
option though for larger simulations. Has anyone had problems with this
option creating errors before with mpif90 and gfortran?
Brandt



> ------------------------------
>
> Message: 2
> Date: Mon, 14 Feb 2011 00:25:30 -0600 (CST)
> From: Anthony Chan <chan at mcs.anl.gov>
> Subject: Re: [mpich-discuss] Error when compiling with mpif90
> To: mpich-discuss at mcs.anl.gov
> Message-ID:
>        <1740950378.50947.1297664730569.JavaMail.root at zimbra.anl.gov>
> Content-Type: text/plain; charset=utf-8
>
>
> Everything makes sense now.
>
> ----- Original Message -----
>
> > $ mpif90 -fdefault-real-8 -O3 -fdollar-ok -fmax-errors=6
> > -fconvert=big-endian -frecord-marker=4 -cpp -mcmodel=large -DMPI
> > -I/usr/local/mpich2/include -L/usr/local/mpich2/lib -c bla.f
>
> With mpif90, you don't need
> "-I/usr/local/mpich2/include -L/usr/local/mpich2/lib"
> which will be taken care of by mpif90.
>
> > I hope everything's clear now, and thank you for your help,
>
> Have you tried to compile your code on linux with mpich2 built by
> gcc+gfortran ?  I would try to eliminate flags in "-fdefault-real-8
> -O3 -fdollar-ok -fmax-errors=6 -fconvert=big-endian -frecord-marker=4
> -cpp -mcmodel=large" one by one to see which causes the error...
>
> A.Chan
>
>
> ------------------------------
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/mpich-discuss/attachments/20110214/ac4bd344/attachment.htm>


More information about the mpich-discuss mailing list