LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Ralf Wildenhues (Ralf.Wildenhues_at_[hidden])
Date: 2006-02-28 16:47:52


* Brian Barrett wrote on Tue, Feb 28, 2006 at 07:42:31PM CET:
> On Feb 28, 2006, at 10:50 AM, Bogdan Costescu wrote:
> > On Tue, 28 Feb 2006, Josh Hursey wrote:

> > where the clf-lam-intel8 executable was produced without any extra
> > -lpthread specification in the CHARMM Makefile.
>
> In a proper LAM/MPI install that includes threading support (for the
> life of me, I can't remember when we made threading support on by
> default), yes, it should include the -lpthread by default. I believe
> that some Intel compilers also add dependencies on libpthread in some
> situations (but don't quote me on that). I'm surprised that LAM
> didn't add -lpthread in Robert's case, but I know we screwed up some
> things in the memory allocator with regards to threads in 7.1.1, so I
> was kind of hoping that we fixed the issue already ;).
>
> But I'm definitely going to check that LAM 7.1.2 will do the "right
> thing" and add -pthread / -lpthread :)

FYI: Libtool-2.0 will probably get you that for free.

For GCC, adding -pthread is sufficient, by the way -- it will add
-lpthread if necessary. Dunno with ICC.

Cheers,
Ralf