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
|