On Feb 28, 2006, at 10:50 AM, Bogdan Costescu wrote:
> On Tue, 28 Feb 2006, Josh Hursey wrote:
>
>> Davide probably has it. Adding -lpthread should help address this.
>
> I'm sorry for stubbornly continuing this thread, but I would like to
> have some clarification. Isn't this flag (-lpthread) supposed to be
> automatically dealt with in a properly done installation ?
>
> With my (I know, not very recent) installation using Intel 8.0
> compilers:
>
> # /usr/local/lam-7.0.3-intel/bin/mpif77 --showme
> ifort -I/usr/local/lam-7.0.3-intel/include -L/usr/local/lam-7.0.3-
> intel/lib -llamf77mpi -lmpi -llam -lutil
> # ldd clf-lam-intel8
> libutil.so.1 => /lib/libutil.so.1 (0x00806000)
> libm.so.6 => /lib/tls/libm.so.6 (0x003bd000)
> libpthread.so.0 => /lib/tls/libpthread.so.0 (0x00c32000)
> libc.so.6 => /lib/tls/libc.so.6 (0x00635000)
> /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0028e000)
>
> 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 :)
Brian
--
Brian Barrett
LAM/MPI developer and all around nice guy
Have a LAM/MPI day: http://www.lam-mpi.org/
|