Open MPI logo

Open MPI User's Mailing List Archives

  |   Home   |   Support   |   FAQ   |  

This web mail archive is frozen.

This page is part of a frozen web archive of this mailing list.

You can still navigate around this archive, but know that no new mails have been added to it since July of 2016.

Click here to be taken to the new web archives of this list; it includes all the mails that are in this frozen archive plus all new mails that have been sent to the list since it was migrated to the new archives.

Subject: Re: [OMPI users] mpif90 wrapper is using -pthread as option to ifort, but option is depreciated
From: Craig Tierney (craig.tierney_at_[hidden])
Date: 2012-11-12 11:42:30


Thanks all for the suggestions. It was more of the annoyance than
anything. I will get them removed. It sounds like someday the
libtool developers will (hopefully) account for the change and I won't
have to make local mods to the source code.

Thanks,
Craig

On Fri, Nov 9, 2012 at 11:45 AM, Martin Siegert <siegert_at_[hidden]> wrote:
> On Fri, Nov 09, 2012 at 11:05:23AM -0700, Craig Tierney wrote:
>> I just built OpenMPI 1.6.3 with ifort 12.1.4. When running ifort I am
>> getting the warning:
>>
>> ifort: command line remark #10010: open '-pthread' is depreciated and
>> will be removed in a future release. See '-help deprecated'.
>
> If you just want to get rid of the warning, you can edit the settings
> for the wrapper compilers in share/openmpi/mpif90-wrapper-data.txt, etc.
>
> gcc -dumpspecs | grep pthread
>
> shows that -pthread adds the preprocessor flag -D_REENTRANT and the linker
> flag -lpthread. I.e., removing -pthread from the
>
> compiler_flags=...
>
> line and adding -D_REENTRANT to the
>
> preprocessor_flags=...
>
> line and -lpthread to the
>
> libs=...
>
> line should do the job and should be completely equivalent.
>
> As far as Intel compilers are concerned -pthread can be replaced with
> "-reentrancy threaded", but that does not work when the underlying compiler
> is changed, e.g., OMPI_FC=gfortran.
>
> Cheers,
> Martin
>
> --
> Martin Siegert
> Simon Fraser University
> Burnaby, British Columbia
> Canada
>
>> Is -pthread really needed? Is there a configure option to change this
>> or should have intel not changed from how other compilers work?
>>
>> Thanks,
>> Craig
>> _______________________________________________
>> users mailing list
>> users_at_[hidden]
>> http://www.open-mpi.org/mailman/listinfo.cgi/users
> _______________________________________________
> users mailing list
> users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/users