LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Brian W. Barrett (brbarret_at_[hidden])
Date: 2003-09-25 15:30:46


On Thursday, September 25, 2003, at 12:52 PM, Greg Kurtzer wrote:

> I have compiled LAM via SRPM with the %configure option
> --with-fc=pgf90, and
> created the rpms with no noticeable errors. After installing the rpms,
> I am
> getting errors compiling Fortran MPI code:
>
> [root_at_cyclades basic]# make fpi
> mpif77 -lpgf90 -c fpi.f
> pgf90-Warning-Unknown switch: -pthread

This looks like LAM 7.0, correct? Unfortunately, there is a bug in the
configure script for LAM 7.0 with regards to threading. The configure
script incorrectly assumes that threading flags that work for the C
compiler will work with the Fortran compiler. There are a couple of
ways around the bug that should work for you.

* If you use the argument --without-dash-pthread to configure, LAM will
use the
   standard -lpthread rather than the compiler option -pthread. This
won't work on the
   BSDs, but should work fine on most Linux distros (possibly not RH
9.0).

* You can disable thread support entirely with the --without-threads
argument to
   configure. LAM will work fine, it just will not support MPI
threading levels above
   MPI_THREAD_SINGLE

We plan on releasing LAM 7.0.1 real soon now, which will include a much
improved threading test (as well as a couple other bug fixes).

Hope this helps,

Brian

-- 
   Brian Barrett
   LAM/MPI developer and all around nice guy
   Have a LAM/MPI day: http://www.lam-mpi.org/